mix uof.schemas.gen (uof_schemas v0.2.0)

Copy Markdown View Source

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.