Skip to content

Schema generation - prefer 'multipart' if file field exists #4732

@lovelydinosaur

Description

@lovelydinosaur
  • If a FileField or ImageField exists on the view serializer.
  • And all the other fields are primitive types.
  • Then we should prefer "multipart" over "json", if it is available in the parser classes.

Refs: marcgibbons/django-rest-swagger#573

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions