FIX: openapi schema title should be a string not a tuple

This commit is contained in:
Benjamin Pereto 2018-10-19 18:51:59 +02:00
parent 9d001cd84c
commit 28c4d1e222

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