Skip to main content

normalize_input_schema

Function normalize_input_schema 

Source
pub fn normalize_input_schema(schema: Value) -> Value
Expand description

Normalize a schemars-derived schema into the input_schema/parameters the APIs accept: our flat Args structs emit no $defs/$ref (generation inlines subschemas at the source), so normalization reduces to stripping the top-level $schema meta-annotation. Shared by every wire.