Shared schema and generated Rust types for Picus program-result output.
Layout:
schemas/picus-result.schema.json: canonical JSON Schema for Picus program resultscrates/picus-schema-types: Rust types generated from that schema withtypify
The schema is written in standard JSON Schema and currently targets Draft 2020-12:
- JSON Schema Draft 2020-12 specification: https://json-schema.org/draft/2020-12
- Core specification: https://json-schema.org/draft/2020-12/json-schema-core.html
- Validation specification: https://json-schema.org/draft/2020-12/json-schema-validation.html
The Rust types in crates/picus-schema-types are generated from this schema with typify.
Validate the Rust crate with:
cargo check -p picus-schema-typesPicus can consume this crate either through a local path dependency or a pinned git dependency.