Skip to content

Commit 0b84ee9

Browse files
committed
Add response data into the template data
1 parent 7b1c131 commit 0b84ee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openapi_python_client/parser/responses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Response:
1919
status_code: HTTPStatus
2020
prop: Property
2121
source: str
22+
data: object
2223

2324

2425
def _source_by_content_type(content_type: str) -> Optional[str]:
@@ -107,4 +108,4 @@ def response_from_data(
107108
if isinstance(prop, PropertyError):
108109
return prop, schemas
109110

110-
return Response(status_code=status_code, prop=prop, source=source), schemas
111+
return Response(status_code=status_code, prop=prop, source=source, data=data), schemas

0 commit comments

Comments
 (0)