Skip to main content

render_schema_markdown

Function render_schema_markdown 

Source
pub fn render_schema_markdown(cmd: &str, schema: &Value) -> AppResult<String>
Expand description

Render a human-readable markdown document for an embedded JSON Schema.

Includes title, description, required fields, a property table, and the raw JSON Schema fenced for agents that still want the machine schema.

ยงErrors

Returns ErrorKind::Internal when pretty-printing the embedded schema fails (should not happen for valid serde_json::Value trees).