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
When I define serializers.ChoiceField(choices=...) in MyResponseSerializer, the enum for the choices are outputted to Swagger schema. When I use ChoiceField in MyQuerySerializer, this is not outputted.
Bug Report
Description
When I define serializers.ChoiceField(choices=...) in MyResponseSerializer, the enum for the choices are outputted to Swagger schema. When I use ChoiceField in MyQuerySerializer, this is not outputted.
Detailed description:
https://stackoverflow.com/questions/77584761/export-enums-with-drf-yasg-to-swagger-works-in-responses-serializers-but-not-in
Minimal Reproduction
The text was updated successfully, but these errors were encountered: