We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced37a5 commit 430a567Copy full SHA for 430a567
rest_framework/schemas/openapi.py
@@ -393,7 +393,7 @@ def _map_serializer(self, serializer):
393
schema['writeOnly'] = True
394
if field.allow_null:
395
schema['nullable'] = True
396
- if field.default and field.default != empty and not callable(field.default): # why don't they use None?!
+ if field.default and field.default != empty and not callable(field.default):
397
schema['default'] = field.default
398
if field.help_text:
399
schema['description'] = str(field.help_text)
0 commit comments