Skip to content

Commit

Permalink
FIX: openapi schema title should be a string not a tuple (encode#6259)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpereto authored and tomchristie committed Nov 28, 2018
1 parent 11edf57 commit 5a54f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ def get_schema(self, instance):
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
Expand Down

0 comments on commit 5a54f89

Please sign in to comment.