Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit da75dab

Browse files
authored
Adds redirection response deserialization as non-error (#152)
* Adds redirection response deserialization as non-error * Adds redirection response sample + doc feature * Sample regen, test added
1 parent 3df55f0 commit da75dab

File tree

266 files changed

+851
-264
lines changed
  • docs/generators
  • modules
  • samples/openapi3/client
    • 3_0_3_unit_test/python/src/unit_test_api/paths
      • request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post
      • request_body_post_additionalproperties_are_allowed_by_default_request_body/post
      • request_body_post_additionalproperties_can_exist_by_itself_request_body/post
      • request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post
      • request_body_post_allof_combined_with_anyof_oneof_request_body/post
      • request_body_post_allof_request_body/post
      • request_body_post_allof_simple_types_request_body/post
      • request_body_post_allof_with_base_schema_request_body/post
      • request_body_post_allof_with_one_empty_schema_request_body/post
      • request_body_post_allof_with_the_first_empty_schema_request_body/post
      • request_body_post_allof_with_the_last_empty_schema_request_body/post
      • request_body_post_allof_with_two_empty_schemas_request_body/post
      • request_body_post_anyof_complex_types_request_body/post
      • request_body_post_anyof_request_body/post
      • request_body_post_anyof_with_base_schema_request_body/post
      • request_body_post_anyof_with_one_empty_schema_request_body/post
      • request_body_post_array_type_matches_arrays_request_body/post
      • request_body_post_boolean_type_matches_booleans_request_body/post
      • request_body_post_by_int_request_body/post
      • request_body_post_by_number_request_body/post
      • request_body_post_by_small_number_request_body/post
      • request_body_post_date_time_format_request_body/post
      • request_body_post_email_format_request_body/post
      • request_body_post_enum_with0_does_not_match_false_request_body/post
      • request_body_post_enum_with1_does_not_match_true_request_body/post
      • request_body_post_enum_with_escaped_characters_request_body/post
      • request_body_post_enum_with_false_does_not_match0_request_body/post
      • request_body_post_enum_with_true_does_not_match1_request_body/post
      • request_body_post_enums_in_properties_request_body/post
      • request_body_post_forbidden_property_request_body/post
      • request_body_post_hostname_format_request_body/post
      • request_body_post_integer_type_matches_integers_request_body/post
      • request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post
      • request_body_post_invalid_string_value_for_default_request_body/post
      • request_body_post_ipv4_format_request_body/post
      • request_body_post_ipv6_format_request_body/post
      • request_body_post_json_pointer_format_request_body/post
      • request_body_post_maximum_validation_request_body/post
      • request_body_post_maximum_validation_with_unsigned_integer_request_body/post
      • request_body_post_maxitems_validation_request_body/post
      • request_body_post_maxlength_validation_request_body/post
      • request_body_post_maxproperties0_means_the_object_is_empty_request_body/post
      • request_body_post_maxproperties_validation_request_body/post
      • request_body_post_minimum_validation_request_body/post
      • request_body_post_minimum_validation_with_signed_integer_request_body/post
      • request_body_post_minitems_validation_request_body/post
      • request_body_post_minlength_validation_request_body/post
      • request_body_post_minproperties_validation_request_body/post
      • request_body_post_nested_allof_to_check_validation_semantics_request_body/post
      • request_body_post_nested_anyof_to_check_validation_semantics_request_body/post
      • request_body_post_nested_items_request_body/post
      • request_body_post_nested_oneof_to_check_validation_semantics_request_body/post
      • request_body_post_not_more_complex_schema_request_body/post
      • request_body_post_not_request_body/post
      • request_body_post_nul_characters_in_strings_request_body/post
      • request_body_post_null_type_matches_only_the_null_object_request_body/post
      • request_body_post_number_type_matches_numbers_request_body/post
      • request_body_post_object_properties_validation_request_body/post
      • request_body_post_object_type_matches_objects_request_body/post
      • request_body_post_oneof_complex_types_request_body/post
      • request_body_post_oneof_request_body/post
      • request_body_post_oneof_with_base_schema_request_body/post
      • request_body_post_oneof_with_empty_schema_request_body/post
      • request_body_post_oneof_with_required_request_body/post
      • request_body_post_pattern_is_not_anchored_request_body/post
      • request_body_post_pattern_validation_request_body/post
      • request_body_post_properties_with_escaped_characters_request_body/post
      • request_body_post_property_named_ref_that_is_not_a_reference_request_body/post
      • request_body_post_ref_in_additionalproperties_request_body/post
      • request_body_post_ref_in_allof_request_body/post
      • request_body_post_ref_in_anyof_request_body/post
      • request_body_post_ref_in_items_request_body/post
      • request_body_post_ref_in_not_request_body/post
      • request_body_post_ref_in_oneof_request_body/post
      • request_body_post_ref_in_property_request_body/post
      • request_body_post_required_default_validation_request_body/post
      • request_body_post_required_validation_request_body/post
      • request_body_post_required_with_empty_array_request_body/post
      • request_body_post_required_with_escaped_characters_request_body/post
      • request_body_post_simple_enum_validation_request_body/post
      • request_body_post_string_type_matches_strings_request_body/post
      • request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post
      • request_body_post_uniqueitems_false_validation_request_body/post
      • request_body_post_uniqueitems_validation_request_body/post
      • request_body_post_uri_format_request_body/post
      • request_body_post_uri_reference_format_request_body/post
      • request_body_post_uri_template_format_request_body/post
      • response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post
      • response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post
      • response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post
      • response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post
      • response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post
      • response_body_post_allof_response_body_for_content_types/post
      • response_body_post_allof_simple_types_response_body_for_content_types/post
      • response_body_post_allof_with_base_schema_response_body_for_content_types/post
      • response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post
      • response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post
      • response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post
      • response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post
      • response_body_post_anyof_complex_types_response_body_for_content_types/post
      • response_body_post_anyof_response_body_for_content_types/post
      • response_body_post_anyof_with_base_schema_response_body_for_content_types/post
      • response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post
      • response_body_post_array_type_matches_arrays_response_body_for_content_types/post
      • response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post
      • response_body_post_by_int_response_body_for_content_types/post
      • response_body_post_by_number_response_body_for_content_types/post
      • response_body_post_by_small_number_response_body_for_content_types/post
      • response_body_post_date_time_format_response_body_for_content_types/post
      • response_body_post_email_format_response_body_for_content_types/post
      • response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post
      • response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post
      • response_body_post_enum_with_escaped_characters_response_body_for_content_types/post
      • response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post
      • response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post
      • response_body_post_enums_in_properties_response_body_for_content_types/post
      • response_body_post_forbidden_property_response_body_for_content_types/post
      • response_body_post_hostname_format_response_body_for_content_types/post
      • response_body_post_integer_type_matches_integers_response_body_for_content_types/post
      • response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post
      • response_body_post_invalid_string_value_for_default_response_body_for_content_types/post
      • response_body_post_ipv4_format_response_body_for_content_types/post
      • response_body_post_ipv6_format_response_body_for_content_types/post
      • response_body_post_json_pointer_format_response_body_for_content_types/post
      • response_body_post_maximum_validation_response_body_for_content_types/post
      • response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post
      • response_body_post_maxitems_validation_response_body_for_content_types/post
      • response_body_post_maxlength_validation_response_body_for_content_types/post
      • response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post
      • response_body_post_maxproperties_validation_response_body_for_content_types/post
      • response_body_post_minimum_validation_response_body_for_content_types/post
      • response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post
      • response_body_post_minitems_validation_response_body_for_content_types/post
      • response_body_post_minlength_validation_response_body_for_content_types/post
      • response_body_post_minproperties_validation_response_body_for_content_types/post
      • response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post
      • response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post
      • response_body_post_nested_items_response_body_for_content_types/post
      • response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post
      • response_body_post_not_more_complex_schema_response_body_for_content_types/post
      • response_body_post_not_response_body_for_content_types/post
      • response_body_post_nul_characters_in_strings_response_body_for_content_types/post
      • response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post
      • response_body_post_number_type_matches_numbers_response_body_for_content_types/post
      • response_body_post_object_properties_validation_response_body_for_content_types/post
      • response_body_post_object_type_matches_objects_response_body_for_content_types/post
      • response_body_post_oneof_complex_types_response_body_for_content_types/post
      • response_body_post_oneof_response_body_for_content_types/post
      • response_body_post_oneof_with_base_schema_response_body_for_content_types/post
      • response_body_post_oneof_with_empty_schema_response_body_for_content_types/post
      • response_body_post_oneof_with_required_response_body_for_content_types/post
      • response_body_post_pattern_is_not_anchored_response_body_for_content_types/post
      • response_body_post_pattern_validation_response_body_for_content_types/post
      • response_body_post_properties_with_escaped_characters_response_body_for_content_types/post
      • response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post
      • response_body_post_ref_in_additionalproperties_response_body_for_content_types/post
      • response_body_post_ref_in_allof_response_body_for_content_types/post
      • response_body_post_ref_in_anyof_response_body_for_content_types/post
      • response_body_post_ref_in_items_response_body_for_content_types/post
      • response_body_post_ref_in_not_response_body_for_content_types/post
      • response_body_post_ref_in_oneof_response_body_for_content_types/post
      • response_body_post_ref_in_property_response_body_for_content_types/post
      • response_body_post_required_default_validation_response_body_for_content_types/post
      • response_body_post_required_validation_response_body_for_content_types/post
      • response_body_post_required_with_empty_array_response_body_for_content_types/post
      • response_body_post_required_with_escaped_characters_response_body_for_content_types/post
      • response_body_post_simple_enum_validation_response_body_for_content_types/post
      • response_body_post_string_type_matches_strings_response_body_for_content_types/post
      • response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post
      • response_body_post_uniqueitems_false_validation_response_body_for_content_types/post
      • response_body_post_uniqueitems_validation_response_body_for_content_types/post
      • response_body_post_uri_format_response_body_for_content_types/post
      • response_body_post_uri_reference_format_response_body_for_content_types/post
      • response_body_post_uri_template_format_response_body_for_content_types/post
    • features
      • nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post
      • security/python/src/this_package/paths
    • petstore/python

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+851
-264
lines changed

docs/generators/java.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
285285
### Operation Feature
286286
| Name | Supported | Defined By |
287287
| ---- | --------- | ---------- |
288-
|Responses_HttpStatusCode|✓|OAS2,OAS3
289-
|Responses_RangedResponseCodes|✗|OAS2,OAS3
290-
|Responses_Default|✓|OAS2,OAS3
288+
|Responses_HttpStatusCode|✓|OAS3
289+
|Responses_RangedResponseCodes|✗|OAS3
290+
|Responses_Default|✓|OAS3
291+
|Responses_RedirectionResponse|✗|OAS3
291292

292293
### Parameter Feature
293294
| Name | Supported | Defined By |

docs/generators/jaxrs-jersey.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
268268
### Operation Feature
269269
| Name | Supported | Defined By |
270270
| ---- | --------- | ---------- |
271-
|Responses_HttpStatusCode|✓|OAS2,OAS3
272-
|Responses_RangedResponseCodes|✗|OAS2,OAS3
273-
|Responses_Default|✓|OAS2,OAS3
271+
|Responses_HttpStatusCode|✓|OAS3
272+
|Responses_RangedResponseCodes|✗|OAS3
273+
|Responses_Default|✓|OAS3
274+
|Responses_RedirectionResponse|✗|OAS3
274275

275276
### Parameter Feature
276277
| Name | Supported | Defined By |

docs/generators/jmeter.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
127127
### Operation Feature
128128
| Name | Supported | Defined By |
129129
| ---- | --------- | ---------- |
130-
|Responses_HttpStatusCode|✓|OAS2,OAS3
131-
|Responses_RangedResponseCodes|✗|OAS2,OAS3
132-
|Responses_Default|✓|OAS2,OAS3
130+
|Responses_HttpStatusCode|✓|OAS3
131+
|Responses_RangedResponseCodes|✗|OAS3
132+
|Responses_Default|✓|OAS3
133+
|Responses_RedirectionResponse|✗|OAS3
133134

134135
### Parameter Feature
135136
| Name | Supported | Defined By |

docs/generators/kotlin.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
237237
### Operation Feature
238238
| Name | Supported | Defined By |
239239
| ---- | --------- | ---------- |
240-
|Responses_HttpStatusCode|✓|OAS2,OAS3
241-
|Responses_RangedResponseCodes|✗|OAS2,OAS3
242-
|Responses_Default|✓|OAS2,OAS3
240+
|Responses_HttpStatusCode|✓|OAS3
241+
|Responses_RangedResponseCodes|✗|OAS3
242+
|Responses_Default|✓|OAS3
243+
|Responses_RedirectionResponse|✗|OAS3
243244

244245
### Parameter Feature
245246
| Name | Supported | Defined By |

docs/generators/python.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
196196
### Operation Feature
197197
| Name | Supported | Defined By |
198198
| ---- | --------- | ---------- |
199-
|Responses_HttpStatusCode|✓|OAS2,OAS3
200-
|Responses_RangedResponseCodes|✓|OAS2,OAS3
201-
|Responses_Default|✓|OAS2,OAS3
199+
|Responses_HttpStatusCode|✓|OAS3
200+
|Responses_RangedResponseCodes|✓|OAS3
201+
|Responses_Default|✓|OAS3
202+
|Responses_RedirectionResponse|✓|OAS3
202203

203204
### Parameter Feature
204205
| Name | Supported | Defined By |

modules/openapi-json-schema-generator-core/src/main/java/org/openapijsonschematools/codegen/meta/features/OperationFeature.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
* Defines Operation features supported in the generated code.
2424
*/
2525
public enum OperationFeature {
26-
/**
27-
* Supports header-based basic http auth.
28-
*/
29-
@OAS2 @OAS3
26+
@OAS3
3027
Responses_HttpStatusCode,
3128

32-
@OAS2 @OAS3
29+
@OAS3
3330
Responses_RangedResponseCodes,
3431

35-
@OAS2 @OAS3
32+
@OAS3
3633
Responses_Default,
34+
35+
@OAS3
36+
Responses_RedirectionResponse,
3737
}

modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/languages/PythonClientCodegen.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ public PythonClientCodegen() {
228228
ParameterFeature.Content
229229
)
230230
.includeOperationFeatures(
231-
OperationFeature.Responses_RangedResponseCodes
231+
OperationFeature.Responses_RangedResponseCodes,
232+
OperationFeature.Responses_RedirectionResponse
232233
)
233234
.excludeParameterFeatures(
234235
ParameterFeature.In_Cookie

modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/model/CodegenOperation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ public Map<String, CodegenResponse> getNonErrorResponses() {
8585
HashMap<String,CodegenResponse> nonErrorResponses = new HashMap<>();
8686
if (statusCodeResponses != null) {
8787
for (Map.Entry<Integer, CodegenResponse> entry: statusCodeResponses.entrySet()) {
88-
if (entry.getKey() >= 200 && entry.getKey() <= 299) {
88+
if (entry.getKey() >= 200 && entry.getKey() <= 399) {
8989
nonErrorResponses.put(entry.getKey().toString(), entry.getValue());
9090
}
9191
}
9292
}
9393
if (wildcardCodeResponses != null) {
9494
for (Map.Entry<Integer, CodegenResponse> entry: wildcardCodeResponses.entrySet()) {
95-
if (entry.getKey() == 2) {
95+
if (entry.getKey() == 2 || entry.getKey() == 3) {
9696
nonErrorResponses.put(entry.getKey().toString(), entry.getValue());
9797
}
9898
}

modules/openapi-json-schema-generator/src/main/resources/python/paths/path/verb/operation.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class BaseApi(api_client.Api):
405405
{{/if}}
406406
{{/if}}
407407

408-
if not 200 <= response.status <= 299:
408+
if not 200 <= response.status <= 399:
409409
raise exceptions.ApiException(
410410
status=response.status,
411411
reason=response.reason,

modules/openapi-json-schema-generator/src/test/resources/3_0/python/petstore_customized.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,17 @@ paths:
16811681
content:
16821682
application/json:
16831683
schema: {}
1684+
/fake/redirection:
1685+
get:
1686+
operationId: redirection
1687+
summary: operation with redirection responses
1688+
tags:
1689+
- fake
1690+
responses:
1691+
303:
1692+
description: see other
1693+
3XX:
1694+
description: 3XX response
16841695
servers:
16851696
- url: 'http://{server}.swagger.io:{port}/v2'
16861697
description: petstore server

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class instances
169169
else:
170170
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
171171

172-
if not 200 <= response.status <= 299:
172+
if not 200 <= response.status <= 399:
173173
raise exceptions.ApiException(
174174
status=response.status,
175175
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class instances
169169
else:
170170
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
171171

172-
if not 200 <= response.status <= 299:
172+
if not 200 <= response.status <= 399:
173173
raise exceptions.ApiException(
174174
status=response.status,
175175
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class instances
164164
else:
165165
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
166166

167-
if not 200 <= response.status <= 299:
167+
if not 200 <= response.status <= 399:
168168
raise exceptions.ApiException(
169169
status=response.status,
170170
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class instances
169169
else:
170170
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
171171

172-
if not 200 <= response.status <= 299:
172+
if not 200 <= response.status <= 399:
173173
raise exceptions.ApiException(
174174
status=response.status,
175175
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class instances
164164
else:
165165
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
166166

167-
if not 200 <= response.status <= 299:
167+
if not 200 <= response.status <= 399:
168168
raise exceptions.ApiException(
169169
status=response.status,
170170
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class instances
239239
else:
240240
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
241241

242-
if not 200 <= response.status <= 299:
242+
if not 200 <= response.status <= 399:
243243
raise exceptions.ApiException(
244244
status=response.status,
245245
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class instances
174174
else:
175175
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
176176

177-
if not 200 <= response.status <= 299:
177+
if not 200 <= response.status <= 399:
178178
raise exceptions.ApiException(
179179
status=response.status,
180180
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class instances
174174
else:
175175
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
176176

177-
if not 200 <= response.status <= 299:
177+
if not 200 <= response.status <= 399:
178178
raise exceptions.ApiException(
179179
status=response.status,
180180
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class instances
164164
else:
165165
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
166166

167-
if not 200 <= response.status <= 299:
167+
if not 200 <= response.status <= 399:
168168
raise exceptions.ApiException(
169169
status=response.status,
170170
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class instances
164164
else:
165165
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
166166

167-
if not 200 <= response.status <= 299:
167+
if not 200 <= response.status <= 399:
168168
raise exceptions.ApiException(
169169
status=response.status,
170170
reason=response.reason,

samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class instances
164164
else:
165165
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
166166

167-
if not 200 <= response.status <= 299:
167+
if not 200 <= response.status <= 399:
168168
raise exceptions.ApiException(
169169
status=response.status,
170170
reason=response.reason,

0 commit comments

Comments
 (0)