Closed macsikora closed 2 years ago
See #28 and #41. There's not much about this that can be fixed from our side, drf-spectacular needs to be changed for this to work.
Hey @oxan tnx very much. Do you know if there is already some traction, issue created on their side?
I don't know.
Oops, closed wrong issue with that commit.
many thanks @oxan !
I'll close this, as that PR has been merged now. You can manually include that extension in your project until drf-spectacular has a new release.
Hey, I am using this great lib and found problems with drf-spectacular. These are my issues:
If I have nested dataclass like:
Then final docs do not recognise fields of A saying:
object (Dataclass)
When I try:
It does not give any effect, I still have
a: object (Dataclass)
In order to have it working I need to define for every nested dataclass its own empty serializer like:
What gives a lot of such proxy code (imagine few such dataclasses inside) Also docs print all the time comment from the DataclassSerializer, so I see :
For every field using DataclassSerializer.
In summary using these two things together looks like quite a struggle.