drf_openapi
drf_openapi copied to clipboard
Use schema object data type instead of vanilla object
Currently the schema generator don't support custom schema object type: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schema-object-examples. It will just render everything as plain "object". We should support this.
I just stumbled across this issue. Especially odd as it works fine for fields with many=True.
Yea it's not that odd. It takes a bit more work to properly parse the child of ListSerializer than a plain Serializer with many=True