Open IMD-Solutions-xyz opened 2 years ago
I do not get error(s) when trying to validate using https://github.com/python-jsonschema/jsonschema
leonid@asus:~/chips/assets/chip-0007$ jsonschema --version
3.2.0
leonid@asus:~/chips/assets/chip-0007$ jsonschema --help
usage: jsonschema [-h] [-i INSTANCES] [-F ERROR_FORMAT] [-V VALIDATOR] [--version] schema
JSON Schema Validation CLI
positional arguments:
schema the JSON Schema to validate with (i.e. schema.json)
optional arguments:
-h, --help show this help message and exit
-i INSTANCES, --instance INSTANCES
a path to a JSON instance (i.e. filename.json) to validate (may be specified multiple times)
-F ERROR_FORMAT, --error-format ERROR_FORMAT
the format to use for each error output message, specified in a form suitable for passing to str.format, which will be called with 'error' for each error
-V VALIDATOR, --validator VALIDATOR
the fully qualified object name of a validator to use, or, for validators that are registered with jsonschema, simply the name of the class.
--version show program's version number and exit
leonid@asus:~/chips/assets/chip-0007$
leonid@asus:~/chips/assets/chip-0007$ jsonschema --instance example.json schema.json
leonid@asus:~/chips/assets/chip-0007$
Online validation using JSON Schema validator also seems to be OK, but I'm not sure whether it supports 2020-12 Draft - https://www.jsonschemavalidator.net/s/OaXy5bKL
Hi,
I was trying to validate the metadata JSON files against the https://github.com/Chia-Network/chips/blob/metadata-schema/assets/chip-0007/schema.json using https://github.com/ajv-validator/ajv-cli and I got "schema.json is invalid".
Steps to reproduce: