mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Wrap requestBody contents in JSON schemas
This commit is contained in:
parent
fa40bfa278
commit
e8010ca1ea
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user