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