I am trying to validate a file against a schema as follows:
$ jsonschema -i /path/to/schema.json test.json
It fails with this message:
usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR] schema
jsonschema: error: argument -i/--instance: invalid _json_file value: '/path/to/schema.json'
However, when validating the schema itself in an online json validator, e.g. this one, it succeeds.
I am trying to validate a file against a schema as follows:
It fails with this message:
However, when validating the schema itself in an online
jsonvalidator, e.g. this one, it succeeds.