Expand description
Reverse codegen: Rust types to JSON Schema.
Types implement ToJsonSchema to produce a JsonSchema value that can be
serialized via TryFrom to String or Vec<u8>.
Structs§
- Hand
Written Example - Minimal hand-written struct implementing
ToJsonSchema(used to validate trait shape).
Traits§
- ToJson
Schema - Trait for types that can produce a JSON Schema.
Functions§
- merge_
nested_ defs_ into_ root - Merges nested
$defsfromschemaintoroot_defs, returns schema withdefs: None.