Wrap requestBody contents in JSON schemas

This commit is contained in:
Lucidiot 2019-04-04 09:19:15 +02:00
parent fa40bfa278
commit e8010ca1ea

View File

@ -770,7 +770,10 @@ class OpenAPIAutoSchema(ViewInspector):
del content['properties'][name]
return {
'content': {ct: content for ct in self.content_types}
'content': {
ct: {'schema': content}
for ct in self.content_types
}
}
def _get_responses(self, path, method):