Command
Description
Convert a config instance file to a JSON Schema file.Examples
Indentation level 4
Exclude default values
Exclude type inference
Insert the config type slug
Insert the relative deployment filepath
Save to a file
miru instance to jsonschema PATH [OPTIONS]
miru instance to jsonschema ./path/to/config/instance.json -i 4
miru instance to jsonschema ./path/to/config/instance.json --defaults=false
miru instance to jsonschema ./path/to/config/instance.json --types=false
miru instance to jsonschema ./path/to/config/instance.json --config-type-slug=my-config-type
miru instance to jsonschema ./path/to/config/instance.json --relative-filepath=/v1/argle/bargle.json
miru instance to jsonschema ./path/to/config/instance.yaml -o ./path/to/jsonschema.yaml
--config-type-slug string Include the specified miru config type slug in the output JSON Schema file with the key '$miru_config_type_slug'
-d, --defaults Include default values in the output JSON Schema file (default true)
-h, --help help for jsonschema
-i, --indent uint Indentation level for the output JSON Schema file (default 2)
-o, --output string Output file path (default: stdout)
--relative-filepath string Include the specified relative deployment filepath in the output JSON Schema file with the key '$miru_relative_filepath'
-t, --types Include type information in the output JSON Schema file (default true)
-q, --quiet suppress output except errors