pub fn schema_to_clap_args(
schema: &Value,
max_help_length: Option<usize>,
) -> Result<SchemaArgs, SchemaParserError>Expand description
Translate a JSON Schema properties map into a SchemaArgs result.
Each schema property becomes one --<name> flag with:
helpset to the property’sx-llm-descriptionordescriptionfieldrequiredset when the property appears in the schema’srequiredarray- enum variants and boolean pairs deferred to later tasks
§Arguments
schema— JSON Schema object (may have"properties"key)max_help_length—Option<usize>truncation budget for help text;Nonefalls back toHELP_TEXT_MAX_LEN(1000),Some(n)selects an explicit limit. Cross-SDK parity with Python’sschema_to_click_options(schema, max_help_length=1000)and TS’sschemaToCliOptions(schema, maxHelpLength = 1000).
Returns empty SchemaArgs for schemas without properties.