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

Report validation errors usefully and concisely #65

Open
Fak3 opened this issue Dec 27, 2016 · 0 comments
Open

Report validation errors usefully and concisely #65

Fak3 opened this issue Dec 27, 2016 · 0 comments
Milestone

Comments

@Fak3
Copy link
Contributor

Fak3 commented Dec 27, 2016

It was suggested that we can echo the first line of schema validation error messages (as the whole message is quite huge)

Still, when the 'path' is missing for a resource, the first line of error is quite cryptic:

{'schema': {'fields': [{'title': '', 'type': 'date', 'format': 'default', 'name': 'Date', 'description': ''}, {'title': '', 'type': 'number', 'format': 'default', 'name': 'Price', 'description': ''}]}} is not valid under any of the given schemas

I wonder if we can make it more enlightening. Should probably be addressed upstream.

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

2 participants