Skip to main content

Module json_schema

Module json_schema 

Source
Expand description

JSON Schema generation for CLI output types.

This module provides schema generation for all commands that support –json output. Schemas are generated using the schemars crate and can be exported via the schema subcommand.

Functions§

all_schemas
Returns all JSON schemas for commands that support –json output. Uses BTreeMap for deterministic ordering (important for diffable output).
get_schema
Generate a single schema by command name.
schema_names
List all available schema names.