drf_openapi icon indicating copy to clipboard operation
drf_openapi copied to clipboard

Use schema object data type instead of vanilla object

Open limdauto opened this issue 8 years ago • 2 comments

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.

limdauto avatar Oct 01 '17 23:10 limdauto

I just stumbled across this issue. Especially odd as it works fine for fields with many=True.

bikeshedder avatar Oct 05 '17 12:10 bikeshedder

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

limdauto avatar Oct 05 '17 12:10 limdauto