Commit ddec5688 authored by davidrenne's avatar davidrenne
Browse files

Update docgenerator.py

parent 12b4d769
......@@ -338,10 +338,10 @@ class DocumentationGenerator(object):
has_many = isinstance(field, ListSerializer)
if has_many:
f['type'] = 'array'
if data_type in BaseMethodIntrospector.PRIMITIVES:
f['items'] = {'type': data_type}
else:
if field_serializer:
f['items'] = {'$ref': field_serializer}
elif data_type in BaseMethodIntrospector.PRIMITIVES:
f['items'] = {'type': data_type}
# memorize discovered field
data['fields'][name] = f
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment