Skip to main content

schema_for

Function schema_for 

Source
pub fn schema_for<T: JsonSchema>() -> Map<String, Value>
Expand description

Generates a JSON Schema (2020-12) for T, as used in inputSchema and outputSchema. The root $schema and title keys are removed: 2020-12 is the default dialect, and the title would expose a Rust type name.