CLIΒΆ

A command line interface mirrors the Python API.

Basic invocation:

jsonschema-diff old.schema.json new.schema.json
diff example.old.schema.json

OR

jsonschema-diff "{\"type\":\"string\"}" "{\"type\":\"number\"}" # escaping is required
diff type.old.schema.json

Options:

jsonschema-diff --help
  • --no-color to disable ANSI colors.

  • --legend to show legend table.

  • --exit-code to return 1 when differences are found.

See also for more: jsonschema_diff.cli