fix: move response definitions to top level of oas

This commit is contained in:
jar3b
2020-11-25 01:23:10 +03:00
parent 93ec0f6c80
commit 67a95ec9c9
2 changed files with 23 additions and 8 deletions

View File

@@ -312,3 +312,8 @@ class OpenApiSpec3:
@property
def spec(self):
return self._spec
@property
def definitions(self):
self._spec.setdefault('definitions', {})
return self._spec['definitions']