File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,7 @@ def _map_serializer(self, serializer):
413413 properties [field .field_name ] = schema
414414
415415 result = {
416+ 'type' : 'object' ,
416417 'properties' : properties
417418 }
418419 if required :
Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ class View(generics.GenericAPIView):
335335 'schema' : {
336336 'type' : 'array' ,
337337 'items' : {
338+ 'type' : 'object' ,
338339 'properties' : {
339340 'text' : {
340341 'type' : 'string' ,
@@ -386,6 +387,7 @@ class View(generics.GenericAPIView):
386387 'item' : {
387388 'type' : 'array' ,
388389 'items' : {
390+ 'type' : 'object' ,
389391 'properties' : {
390392 'text' : {
391393 'type' : 'string' ,
@@ -532,6 +534,7 @@ class View(generics.GenericAPIView):
532534 'content' : {
533535 'application/json' : {
534536 'schema' : {
537+ 'type' : 'object' ,
535538 'properties' : {
536539 'text' : {
537540 'type' : 'string' ,
You can’t perform that action at this time.
0 commit comments