-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Machine readable errors #7536
Comments
It would be more correct to say it is something they don't want to fix. |
Thanks for the clarification. And for reference, there is a 3rd party library called drf-problems: |
@xordoquy Just so you know, I wanted the exact same thing as you. drf-problems works great, but it doesn't put the invalid parameters into an |
Checklist
master
branch of Django REST framework.Steps to reproduce
Invoke the rest api with wrong parameters or attributes.
Expected behavior
RFC7807 compliant error reporting.
E.g. something like:
Actual behavior
Shows error messages that are hard to deal within scripts. And are only human readable.
An example for how the problem looks like in a real live scenario is available over at netbox-community/netbox#5119. They sent me here, as the issue is something the framework does and not something they could implement/fix.
This issue also relates to:
The text was updated successfully, but these errors were encountered: