# `mix uof.schemas.gen`
[🔗](https://github.com/efcasado/betradar_uof_schemas/blob/main/codegen/tasks/uof.schemas.gen.ex#L1)

Generate Ecto embedded schemas from the Betradar XSDs.

    mix uof.schemas.gen   # fetch XSDs (if missing) + generate all groups

XSDs are cached under the git-ignored `priv/xsd/` and pinned to the upstream
SDK tag in `Mix.UOF.Schemas.XSD.Sources`. One module per `complexType` is
written under `lib/uof/schemas/` and committed to the repo, so consumers of
this package never run codegen. Run `mix format` afterwards to apply Styler.

The task is additive: it fetches only when a group's cache is empty and writes
modules without clearing the target directory. To force a clean refresh
(re-download XSDs and drop removed/renamed modules), run `make clean` first —
it deletes `priv/xsd/` and the generated schema directories — then regenerate.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
