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

The Error type.
Options for the code generation

Enums

The kind of an error.
The type representing the inferred structure

Functions

Just code generation, no inference