pub fn normalize_schema(schema: JsonSchema) -> JsonSchemaExpand description
Normalizes a schemars schema for model providers.
- Subschemas are inlined, except for recursive types, which stay under
$defs. $schemaand everytitlekeyword are dropped.formatvalues that are not JSON Schema formats (uint32,double, …) are dropped.- Property order is kept, and so are the
descriptions schemars wrote from doc comments.