Skip to main contentModule schema_parser
Source - BoolFlagPair
- A single boolean –flag / –no-flag pair generated from a
type: boolean property. - SchemaArgs
- Full output of schema_to_clap_args.
- SchemaParserError
- Error type for schema parsing failures.
- HELP_TEXT_MAX_LEN
- extract_help
- Extract help text from a schema property.
Prefers
x-llm-description over description.
Truncates to HELP_TEXT_MAX_LEN chars (197 + “…”). - map_type
- Map a single schema property to a clap::Arg.
- prop_name_to_flag_name
- Convert a property name (snake_case) to a CLI flag long name (kebab-case).
- reconvert_enum_values
- Re-map string enum values from CLI args back to their JSON-typed forms.
- schema_to_clap_args
- Translate a JSON Schema
properties map into a SchemaArgs result.