Skip to content

Commit 5a54f89

Browse files
0asyslovelydinosaur
authored andcommitted
FIX: openapi schema title should be a string not a tuple (#6259)
1 parent 11edf57 commit 5a54f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/renderers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ def get_schema(self, instance):
948948
schema = {}
949949
if instance.__class__ in CLASS_TO_TYPENAME:
950950
schema['type'] = CLASS_TO_TYPENAME[instance.__class__]
951-
schema['title'] = instance.title,
951+
schema['title'] = instance.title
952952
schema['description'] = instance.description
953953
if hasattr(instance, 'enum'):
954954
schema['enum'] = instance.enum

0 commit comments

Comments
 (0)