schema/README.md
These are automatically generated from code using schemars. They're locked
behind a feature flag to avoid building unnecessary code for release builds, and you can generate them like so:
# Will print out to stdout
cargo run --features="generate_schema" -- --generate_schema
# e.g. for nightly
cargo run --features="generate_schema" -- --generate_schema > schema/nightly/bottom.json
# e.g. for a specific version
cargo run --features="generate_schema" -- --generate_schema 0.12.0 > schema/v0.12.0/bottom.json
Alternatively, run the scripts/schema/generate.sh script (for stable releases) or scripts/schema/nightly.sh
(for nightly), which does all of this for you.
To publish these schemas:
scripts/schema/generate.sh <YOUR_VERSION>.scripts/schema/nightly.sh.