Generates Elixir schema modules for all JSON Schema files in a directory.
$ mix bazaar.gen.schemas priv/ucp_schemas/2026-08-25
This will generate Elixir modules for all .json schema files found
in the directory (recursively) and output them to lib/bazaar/schemas/ucp/.
Options
--output-dir- Output directory (default: lib/bazaar/schemas/ucp)--prefix- Module prefix (default: Bazaar.Schemas)--dry-run- Show what would be generated without writing files
Examples
# Generate all schemas
$ mix bazaar.gen.schemas priv/ucp_schemas/2026-08-25
# Generate to custom directory
$ mix bazaar.gen.schemas priv/ucp_schemas/2026-08-25 --output-dir lib/generated
# Generate with custom prefix (for ACP schemas)
$ mix bazaar.gen.schemas priv/acp_schemas --prefix Bazaar.Schemas.Acp --output-dir lib/bazaar/schemas/acp
# Preview what would be generated
$ mix bazaar.gen.schemas priv/ucp_schemas/2026-01-11 --dry-run