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

Errors on schema validation should print full path to invalid field #57

Open
andrewsardone opened this issue Aug 19, 2018 · 0 comments
Open

Comments

@andrewsardone
Copy link
Contributor

If I receive the following validation error:

class mismatch for id: expected [<type 'str'>, <type 'unicode'>], 1 has class int

I'm not sure where in my document its referring to the id field. It'd be great if the output indicated, say, the full JSON path of the field (e.g., certificate.parsed.certificate_policies.id)

I could be using the tool incorrectly, so bear with me 😄

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