We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 635e62e commit a0d5bf7Copy full SHA for a0d5bf7
openapi_python_client/parser/responses.py
@@ -98,7 +98,7 @@ def response_from_data(
98
schemas,
99
)
100
101
- response_type_val = schema_data['x-response-type'] if 'x-response-type' in schema_data else ResponseType.AUTO.value
+ response_type_val = data.__dict__['x-response-type'] if 'x-response-type' in data.__dict__ else ResponseType.AUTO.value
102
if response_type_val not in ResponseType._value2member_map_:
103
return ParseError(data=data, detail=f"Unsupported x-response-type: {response_type}"), schemas
104
response_type = ResponseType(response_type_val)
0 commit comments