mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 03:50:11 +03:00
parent
0da461710a
commit
f5d077e8b1
|
@ -95,6 +95,8 @@ def field_to_schema(field):
|
|||
description=description,
|
||||
format='date-time'
|
||||
)
|
||||
elif isinstance(field, serializers.JSONField):
|
||||
return coreschema.Object(title=title, description=description)
|
||||
|
||||
if field.style.get('base_template') == 'textarea.html':
|
||||
return coreschema.String(
|
||||
|
@ -102,6 +104,7 @@ def field_to_schema(field):
|
|||
description=description,
|
||||
format='textarea'
|
||||
)
|
||||
|
||||
return coreschema.String(title=title, description=description)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user