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

convert json schema validation errors to useful errors! #2

Open
bertspaan opened this issue Aug 3, 2015 · 6 comments
Open

convert json schema validation errors to useful errors! #2

bertspaan opened this issue Aug 3, 2015 · 6 comments
Assignees

Comments

@bertspaan
Copy link
Member

convert json schema validation errors to useful errors!

@bertspaan bertspaan self-assigned this Aug 3, 2015
@por
Copy link
Contributor

por commented Jan 27, 2016

I did something like that on this line.

Outputs something like:

Invalid configuration file:
  - data.api.hairRelations is the wrong type
  - data.api.dataDir is the wrong type

Would that already be enough to close this perhaps?

@bertspaan
Copy link
Member Author

I think it would be even better if the error will tell you what types are allowed, together with the incorrect value. And the same for enums.

Also, we can remove the trailing data. in each error.

@por
Copy link
Contributor

por commented Jan 27, 2016

I see. Makes sense. 👍

@bertspaan
Copy link
Member Author

Maybe we should create module that does this?

@por
Copy link
Contributor

por commented Jan 27, 2016

@bertspaan
Copy link
Member Author

😩

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

No branches or pull requests

3 participants