OpenAPI: Map renderers/parsers for request/response media-types. by knivets · Pull Request #6865 · encode/django-rest-framework (original) (raw)
Issue #6863
TL;DR I ended up implementing an automatic parser/renderer mapping to corresponding request/response media type. The tests are passing.
So while testing this I discovered that every endpoint that supports request body, accepts multipart requests even if there are no file fields in serializers. This is correct since this is how DRF default parsers setting actually works. So there is no longer a need to handle endpoints that accept files in a special way. Anyway, this is just an idea let me know what you think @carltongibson @tomchristie