mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Fix introspection of list field in schema
This commit is contained in:
parent
e80b78d1cb
commit
32a0b62508
|
@ -30,7 +30,7 @@ def field_to_schema(field):
|
|||
title = force_text(field.label) if field.label else ''
|
||||
description = force_text(field.help_text) if field.help_text else ''
|
||||
|
||||
if isinstance(field, serializers.ListSerializer):
|
||||
if isinstance(field, (serializers.ListSerializer, serializers.ListField)):
|
||||
child_schema = field_to_schema(field.child)
|
||||
return coreschema.Array(
|
||||
items=child_schema,
|
||||
|
|
Loading…
Reference in New Issue
Block a user