Replies: 2 comments 1 reply
-
Do you have any idea if and/or how this could be fixed in djangorestframework-dataclasses? It smells a lot like either a bug in or a bad interaction with drf-yasg (which I've never used). |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've converted this to a discussion, as it's related to a 3rd-party package and I don't think it's directly actionable for drf-dataclasses. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If there are multiple nested different data classes in one data class, the swagger doc will only contain one nested data class type.
We can solve the problem by specifying the nested data class serializer manually. The annotation is here, https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#the-swagger-auto-schema-decorator
Beta Was this translation helpful? Give feedback.
All reactions