- ADDED: added
EXCLUDED_MEDIA_TYPES
setting for controllingproduces
MIME type filtering (#158) - ADDED: added support for
SerializerMethodField
, via theswagger_serializer_method
decorator for the method field, and support for Python 3.5 style type hinting of the method field return type (#137, #175, #179)
NOTE: in order for this to work, you will have to add the newdrf_yasg.inspectors.SerializerMethodFieldInspector
to yourDEFAULT_FIELD_INSPECTORS
array if you changed it from the default value - IMPROVED: updated
swagger-ui
to version 3.18.0 - IMPROVED: added support for Python 3.7 and Django 2.1 (#176)
- IMPROVED:
swagger_schema_fields
will now also work on serializerField
s (#167) - IMPROVED:
ref_name
collisions will now log a warning message (#156) - IMPROVED: added
operation_summary
anddeprecated
arguments toswagger_auto_schema
(#149, #173) - FIXED: made
swagger_auto_schema
work with DRF 3.9@action
mappings (#177)