mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-31 10:30:01 +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]
|
del content['properties'][name]
|
||||||
|
|
||||||
return {
|
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):
|
def _get_responses(self, path, method):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user