Skip to main content

Mass Schema Dereference

mass schema dereferenceโ€‹

Dereferences a JSON Schema

Synopsisโ€‹

Dereferences a JSON Schema Document

This command will expand all the $ref statements in a JSON Schema. This command is useful when managing resource type schemas and using $refs to keep your schemas "DRY".

Examplesโ€‹

From an existing file

shell
mass schema dereference --file resource-type.json

From stdin

shell
cat resource-type.json | mass schema dereference -f -
mass schema dereference [file] [flags]

Optionsโ€‹

  -f, --file string   Path to JSON document
-h, --help help for dereference

Options inherited from parent commandsโ€‹

      --profile string   Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)

SEE ALSOโ€‹