mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Update openapi.py
This commit is contained in:
parent
ced37a56cb
commit
430a567258
|
@ -393,7 +393,7 @@ class AutoSchema(ViewInspector):
|
|||
schema['writeOnly'] = True
|
||||
if field.allow_null:
|
||||
schema['nullable'] = True
|
||||
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):
|
||||
schema['default'] = field.default
|
||||
if field.help_text:
|
||||
schema['description'] = str(field.help_text)
|
||||
|
|
Loading…
Reference in New Issue
Block a user