Skip to content

Commit

Permalink
[#210] add comments above FileFieldExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonny Bakker committed Sep 29, 2022
1 parent 7f3dd11 commit a008cd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vng_api_common/inspectors/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
from drf_spectacular.types import OpenApiTypes


# Note that some API's may require a seperate request/response schema in order
# to properly display this in the schema.
# See https://drf-spectacular.readthedocs.io/en/latest/client_generation.html?highlight=COMPONENT_SPLIT_REQUEST#component-issues
# and https://github.com/tfranzel/drf-spectacular/issues/778
class FileFieldExtension(OpenApiSerializerFieldExtension):
target_class = "drf_extra_fields.fields.Base64FileField"
match_subclasses = True
Expand Down

0 comments on commit a008cd8

Please sign in to comment.