Skip to content

Commit

Permalink
Merge pull request #578 from johnthagen/patch-2
Browse files Browse the repository at this point in the history
Document alternative to drf-yasg swagger_schema_field
  • Loading branch information
tfranzel authored Oct 18, 2021
2 parents f8fb1e4 + 66280d8 commit 59f9749
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/drf_yasg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Decorators
- Instead of using :py:func:`@method_decorator <django.utils.decorators.method_decorator>`, use
:py:func:`@extend_schema_view <drf_spectacular.utils.extend_schema_view>`.

- Instead of using `swagger_schema_field`, use
:py:func:`@extend_schema_field <drf_spectacular.utils.extend_schema_field>` or
:py:func:`@extend_schema_serializer <drf_spectacular.utils.extend_schema_serializer>`.

Helper Classes
--------------

Expand Down

0 comments on commit 59f9749

Please sign in to comment.