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
Hey @blueyed. This is just the division between APIView and GenericAPIView. The api_view decorator handles the former, but not the latter. (And serializer_class is defined on GenericAPIView...)
The comment you link (I was wondering where that was...) is looking for more API (on APIView) to add an extension point for dynamic view inspector class selection, rather than @ api_view's support (or not) of the GenericAPIView API.
What do you suggest then to get proper documentation / schema?
Not using @api_view, or create a custom decorator that would use GenericAPIView instead?
The WrappedAPIView returned/created by the
@api_view
decorator handles decorators like@renderer_classes
, but not@serializer_class
.Having information about the (input) serializer appears to be important for generating schemas however.
I think this would have helped with the underlying issue that #4285 fixed, and is maybe also what #5630 (comment) refers to?!
The text was updated successfully, but these errors were encountered: