Skip to content
New issue

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

Unable to validate via cli #24

Open
pkaramol opened this issue Mar 28, 2018 · 1 comment
Open

Unable to validate via cli #24

pkaramol opened this issue Mar 28, 2018 · 1 comment

Comments

@pkaramol
Copy link

pkaramol commented Mar 28, 2018

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.

@pkaramol
Copy link
Author

Turns out it had to do with some trailing commas (',') in some entries.

However, even after fixing this, I get no output despite the fact that there are fields which are present in schema.json and missing in test.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant