export_schemas¶
src.models.export_schemas
¶
Export JSON Schema files from Pydantic models.
Generates one .schema.json file per model, matching the layout in the
data-schemas repository. Run this after modifying any model in
src/models/ to keep schemas in sync.
Usage
python -m src.models.export_schemas --output_dir ../data-schemas/schemas
export_all(output_dir: str) -> list[str]
¶
Export all registered schemas. Returns list of written file paths.
Source code in src/models/export_schemas.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |