We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could a --schema-pointer <pointer> parameter be added to json-validate?
--schema-pointer <pointer>
json-validate
I would like to validate various similar JSON file with just one schema file containing various related schema definitions.
Example:
{foo:3}
{foo:3, bar:4}]
[{foo:3}, {foo:4}]
{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "foo": { "type": "object", "properties": { "foo": { "type": "integer" } }, "required": ["foo"] }, "foo_bar": { "allOf": [ { "$ref": "#/definitions/foo" }, { "properties": { "bar": { "type": "integer" } }, "required": ["bar"] } ] }, "foos": { "type": "array", "items": { "$ref": "#/definitions/foo" } } } }
$ json-validate --schema-file=schema.json --schema-pointer=/definitions/foo --document-file=foo.json $ json-validate --schema-file=schema.json --schema-pointer=/definitions/foo_bar --document-file=foo_bar.json $ json-validate --schema-file=schema.json --schema-pointer=/definitions/foos --document-file=foos.json
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Could a
--schema-pointer <pointer>
parameter be added tojson-validate
?I would like to validate various similar JSON file with just one schema file containing various related schema definitions.
Example:
{foo:3}
{foo:3, bar:4}]
[{foo:3}, {foo:4}]
The text was updated successfully, but these errors were encountered: