You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
With this configuration, I get a 406 : NOT ACCEPTABLE error, but if I switch the order of the 'DEFAULT_RENDERER_CLASSES' so that rest_framework.renderers.JSONRenderer is first, then the swagger documentation will render.
My django rest framework application is using a custom content-type
application/vnd.api+json
with the following default renderer classes:With this configuration, I get a 406 : NOT ACCEPTABLE error, but if I switch the order of the 'DEFAULT_RENDERER_CLASSES' so that
rest_framework.renderers.JSONRenderer
is first, then the swagger documentation will render.I think this might be the cause: https://github.com/marcgibbons/django-rest-swagger/blob/master/rest_framework_swagger/views.py#L22-28
It looks like the view expects
rest_framework.renderers.JSONRenderer
to be first when ideally, the order should not matter.The text was updated successfully, but these errors were encountered: