Skip to content

Commit 3802083

Browse files
authored
Patch for GH124
openapi-generators#124
1 parent 398692d commit 3802083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/parser/openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _add_responses(*, endpoint: "Endpoint", data: oai.Responses, schemas: Schema
170170
endpoint = deepcopy(endpoint)
171171
for code, response_data in data.items():
172172
response, schemas = response_from_data(
173-
status_code=int(code), data=response_data, schemas=schemas, parent_name=endpoint.name
173+
status_code=int(200 if code == 'default' else code), data=response_data, schemas=schemas, parent_name=endpoint.name
174174
)
175175
if isinstance(response, ParseError):
176176
endpoint.errors.append(

0 commit comments

Comments
 (0)