-
Notifications
You must be signed in to change notification settings - Fork 271
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
Ability to use PolymorphicProxySerializer in extend_schema_field #319
Comments
hi! this is a bit underspecified. what is the error exactly? this looks ok to me on first glace, assuming have you read the doc: https://drf-spectacular.readthedocs.io/en/latest/drf_spectacular.html#drf_spectacular.utils.PolymorphicProxySerializer ? |
I see the following warnings in the terminal. On the UI side, it is shown that the field expects a list of strings.
yes, I read the docs. |
@tfranzel I tried the fix on my project - it works like a charm! Thank you! |
Sorry if such a possibility already exists, I could not find it in the documentation.
I have
JSONField
in myDjango
model andDictField
in a serializer for this model.JSONField
can contains three different types on data with determined fieldsets only. So, I have thee different serializers for theJSONField
.Below is a schematic representation of how I wanted to document what data is expected in the
data
field, but it doesn't work.Could you tell me how you can solve this issue?
Thanks.
The text was updated successfully, but these errors were encountered: