Module schema_analysis::targets::json_typegen
source · Expand description
Integration with json_typegen
You can:
// Convert to a json_typegen Shape.
let shape: Shape = schema.to_json_typegen_shape();
// Convert to a specific json_typegen output with default options.
let output: String = schema.process_with_json_typegen(OutputMode::Rust).unwrap();
// Convert a json_typegen Shape with custom options.
let output: String = json_typegen_shared::codegen_from_shape("Root", &Shape::Bool, Options::default()).unwrap();
Structs
Enums
Functions
Just code generation, no inference