Skip to main content

Module schema_parser

Module schema_parser 

Source

Structs§

BoolFlagPair
A single boolean –flag / –no-flag pair generated from a type: boolean property.
SchemaArgs
Full output of schema_to_clap_args.

Enums§

SchemaParserError
Error type for schema parsing failures.

Constants§

HELP_TEXT_MAX_LEN

Functions§

extract_help
Extract help text from a schema property. Prefers x-llm-description over description. Truncates to max_len chars (default: HELP_TEXT_MAX_LEN).
extract_help_with_limit
Extract help text with a configurable max length.
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.
schema_to_clap_args_with_limit
Convert JSON Schema properties to clap Args with a configurable help text max length.