Open Panter7777 opened 3 years ago
I've had this issue too - it seems that read/write nested serializers aren't supported; only read-only
If you simply edit the offending line to allow items, it mostly works:
if swagger_object_type != openapi.Schema and swagger_object_type != openapi.Items:
raise SwaggerGenerationError("cannot instantiate nested serializer " + field.__class__.__name__ + " as " + swagger_object_type.__name__ )
However, the type of the value isn't inferred:
Bug Report
Description
Hi, I'm trying to upload files via swagger + drf but got an error. Can you please help?
serializers.py
view.py
Stack trace / Error message
Your Environment