FIX: openapi schema title should be a string not a tuple (#6259)

This commit is contained in:
Benjamin Pereto 2018-11-28 13:45:27 +01:00 committed by Tom Christie
parent 11edf572c5
commit 5a54f897ec

View File

@ -948,7 +948,7 @@ class _BaseOpenAPIRenderer:
schema = {}
if instance.__class__ in CLASS_TO_TYPENAME:
schema['type'] = CLASS_TO_TYPENAME[instance.__class__]
schema['title'] = instance.title,
schema['title'] = instance.title
schema['description'] = instance.description
if hasattr(instance, 'enum'):
schema['enum'] = instance.enum