Skip to content

Commit

Permalink
fix: deserialize responses even if no returnType
Browse files Browse the repository at this point in the history
  • Loading branch information
robertschweizer committed Nov 11, 2023
1 parent d0c6434 commit 7e1fd40
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@
)

_response_types_map: Dict[str, Optional[str]] = {
{{#returnType}}
{{#responses}}
{{^isWildcard}}
'{{code}}': {{#dataType}}"{{.}}"{{/dataType}}{{^dataType}}None{{/dataType}},
{{/isWildcard}}
{{/responses}}
{{/returnType}}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ async def fake_any_type_request_body(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -178,6 +179,7 @@ async def fake_any_type_request_body_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -243,6 +245,7 @@ async def fake_any_type_request_body_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -372,6 +375,7 @@ async def fake_enum_ref_query_parameter(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -437,6 +441,7 @@ async def fake_enum_ref_query_parameter_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -502,6 +507,7 @@ async def fake_enum_ref_query_parameter_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -868,6 +874,7 @@ async def fake_http_signature_test(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -941,6 +948,7 @@ async def fake_http_signature_test_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -1014,6 +1022,7 @@ async def fake_http_signature_test_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -2748,6 +2757,7 @@ async def fake_uuid_example(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -2813,6 +2823,7 @@ async def fake_uuid_example_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -2878,6 +2889,7 @@ async def fake_uuid_example_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -2997,6 +3009,7 @@ async def test_body_with_binary(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3063,6 +3076,7 @@ async def test_body_with_binary_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3129,6 +3143,7 @@ async def test_body_with_binary_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3264,6 +3279,7 @@ async def test_body_with_file_schema(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3330,6 +3346,7 @@ async def test_body_with_file_schema_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3396,6 +3413,7 @@ async def test_body_with_file_schema_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3529,6 +3547,7 @@ async def test_body_with_query_params(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3598,6 +3617,7 @@ async def test_body_with_query_params_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -3667,6 +3687,7 @@ async def test_body_with_query_params_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4076,6 +4097,7 @@ async def test_date_time_query_parameter(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4145,6 +4167,7 @@ async def test_date_time_query_parameter_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4214,6 +4237,7 @@ async def test_date_time_query_parameter_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4343,6 +4367,8 @@ async def test_empty_and_non_empty_responses(
)

_response_types_map: Dict[str, Optional[str]] = {
'204': None,
'206': "str",
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4405,6 +4431,8 @@ async def test_empty_and_non_empty_responses_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'204': None,
'206': "str",
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4467,6 +4495,8 @@ async def test_empty_and_non_empty_responses_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'204': None,
'206': "str",
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4643,6 +4673,8 @@ async def test_endpoint_parameters(
)

_response_types_map: Dict[str, Optional[str]] = {
'400': None,
'404': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4765,6 +4797,8 @@ async def test_endpoint_parameters_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'400': None,
'404': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -4887,6 +4921,8 @@ async def test_endpoint_parameters_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'400': None,
'404': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5080,6 +5116,7 @@ async def test_group_parameters(
)

_response_types_map: Dict[str, Optional[str]] = {
'400': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5166,6 +5203,7 @@ async def test_group_parameters_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'400': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5252,6 +5290,7 @@ async def test_group_parameters_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'400': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5393,6 +5432,7 @@ async def test_inline_additional_properties(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5459,6 +5499,7 @@ async def test_inline_additional_properties_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5525,6 +5566,7 @@ async def test_inline_additional_properties_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5655,6 +5697,7 @@ async def test_inline_freeform_additional_properties(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5721,6 +5764,7 @@ async def test_inline_freeform_additional_properties_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5787,6 +5831,7 @@ async def test_inline_freeform_additional_properties_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5921,6 +5966,7 @@ async def test_json_form_data(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -5991,6 +6037,7 @@ async def test_json_form_data_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -6061,6 +6108,7 @@ async def test_json_form_data_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -6218,6 +6266,7 @@ async def test_query_parameter_collection_format(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -6308,6 +6357,7 @@ async def test_query_parameter_collection_format_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -6398,6 +6448,7 @@ async def test_query_parameter_collection_format_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': None,
}
response_data = await self.api_client.call_api(
*_param,
Expand Down
Loading

0 comments on commit 7e1fd40

Please sign in to comment.