Command

miru instance to jsonschema PATH [OPTIONS]

Description

Convert a config instance file to a JSON Schema file.

Examples

Indentation level 4
miru instance to jsonschema ./path/to/config/instance.json -i 4
Exclude default values
miru instance to jsonschema ./path/to/config/instance.json --defaults=false
Exclude type inference
miru instance to jsonschema ./path/to/config/instance.json --types=false
Insert the config type slug
miru instance to jsonschema ./path/to/config/instance.json --config-type-slug=my-config-type
Insert the relative deployment filepath
miru instance to jsonschema ./path/to/config/instance.json --relative-filepath=/v1/argle/bargle.json
Save to a file
miru instance to jsonschema ./path/to/config/instance.yaml -o ./path/to/jsonschema.yaml

Options

      --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)

Options inherited from parent commands

  -q, --quiet   suppress output except errors