-
Notifications
You must be signed in to change notification settings - Fork 17
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
ErrorDetail cannot be rendered to yaml #4
Comments
@jpadilla Is this package abandoned? |
Hey @jobec not particularly, just been busy. Could use some help maintaining this package if you've got some free cycles. Up for it? |
I tried upgrading to restframework newer then 3.5.0. would be nice to have a new package to fix this error! |
Hey @jpadilla |
I’m afraid this repo is abandoned... |
I could use some help updating versions like in jpadilla/django-rest-framework-xml#32. Tests on #5 were failing for an unrelated reason, but with some help to make sure we're testing right versions, we can re-run tests on #5, merge that, and release a new version. |
…s raises an error.
When you raise a
NotFound
exception in django rest framework, the YAML renderer triggers an internal server error. So when you do the following in a view:It will raise this error:
It's because the error detail of an
APIException
is turned into anErrorDetail
instance which is astr
subclass.PyYaml
doesn't recognize this and fails. This can be fixed by adding a representer.The text was updated successfully, but these errors were encountered: