feat: test oas; feat: v1.120.7

This commit is contained in:
Georg K
2022-11-22 17:19:00 +03:00
parent ba0530d6b1
commit b896020a4f
2 changed files with 9 additions and 3 deletions

View File

@@ -34,7 +34,8 @@ class _OASResponseBuilder:
).copy()
if def_sub_schemas := response_schema.pop("definitions", None):
self._oas.components.schemas.update(def_sub_schemas)
return response_schema
self._oas.components.schemas.update({response_schema['title']: response_schema})
return {'$ref': f'#/components/schemas/{response_schema["title"]}'}
return {}
def _handle_list(self, obj):