diff --git a/docs/generators/java.md b/docs/generators/java.md index cdacabdafa6..f9fada54409 100644 --- a/docs/generators/java.md +++ b/docs/generators/java.md @@ -285,9 +285,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl ### Operation Feature | Name | Supported | Defined By | | ---- | --------- | ---------- | -|Responses_HttpStatusCode|✓|OAS2,OAS3 -|Responses_RangedResponseCodes|✗|OAS2,OAS3 -|Responses_Default|✓|OAS2,OAS3 +|Responses_HttpStatusCode|✓|OAS3 +|Responses_RangedResponseCodes|✗|OAS3 +|Responses_Default|✓|OAS3 +|Responses_RedirectionResponse|✗|OAS3 ### Parameter Feature | Name | Supported | Defined By | diff --git a/docs/generators/jaxrs-jersey.md b/docs/generators/jaxrs-jersey.md index 761fe53b361..a04452cd13f 100644 --- a/docs/generators/jaxrs-jersey.md +++ b/docs/generators/jaxrs-jersey.md @@ -268,9 +268,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl ### Operation Feature | Name | Supported | Defined By | | ---- | --------- | ---------- | -|Responses_HttpStatusCode|✓|OAS2,OAS3 -|Responses_RangedResponseCodes|✗|OAS2,OAS3 -|Responses_Default|✓|OAS2,OAS3 +|Responses_HttpStatusCode|✓|OAS3 +|Responses_RangedResponseCodes|✗|OAS3 +|Responses_Default|✓|OAS3 +|Responses_RedirectionResponse|✗|OAS3 ### Parameter Feature | Name | Supported | Defined By | diff --git a/docs/generators/jmeter.md b/docs/generators/jmeter.md index 5dc11232a37..37838528eb6 100644 --- a/docs/generators/jmeter.md +++ b/docs/generators/jmeter.md @@ -127,9 +127,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl ### Operation Feature | Name | Supported | Defined By | | ---- | --------- | ---------- | -|Responses_HttpStatusCode|✓|OAS2,OAS3 -|Responses_RangedResponseCodes|✗|OAS2,OAS3 -|Responses_Default|✓|OAS2,OAS3 +|Responses_HttpStatusCode|✓|OAS3 +|Responses_RangedResponseCodes|✗|OAS3 +|Responses_Default|✓|OAS3 +|Responses_RedirectionResponse|✗|OAS3 ### Parameter Feature | Name | Supported | Defined By | diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md index 2454c2ebbce..d6f01c02453 100644 --- a/docs/generators/kotlin.md +++ b/docs/generators/kotlin.md @@ -237,9 +237,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl ### Operation Feature | Name | Supported | Defined By | | ---- | --------- | ---------- | -|Responses_HttpStatusCode|✓|OAS2,OAS3 -|Responses_RangedResponseCodes|✗|OAS2,OAS3 -|Responses_Default|✓|OAS2,OAS3 +|Responses_HttpStatusCode|✓|OAS3 +|Responses_RangedResponseCodes|✗|OAS3 +|Responses_Default|✓|OAS3 +|Responses_RedirectionResponse|✗|OAS3 ### Parameter Feature | Name | Supported | Defined By | diff --git a/docs/generators/python.md b/docs/generators/python.md index 39a7ee08229..81a3a789e5e 100644 --- a/docs/generators/python.md +++ b/docs/generators/python.md @@ -196,9 +196,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl ### Operation Feature | Name | Supported | Defined By | | ---- | --------- | ---------- | -|Responses_HttpStatusCode|✓|OAS2,OAS3 -|Responses_RangedResponseCodes|✓|OAS2,OAS3 -|Responses_Default|✓|OAS2,OAS3 +|Responses_HttpStatusCode|✓|OAS3 +|Responses_RangedResponseCodes|✓|OAS3 +|Responses_Default|✓|OAS3 +|Responses_RedirectionResponse|✓|OAS3 ### Parameter Feature | Name | Supported | Defined By | diff --git a/modules/openapi-json-schema-generator-core/src/main/java/org/openapijsonschematools/codegen/meta/features/OperationFeature.java b/modules/openapi-json-schema-generator-core/src/main/java/org/openapijsonschematools/codegen/meta/features/OperationFeature.java index bb91ddc2418..7c6faf8beaa 100644 --- a/modules/openapi-json-schema-generator-core/src/main/java/org/openapijsonschematools/codegen/meta/features/OperationFeature.java +++ b/modules/openapi-json-schema-generator-core/src/main/java/org/openapijsonschematools/codegen/meta/features/OperationFeature.java @@ -23,15 +23,15 @@ * Defines Operation features supported in the generated code. */ public enum OperationFeature { - /** - * Supports header-based basic http auth. - */ - @OAS2 @OAS3 + @OAS3 Responses_HttpStatusCode, - @OAS2 @OAS3 + @OAS3 Responses_RangedResponseCodes, - @OAS2 @OAS3 + @OAS3 Responses_Default, + + @OAS3 + Responses_RedirectionResponse, } diff --git a/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/languages/PythonClientCodegen.java b/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/languages/PythonClientCodegen.java index df090324b85..aae2daa9082 100644 --- a/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/languages/PythonClientCodegen.java @@ -228,7 +228,8 @@ public PythonClientCodegen() { ParameterFeature.Content ) .includeOperationFeatures( - OperationFeature.Responses_RangedResponseCodes + OperationFeature.Responses_RangedResponseCodes, + OperationFeature.Responses_RedirectionResponse ) .excludeParameterFeatures( ParameterFeature.In_Cookie diff --git a/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/model/CodegenOperation.java b/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/model/CodegenOperation.java index f44b6d4a986..0067bdd9b51 100644 --- a/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/model/CodegenOperation.java +++ b/modules/openapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/model/CodegenOperation.java @@ -85,14 +85,14 @@ public Map getNonErrorResponses() { HashMap nonErrorResponses = new HashMap<>(); if (statusCodeResponses != null) { for (Map.Entry entry: statusCodeResponses.entrySet()) { - if (entry.getKey() >= 200 && entry.getKey() <= 299) { + if (entry.getKey() >= 200 && entry.getKey() <= 399) { nonErrorResponses.put(entry.getKey().toString(), entry.getValue()); } } } if (wildcardCodeResponses != null) { for (Map.Entry entry: wildcardCodeResponses.entrySet()) { - if (entry.getKey() == 2) { + if (entry.getKey() == 2 || entry.getKey() == 3) { nonErrorResponses.put(entry.getKey().toString(), entry.getValue()); } } diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/paths/path/verb/operation.hbs b/modules/openapi-json-schema-generator/src/main/resources/python/paths/path/verb/operation.hbs index 31f316b1515..612f3f3c904 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/paths/path/verb/operation.hbs +++ b/modules/openapi-json-schema-generator/src/main/resources/python/paths/path/verb/operation.hbs @@ -405,7 +405,7 @@ class BaseApi(api_client.Api): {{/if}} {{/if}} - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/modules/openapi-json-schema-generator/src/test/resources/3_0/python/petstore_customized.yaml b/modules/openapi-json-schema-generator/src/test/resources/3_0/python/petstore_customized.yaml index 0796bbdd41a..f8236a8645e 100644 --- a/modules/openapi-json-schema-generator/src/test/resources/3_0/python/petstore_customized.yaml +++ b/modules/openapi-json-schema-generator/src/test/resources/3_0/python/petstore_customized.yaml @@ -1681,6 +1681,17 @@ paths: content: application/json: schema: {} + /fake/redirection: + get: + operationId: redirection + summary: operation with redirection responses + tags: + - fake + responses: + 303: + description: see other + 3XX: + description: 3XX response servers: - url: 'http://{server}.swagger.io:{port}/v2' description: petstore server diff --git a/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 b/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 index ba44a2b5fab..a1ad37f3c23 100644 --- a/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 +++ b/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 @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 437c59919d6..7b3498ef49f 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 90237cc968a..41af62ef656 100644 --- a/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 +++ b/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 @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index ea0cb365ca0..6e1714ecea4 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index b3f33ee8a78..2515537da60 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index bac49ecd019..070cfaaa86e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index d766dbce9a2..cf8edd3128b 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 56e95e425bb..3592c38124b 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 09580748492..73a733af888 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 8ee608f3316..2df35175a9f 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index a0c4000a45f..0ec813fec8a 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index e769ed26a79..502077a70dd 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 34a2d64be49..78aa5b1c78e 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index cbfe4799f25..a6f51d4b3fc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 7d14e516d48..23096e50d27 100644 --- a/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 +++ b/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 @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 54828aa1402..39773b0621b 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 2bd10c10437..6ca0ecb02c2 100644 --- a/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 +++ b/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 @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 845683fbddb..df04b1ec02a 100644 --- a/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 +++ b/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 @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index f476f57bfc0..9070683225c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index a6caf430661..8eaa14d23d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index c2336d8ca5a..ce829fc3c26 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 9613e7f7ffc..a379a42ffd4 100644 --- a/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 +++ b/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 @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 05fbd599e00..66ce9899b4e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 522c2fa6d7f..1546a5d8eb4 100644 --- a/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 +++ b/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 @@ -174,7 +174,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 6a8fbdf4630..c7c02bfa237 100644 --- a/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 +++ b/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 @@ -174,7 +174,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 2498de9aa41..68835778d49 100644 --- a/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 +++ b/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 @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index 07b0f970f35..8280e2c522e 100644 --- a/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 +++ b/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 @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/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 b/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 index f39eb12e3cc..c348a106787 100644 --- a/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 +++ b/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 @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index 30188a5cce3..85f83c67187 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index b7d3231f756..6eb4b165c6c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index 4f2d7306896..e5c141607f9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index a1e4382988d..4f9f0d0ba76 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py index 911ea450aca..ecde6f2488d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py index 10bc715c922..d979d8403ed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 9bf8b503449..84432e0dab6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index 97a552602f2..fb8147220c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index 688244306c4..ebf9b4696eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index b5c10f72bf0..685ac2064db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index 071f695cad5..24b08cccf0e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index 9ca9712a9c0..60a88c892f0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index add4781fd22..fe62199d5b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index 27a6fb3e3a7..f5950b41a10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index fc5f61d00a1..a0a3b1092a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 1075a5073a9..f0e6c42fa26 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 488c6beacc1..4832fb1ea57 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index 82ee5f83598..852213c8123 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 9f6432cf03b..c9c4c17c518 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 3c130130277..6c65a5c9d5d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index f07025becd0..369ea5e2765 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index ababc11dc05..839cb68d58b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index c7cf11a2ff3..27edd264501 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index e409dcce5d7..67f2a4f25c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 831120d56a5..0616a2560f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index 73ac9cddb3e..f51718d4427 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index 02d4126f2a6..ffb8b992158 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index 18041a6e0cc..c487cf6a687 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 4e6dfcd8df7..79c68e71f2e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -174,7 +174,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 0ad2d47107a..649e9b8130a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index 2b757c68a15..d8e2681e4cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index fea438885da..0591c316a2a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index da101eddacb..db605a756a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index 93f434dc6fd..3b4aa22a4b4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index e09425011ba..2d5e4d5d2c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 5be3617455f..a0ebe422d42 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index 2bf71004652..35c37a9461c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index 658649ff782..fe62c4ccf24 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index 6cedfb3a1c4..048990f820d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index c376827c12d..5cbde4f2461 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py index 39e06dfd687..7f0e01eaea4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py index 918e1ae2473..5f378bd5e1f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py index 9df5bf24750..538f0146dfe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py index e014e421052..e57b211dcac 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py index a747a87d073..bf20f484f3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py index 09e12f5e800..2a7e92978a2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py index 479c5ebb0e7..dd7f4d7feb4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index ca1560c8777..1719dd10689 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index b51f2de7a3f..a4c32fe7401 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index 0e105a0e367..f6ee9ea1f81 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index 53db886d85d..4bae3f20c8f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index ba9eb6aeca7..5ef8e5aeb5a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -174,7 +174,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index f29f09072f7..1c3632acffa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -164,7 +164,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py index c6141b0c2f5..c6c26c405eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index 13961a18309..bd8befa1ca3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index 58e9f62c3b4..aff589bc301 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index 6472b463de3..55d96f302b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 76339c38120..dd1c2f6e6cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 539021d7b12..3f4a1c4aa3b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -239,7 +239,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py index e4345f5e062..f3a2c150bb2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 97a6d49be9f..717e57c78d0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index b43db4bb82c..6932b47603b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py index d4ad7ca29c3..8d4bc9b4cc3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index a6bad65ee26..2a0cb5cca01 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index 47ddd722122..a4ca8fdcbb7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index f0c881a8855..1a16ffefb6a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 4fb086c1f89..64544f1db26 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 36eeac987d4..ed114272ad8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index 51bcdaa4a8d..2302e51c666 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 76fb9fe9d09..b363ef3ce04 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 838b106fc86..0985add4e23 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 7f7a1944d22..c0cbddebe7d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index 0e829d16522..260392fa2af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 1a7abca736b..1ef85388d63 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 8670d6b92e9..c1488321860 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index 3dfffdaf123..09e577b0240 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index 31352c2db8d..47ee4c060cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index c783e192954..a0659fb5a3a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index 35b612e97d4..53062ab1a55 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 47341632d3a..eee3c518adb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index 522cf78b608..9fdb97d0a83 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index cf8a830b4b2..d316203da10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 7ba414586d2..247f84d84a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index 82bd506da71..ff2ca06a877 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index 01eee146e88..0cd3cdf522c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index f7f6cb46324..9fa23a1de61 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index 4423382bdc0..df58a89b796 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index 86164e592e9..943f162367b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 72919573fb3..525ab5714e5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 6a3bb12e547..2aaf7805343 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 3d12f1cd89c..9c799052e05 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py index 4182ff73741..a9f53e7efa6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py index 33754c0c1b5..eca92e18007 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index 8c6bdeff5fb..58403b88e3c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index 8ca7d3b210b..e974b556fea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 9ca0342b6d0..8fc709e270f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index 235516b9422..a9f5ade807e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index fcb330346fb..708019ace64 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index 2f89c5487b0..49062d86dad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 1e6222188c9..41d67db29e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index 5a147738cf7..fa169e8a5d5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index 6fdadfe7a9d..043d9c080c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index 19b61205ad3..943f1a7532a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index 24861f45d11..2e3fa5ff8c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index 023e5186a5b..54974371736 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index 8f6c6f9ca7d..f84fc2f3eb6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 3488fc16d7a..2520aea5574 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 6f36a8a445d..db2b246c6af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 448d4ad5942..c367cac6b4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index 8d30b213cfd..454dd1f51d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 4c4fe7eb1fb..5c94ad6929f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 488a438d1d0..0110d75f869 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index d753d2805b8..0ef462d52be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 0123aa0062e..940022ece04 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 4845708657f..1c219a89403 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 13767eff96d..e33469e133f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index c04fc4ea3cd..451aee595a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index 39a276679b1..8d14c826661 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index dbcffd57159..06dff44d7a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index 743ab871151..cb1d2f23a48 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index baed7409293..7c461ff0297 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index 26ec96f4dc1..86f899dff04 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index 14893f240b5..290535d0868 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index 999604fc0de..b39a903d98f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index 6909b8fda72..3578eafdab7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index 24f7da8ca03..798c02636ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index 7af44970daa..488ec8ccef0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py index 3d652e70d0d..0885607491a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py index f5e25057053..2da32d07e5a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py index 23730edbed3..179ac574b1e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py index b17353391b0..8bc09649ba8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py index 95f4c851e15..1a2647f71e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py index 656508ed4a2..da5ec9e305d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py index 7c31140e5d7..8d7c673c64d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index ed4db33fb1c..e30ad788182 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index fe3a4ea84df..3ae0a42b8aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index eb89b819b9b..5af9c1b174f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index d4ee405ebeb..edeb1702cde 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 5e5f9af4ae7..f28b2b8abf7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 699150bce12..ca32edbec2c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py index 5c9e8d3e801..d420cdefc50 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index 221f193ef6e..caeabf593f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 37c8d96f2d6..e0122e7a7e9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index f5c2934b2b5..2691d533d96 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index cf191dd1b77..63ca7660c13 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index 6dd5ab1d037..504276af7f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -125,7 +125,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py index 943b994e91d..94196579d0d 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py @@ -242,7 +242,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py index 20d56082394..b39de0f0c86 100644 --- a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py +++ b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py @@ -111,7 +111,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py index 2f2ff6e8182..f69fb4a3c2c 100644 --- a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py +++ b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py @@ -126,7 +126,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py index 9d24a8b4cd5..b56090cc0da 100644 --- a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py +++ b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py @@ -134,7 +134,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py index 771c2a088d1..0eb194e379c 100644 --- a/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py +++ b/samples/openapi3/client/features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py @@ -130,7 +130,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/FILES b/samples/openapi3/client/petstore/python/.openapi-generator/FILES index 360f0cb76f0..457d3b64894 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/python/.openapi-generator/FILES @@ -190,6 +190,7 @@ docs/paths/fake_obj_in_query/get.md docs/paths/fake_parameter_collisions1_abab_self_ab/post.md docs/paths/fake_pet_id_upload_image_with_required_file/post.md docs/paths/fake_query_param_with_json_content_type/get.md +docs/paths/fake_redirection/get.md docs/paths/fake_ref_obj_in_query/get.md docs/paths/fake_refs_array_of_enums/post.md docs/paths/fake_refs_arraymodel/post.md @@ -259,6 +260,7 @@ src/petstore_api/apis/paths/fake_obj_in_query.py src/petstore_api/apis/paths/fake_parameter_collisions1_abab_self_ab.py src/petstore_api/apis/paths/fake_pet_id_upload_image_with_required_file.py src/petstore_api/apis/paths/fake_query_param_with_json_content_type.py +src/petstore_api/apis/paths/fake_redirection.py src/petstore_api/apis/paths/fake_ref_obj_in_query.py src/petstore_api/apis/paths/fake_refs_array_of_enums.py src/petstore_api/apis/paths/fake_refs_arraymodel.py @@ -834,6 +836,12 @@ src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/res src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/__init__.py src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/application_json/__init__.py src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/content/application_json/schema.py +src/petstore_api/paths/fake_redirection/__init__.py +src/petstore_api/paths/fake_redirection/get/__init__.py +src/petstore_api/paths/fake_redirection/get/operation.py +src/petstore_api/paths/fake_redirection/get/responses/__init__.py +src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py +src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py src/petstore_api/paths/fake_ref_obj_in_query/__init__.py src/petstore_api/paths/fake_ref_obj_in_query/get/__init__.py src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py @@ -1358,6 +1366,7 @@ test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py test/test_paths/__init__.py +test/test_paths/__init__.py test/test_paths/test_another_fake_dummy/__init__.py test/test_paths/test_another_fake_dummy/test_patch.py test/test_paths/test_fake/__init__.py @@ -1401,6 +1410,8 @@ test/test_paths/test_fake_pet_id_upload_image_with_required_file/__init__.py test/test_paths/test_fake_pet_id_upload_image_with_required_file/test_post.py test/test_paths/test_fake_query_param_with_json_content_type/__init__.py test/test_paths/test_fake_query_param_with_json_content_type/test_get.py +test/test_paths/test_fake_redirection/__init__.py +test/test_paths/test_fake_redirection/test_get.py test/test_paths/test_fake_ref_obj_in_query/__init__.py test/test_paths/test_fake_ref_obj_in_query/test_get.py test/test_paths/test_fake_refs_array_of_enums/__init__.py diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index ac25d4c3691..da0691aed7c 100644 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -234,6 +234,7 @@ HTTP request | Method | Description /fake/objInQuery **get** | [FakeApi](docs/apis/tags/fake_api.md).[object_in_query](docs/paths/fake_obj_in_query/get.md) | user list /fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/ **post** | [FakeApi](docs/apis/tags/fake_api.md).[parameter_collisions](docs/paths/fake_parameter_collisions1_abab_self_ab/post.md) | parameter collision case /fake/queryParamWithJsonContentType **get** | [FakeApi](docs/apis/tags/fake_api.md).[query_param_with_json_content_type](docs/paths/fake_query_param_with_json_content_type/get.md) | query param with json content-type +/fake/redirection **get** | [FakeApi](docs/apis/tags/fake_api.md).[redirection](docs/paths/fake_redirection/get.md) | operation with redirection responses /fake/refObjInQuery **get** | [FakeApi](docs/apis/tags/fake_api.md).[ref_object_in_query](docs/paths/fake_ref_obj_in_query/get.md) | user list /fake/refs/array-of-enums **post** | [FakeApi](docs/apis/tags/fake_api.md).[array_of_enums](docs/paths/fake_refs_array_of_enums/post.md) | Array of Enums /fake/refs/arraymodel **post** | [FakeApi](docs/apis/tags/fake_api.md).[array_model](docs/paths/fake_refs_arraymodel/post.md) | diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/fake_api.md b/samples/openapi3/client/petstore/python/docs/apis/tags/fake_api.md index 9ced55d55f5..addb0e893ac 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/fake_api.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/fake_api.md @@ -37,6 +37,7 @@ Method | Description [**parameter_collisions**](../../paths/fake_parameter_collisions1_abab_self_ab/post.md) | parameter collision case [**query_param_with_json_content_type**](../../paths/fake_query_param_with_json_content_type/get.md) | query param with json content-type [**query_parameter_collection_format**](../../paths/fake_test_query_paramters/put.md) | +[**redirection**](../../paths/fake_redirection/get.md) | operation with redirection responses [**ref_object_in_query**](../../paths/fake_ref_obj_in_query/get.md) | user list [**response_without_schema**](../../paths/fake_response_without_schema/get.md) | receives a response without schema [**string**](../../paths/fake_refs_string/post.md) | diff --git a/samples/openapi3/client/petstore/python/docs/paths/fake_redirection/get.md b/samples/openapi3/client/petstore/python/docs/paths/fake_redirection/get.md new file mode 100644 index 00000000000..203387a725c --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/paths/fake_redirection/get.md @@ -0,0 +1,104 @@ +petstore_api.paths.fake_redirection.operation +# Operation Method Name + +| Method Name | Api Class | Notes | +| ----------- | --------- | ----- | +| redirection | [FakeApi](../../apis/tags/fake_api.md) | This api is only for tag=fake | +| get | ApiForGet | This api is only for this endpoint | +| get | FakeRedirection | This api is only for path=/fake/redirection | + +## Table of Contents +- [General Info](#general-info) +- [Arguments](#arguments) +- [Return Types](#return-types) +- [Servers](#servers) +- [Code Sample](#code-sample) + +## General Info +| Field | Value | +| ----- | ----- | +| Summary | operation with redirection responses | +| Path | "/fake/redirection" | +| HTTP Method | get | + +## Arguments + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +server_index | typing.Optional[int] | default is None | Allows one to select a different server +stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file +timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client +skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned + +## Return Types + +HTTP Status Code | Class | Description +------------- | ------------- | ------------- +n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned +303 | [ResponseFor303.response_cls](#responsefor303-response_cls) | see other +3XX | [ResponseFor3XX.response_cls](#responsefor3xx-response_cls) | 3XX response + +## ResponseFor303 + +### Description +see other + +### ResponseFor303 response_cls +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## ResponseFor3XX + +### Description +3XX response + +### ResponseFor3XX response_cls +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +response | urllib3.HTTPResponse | Raw response | +body | Unset | body was not defined | +headers | Unset | headers were not defined | + +## Servers + +Set the available servers by defining your used servers in ApiConfiguration.server_info +Then select your server by setting a server index in ApiConfiguration.server_index_info or by +passing server_index in to the endpoint method. +- these servers are the general api servers +- defaults to server_index=0, server.url = http://petstore.swagger.io:80/v2 + +server_index | Class | Description +------------ | ----- | ------------ +0 | [Server0](../../../servers/server_0.md) | petstore server +1 | [Server1](../../../servers/server_1.md) | The local server +2 | [Server2](../../../servers/server_2.md) | staging server with no variables + +## Code Sample + +```python +import petstore_api +from petstore_api.configurations import api_configuration +from petstore_api.apis.tags import fake_api +from pprint import pprint +used_configuration = api_configuration.ApiConfiguration( +) +# Enter a context with an instance of the API client +with petstore_api.ApiClient(used_configuration) as api_client: + # Create an instance of the API class + api_instance = fake_api.FakeApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + # operation with redirection responses + api_response = api_instance.redirection() + pprint(api_response) + except petstore_api.ApiException as e: + print("Exception when calling FakeApi->redirection: %s\n" % e) +``` + +[[Back to top]](#top) +[[Back to FakeApi API]](../../apis/tags/fake_api.md) +[[Back to Endpoints]](../../../README.md#Endpoints) [[Back to README]](../../../README.md) \ No newline at end of file diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/apis/path_to_api.py b/samples/openapi3/client/petstore/python/src/petstore_api/apis/path_to_api.py index 783a5d94372..19cae0f05ac 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/apis/path_to_api.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/apis/path_to_api.py @@ -19,6 +19,7 @@ from petstore_api.apis.paths.fake_obj_in_query import FakeObjInQuery from petstore_api.apis.paths.fake_parameter_collisions1_abab_self_ab import FakeParameterCollisions1ABAbSelfAB from petstore_api.apis.paths.fake_query_param_with_json_content_type import FakeQueryParamWithJsonContentType +from petstore_api.apis.paths.fake_redirection import FakeRedirection from petstore_api.apis.paths.fake_ref_obj_in_query import FakeRefObjInQuery from petstore_api.apis.paths.fake_refs_array_of_enums import FakeRefsArrayOfEnums from petstore_api.apis.paths.fake_refs_arraymodel import FakeRefsArraymodel @@ -74,6 +75,7 @@ "/fake/objInQuery": typing.Type[FakeObjInQuery], "/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/": typing.Type[FakeParameterCollisions1ABAbSelfAB], "/fake/queryParamWithJsonContentType": typing.Type[FakeQueryParamWithJsonContentType], + "/fake/redirection": typing.Type[FakeRedirection], "/fake/refObjInQuery": typing.Type[FakeRefObjInQuery], "/fake/refs/array-of-enums": typing.Type[FakeRefsArrayOfEnums], "/fake/refs/arraymodel": typing.Type[FakeRefsArraymodel], @@ -130,6 +132,7 @@ "/fake/objInQuery": FakeObjInQuery, "/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/": FakeParameterCollisions1ABAbSelfAB, "/fake/queryParamWithJsonContentType": FakeQueryParamWithJsonContentType, + "/fake/redirection": FakeRedirection, "/fake/refObjInQuery": FakeRefObjInQuery, "/fake/refs/array-of-enums": FakeRefsArrayOfEnums, "/fake/refs/arraymodel": FakeRefsArraymodel, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py b/samples/openapi3/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py new file mode 100644 index 00000000000..ba7c21799ca --- /dev/null +++ b/samples/openapi3/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py @@ -0,0 +1,15 @@ +# coding: utf-8 + +""" + + + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from petstore_api.paths.fake_redirection.get.operation import ApiForGet + + +class FakeRedirection( + ApiForGet, +): + pass diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/apis/tags/fake_api.py b/samples/openapi3/client/petstore/python/src/petstore_api/apis/tags/fake_api.py index 0b08e0ab287..2d42927d02a 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/apis/tags/fake_api.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/apis/tags/fake_api.py @@ -20,6 +20,7 @@ from petstore_api.paths.fake_refs_string.post.operation import String from petstore_api.paths.fake_response_without_schema.get.operation import ResponseWithoutSchema from petstore_api.paths.fake_refs_object_model_with_ref_props.post.operation import ObjectModelWithRefProps +from petstore_api.paths.fake_redirection.get.operation import Redirection from petstore_api.paths.fake_obj_in_query.get.operation import ObjectInQuery from petstore_api.paths.fake_case_sensitive_params.put.operation import CaseSensitiveParams from petstore_api.paths.fake_inline_additional_properties.post.operation import InlineAdditionalProperties @@ -59,6 +60,7 @@ class FakeApi( String, ResponseWithoutSchema, ObjectModelWithRefProps, + Redirection, ObjectInQuery, CaseSensitiveParams, InlineAdditionalProperties, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py index 6ed9d3dc60e..e0517a5ce57 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py @@ -182,7 +182,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py index ee010b6bfc9..2905c2df97a 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py @@ -219,7 +219,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/get/operation.py index c36fb107971..9169bb3e4d9 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/get/operation.py @@ -282,7 +282,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py index 489018998d4..3e12f9cac6c 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py @@ -182,7 +182,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/post/operation.py index fd76dbd938a..f33d5683d7b 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake/post/operation.py @@ -195,7 +195,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py index 364c5d4d932..804551ce429 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py @@ -185,7 +185,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py index 709360fe839..ce16e8aaa97 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py @@ -169,7 +169,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py index 647714f3ae9..44c0f944e02 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py @@ -210,7 +210,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py index eca1a2feb84..3161cb09f9a 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py @@ -158,7 +158,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py index 05e700661dd..bec0b123906 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py @@ -198,7 +198,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py index 28fa0bb49bc..089bc54a9ea 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py @@ -159,7 +159,7 @@ class instances else: api_response = default_response.deserialize(response, self.api_client.schema_configuration) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py index 4d85ebee813..a42ddb37051 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py @@ -126,7 +126,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py index a889927c150..570a826c744 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py @@ -170,7 +170,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py index 56777b65806..a2a48efb20c 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py @@ -324,7 +324,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py index d8e8e2b094b..01861fd4661 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py @@ -173,7 +173,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py index 317ef231c3c..0ac5cea2f78 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py @@ -173,7 +173,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py index dc03691f1d5..b1ab48c9603 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py @@ -255,7 +255,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py index a0e90e930fc..e2312d34df4 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py @@ -136,7 +136,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py index c0f8eff3337..eccfdfa5d60 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py @@ -147,7 +147,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py index f41de158096..be9d1a8539f 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py @@ -151,7 +151,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py index 7933db855a7..5b174e99ada 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py @@ -450,7 +450,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py index 6d9499d7c61..1135c5b1ea6 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py @@ -242,7 +242,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py index 3882fc24a93..6e381b045d4 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py @@ -166,7 +166,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/__init__.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/__init__.py new file mode 100644 index 00000000000..1f9d1b25459 --- /dev/null +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/__init__.py @@ -0,0 +1,5 @@ +# do not import all endpoints into this module because that uses a lot of memory and stack frames +# if you need the ability to import all endpoints from this module, import them with +# from petstore_api.apis.paths.fake_redirection import FakeRedirection + +path = "/fake/redirection" \ No newline at end of file diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/__init__.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py new file mode 100644 index 00000000000..e52f7795455 --- /dev/null +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + + + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +from dataclasses import dataclass +import typing_extensions +import urllib3 + +from petstore_api import api_client, exceptions +import datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + +from .. import path +from .responses import ( + response_303, + response_3xx, +) + + + +__StatusCodeToResponse = typing_extensions.TypedDict( + '__StatusCodeToResponse', + { + '303': typing.Type[response_303.ResponseFor303], + } +) +_status_code_to_response: __StatusCodeToResponse = { + '303': response_303.ResponseFor303, +} +__RangedStatusCodeToResponse = typing_extensions.TypedDict( + '__RangedStatusCodeToResponse', + { + '3': typing.Type[response_3xx.ResponseFor3XX], + } +) +_ranged_status_code_to_response: __RangedStatusCodeToResponse = { + '3': response_3xx.ResponseFor3XX, +} + + +class BaseApi(api_client.Api): + @typing.overload + def _redirection( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + response_3xx.ResponseFor3XX.response_cls, + response_303.ResponseFor303.response_cls, + ]: ... + + @typing.overload + def _redirection( + self, + skip_deserialization: typing_extensions.Literal[True], + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def _redirection( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + response_3xx.ResponseFor3XX.response_cls, + response_303.ResponseFor303.response_cls, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def _redirection( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + """ + operation with redirection responses + :param skip_deserialization: If true then api_response.response will be set but + api_response.body and api_response.headers will not be deserialized into schema + class instances + """ + used_path = path + # TODO add cookie handling + host = self.api_client.configuration.get_server_url( + 'servers', server_index + ) + + response = self.api_client.call_api( + resource_path=used_path, + method='get', + host=host, + stream=stream, + timeout=timeout, + ) + + if skip_deserialization: + api_response = api_client.ApiResponseWithoutDeserialization(response=response) + else: + status = str(response.status) + ranged_response_status_code = status[0] + if status in _status_code_to_response: + status: typing_extensions.Literal[ + '303', + ] + api_response = _status_code_to_response[status].deserialize( + response, self.api_client.schema_configuration) + elif ranged_response_status_code in _ranged_status_code_to_response: + ranged_response_status_code: typing_extensions.Literal[ + '3', + ] + api_response = _ranged_status_code_to_response[ranged_response_status_code].deserialize( + response, self.api_client.schema_configuration) + else: + api_response = api_client.ApiResponseWithoutDeserialization(response=response) + + if not 200 <= response.status <= 399: + raise exceptions.ApiException( + status=response.status, + reason=response.reason, + api_response=api_response + ) + + return api_response + + +class Redirection(BaseApi): + # this class is used by api classes that refer to endpoints with operationId.snakeCase fn names + + @typing.overload + def redirection( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + response_3xx.ResponseFor3XX.response_cls, + response_303.ResponseFor303.response_cls, + ]: ... + + @typing.overload + def redirection( + self, + skip_deserialization: typing_extensions.Literal[True], + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def redirection( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + response_3xx.ResponseFor3XX.response_cls, + response_303.ResponseFor303.response_cls, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def redirection( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + return self._redirection( + server_index=server_index, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) + + +class ApiForGet(BaseApi): + # this class is used by api classes that refer to endpoints by path and http method names + + @typing.overload + def get( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = ..., + ) -> typing.Union[ + response_3xx.ResponseFor3XX.response_cls, + response_303.ResponseFor303.response_cls, + ]: ... + + @typing.overload + def get( + self, + skip_deserialization: typing_extensions.Literal[True], + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + ) -> api_client.ApiResponseWithoutDeserialization: ... + + @typing.overload + def get( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = ..., + ) -> typing.Union[ + response_3xx.ResponseFor3XX.response_cls, + response_303.ResponseFor303.response_cls, + api_client.ApiResponseWithoutDeserialization, + ]: ... + + def get( + self, + server_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ): + return self._redirection( + server_index=server_index, + stream=stream, + timeout=timeout, + skip_deserialization=skip_deserialization + ) + + diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/__init__.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py new file mode 100644 index 00000000000..c29ae74f89b --- /dev/null +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + + + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import dataclasses +import datetime +import decimal +import io +import typing +import uuid + +import frozendict +import typing_extensions +import urllib3 + +from petstore_api import api_client +from petstore_api import schemas + + +@dataclasses.dataclass +class _ApiResponse(api_client.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor303(api_client.OpenApiResponse[_ApiResponse]): + response_cls = _ApiResponse diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py new file mode 100644 index 00000000000..b82582cfad8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py @@ -0,0 +1,32 @@ +# coding: utf-8 + +""" + + + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import dataclasses +import datetime +import decimal +import io +import typing +import uuid + +import frozendict +import typing_extensions +import urllib3 + +from petstore_api import api_client +from petstore_api import schemas + + +@dataclasses.dataclass +class _ApiResponse(api_client.ApiResponse): + response: urllib3.HTTPResponse + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset + + +class ResponseFor3XX(api_client.OpenApiResponse[_ApiResponse]): + response_cls = _ApiResponse diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py index 68d10d7c7db..653d5df5227 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py @@ -151,7 +151,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py index 3829c073fb3..c138154fd18 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py @@ -185,7 +185,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py index e9458959b71..125b6716d34 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py @@ -184,7 +184,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py index f3ebabb5d23..fb56d7f5475 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py @@ -179,7 +179,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py index 8bd256cc1e9..8e0315b4a8f 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py @@ -254,7 +254,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py index 685c279a0dc..12b8531c110 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py @@ -184,7 +184,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py index e151792b0c9..00fc194e005 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py @@ -251,7 +251,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py index 180458bfb36..1f650e0638d 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py @@ -189,7 +189,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py index f3efdcfe205..f7810e8df99 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py @@ -184,7 +184,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py index 3ea9ffe1c52..9a3685b439a 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py @@ -179,7 +179,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py index 32ab25ec395..18dd6230c23 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py @@ -127,7 +127,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py index 3aa9eb40a9f..a17445abcbb 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py @@ -167,7 +167,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py index 7e297da59fe..67ecd04241e 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py @@ -187,7 +187,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py index ce608bc2983..f14bc8f65f6 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py @@ -185,7 +185,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py index c873e2be5f0..7c12cb1b245 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py @@ -185,7 +185,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py index 0ce8f8bb16b..7a74db7e7d6 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py @@ -81,6 +81,7 @@ def _wild_card_responses( ) -> typing.Union[ response_200.ResponseFor200.response_cls, response_2xx.ResponseFor2XX.response_cls, + response_3xx.ResponseFor3XX.response_cls, ]: ... @typing.overload @@ -104,6 +105,7 @@ def _wild_card_responses( ) -> typing.Union[ response_200.ResponseFor200.response_cls, response_2xx.ResponseFor2XX.response_cls, + response_3xx.ResponseFor3XX.response_cls, api_client.ApiResponseWithoutDeserialization, ]: ... @@ -165,7 +167,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, @@ -189,6 +191,7 @@ def wild_card_responses( ) -> typing.Union[ response_200.ResponseFor200.response_cls, response_2xx.ResponseFor2XX.response_cls, + response_3xx.ResponseFor3XX.response_cls, ]: ... @typing.overload @@ -212,6 +215,7 @@ def wild_card_responses( ) -> typing.Union[ response_200.ResponseFor200.response_cls, response_2xx.ResponseFor2XX.response_cls, + response_3xx.ResponseFor3XX.response_cls, api_client.ApiResponseWithoutDeserialization, ]: ... @@ -246,6 +250,7 @@ def get( ) -> typing.Union[ response_200.ResponseFor200.response_cls, response_2xx.ResponseFor2XX.response_cls, + response_3xx.ResponseFor3XX.response_cls, ]: ... @typing.overload @@ -269,6 +274,7 @@ def get( ) -> typing.Union[ response_200.ResponseFor200.response_cls, response_2xx.ResponseFor2XX.response_cls, + response_3xx.ResponseFor3XX.response_cls, api_client.ApiResponseWithoutDeserialization, ]: ... diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/foo/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/foo/get/operation.py index 6d2ed415fc2..0658728adf1 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/foo/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/foo/get/operation.py @@ -109,7 +109,7 @@ class instances else: api_response = default_response.deserialize(response, self.api_client.schema_configuration) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/post/operation.py index 01f5fa93edc..019aefd87c2 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/post/operation.py @@ -218,7 +218,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/put/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/put/operation.py index c3a3c1afaa6..fd14c41557f 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/put/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet/put/operation.py @@ -216,7 +216,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py index d2ce07eb89f..2e54e0c296e 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py @@ -194,7 +194,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py index 2a912fb8657..9e88dbe6c30 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py @@ -176,7 +176,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py index 783b4031ac5..89856d0dd49 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py @@ -209,7 +209,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py index ae0076fb125..65e38e07a07 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py @@ -192,7 +192,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py index 6e95c688956..ceae8618502 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py @@ -231,7 +231,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py index f0a14c85374..05481d9fb86 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py @@ -242,7 +242,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py index 41d3ff767de..841841e0a0b 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py @@ -141,7 +141,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py index 15643077446..c65931a359e 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py @@ -189,7 +189,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py index 492731c8379..940209c1f01 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py @@ -155,7 +155,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py index 2a0de82a1c6..8cfcc709af6 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py @@ -177,7 +177,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user/post/operation.py index 78e4734de48..adc1d86f7b2 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user/post/operation.py @@ -154,7 +154,7 @@ class instances else: api_response = default_response.deserialize(response, self.api_client.schema_configuration) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py index 51cc6a69332..54bc4da6934 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py @@ -154,7 +154,7 @@ class instances else: api_response = default_response.deserialize(response, self.api_client.schema_configuration) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py index b520020a8fb..f8c56d26947 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py @@ -154,7 +154,7 @@ class instances else: api_response = default_response.deserialize(response, self.api_client.schema_configuration) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py index 1c4b107d2df..cf534ea6358 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py @@ -178,7 +178,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py index 44b8ddb3c88..2e95b1b41b6 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py @@ -95,7 +95,7 @@ class instances else: api_response = default_response.deserialize(response, self.api_client.schema_configuration) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py index 90d0ecee454..00c0b98b7bb 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py @@ -157,7 +157,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py index 69a0d0ca423..cad2667bb2e 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py @@ -177,7 +177,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py index 681b26a0792..c639fcb00f0 100644 --- a/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py +++ b/samples/openapi3/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py @@ -214,7 +214,7 @@ class instances else: api_response = api_client.ApiResponseWithoutDeserialization(response=response) - if not 200 <= response.status <= 299: + if not 200 <= response.status <= 399: raise exceptions.ApiException( status=response.status, reason=response.reason, diff --git a/samples/openapi3/client/petstore/python/test/test_paths/test_fake_redirection/__init__.py b/samples/openapi3/client/petstore/python/test/test_paths/test_fake_redirection/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/petstore/python/test/test_paths/test_fake_redirection/test_get.py b/samples/openapi3/client/petstore/python/test/test_paths/test_fake_redirection/test_get.py new file mode 100644 index 00000000000..c069a4dc189 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/test_paths/test_fake_redirection/test_get.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + + + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 + +import petstore_api +from petstore_api.paths.fake_redirection.get import operation as get # noqa: E501 +from petstore_api import schemas, api_client +from petstore_api.configurations import api_configuration, schema_configuration + +from .. import ApiTestMixin + + +class TestGet(ApiTestMixin, unittest.TestCase): + """ + Get unit test stubs + operation with redirection responses # noqa: E501 + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration() + used_api_client = api_client.ApiClient(configuration=api_config, schema_config=schema_config) + api = get.ApiForGet(api_client=used_api_client) # noqa: E501 + + response_status = 303 + response_body = '' + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_fake_redirection/__init__.py b/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_fake_redirection/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_fake_redirection/test_get.py b/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_fake_redirection/test_get.py new file mode 100644 index 00000000000..502c3e25228 --- /dev/null +++ b/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_fake_redirection/test_get.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + + + Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator +""" + +import unittest +from unittest.mock import patch + +import urllib3 + +from petstore_api.paths.fake_redirection.get import operation as get # noqa: E501 +from petstore_api import schemas, api_client +from petstore_api.configurations import api_configuration, schema_configuration + +from ... import ApiTestMixin + + +class TestGet(ApiTestMixin, unittest.TestCase): + """ + Get unit test stubs + operation with redirection responses # noqa: E501 + """ + api_config = api_configuration.ApiConfiguration() + schema_config = schema_configuration.SchemaConfiguration() + used_api_client = api_client.ApiClient(configuration=api_config, schema_config=schema_config) + api = get.ApiForGet(api_client=used_api_client) # noqa: E501 + + @patch.object(urllib3.PoolManager, 'request') + def test_non_wildcard_response(self, mock_request): + mock_request.return_value = self.response(b'', status=303) + + api_response = self.api.get() + self.assert_pool_manager_request_called_with( + mock_request, + f'http://petstore.swagger.io:80/v2/fake/redirection', + body=None, + method='GET', + content_type=None, + accept_content_type=None, + ) + + assert isinstance(api_response, get.response_303.ResponseFor303.response_cls) + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + assert isinstance(api_response.headers, schemas.Unset) + assert api_response.response.status == 303 + + @patch.object(urllib3.PoolManager, 'request') + def test_wildcard_response(self, mock_request): + mock_request.return_value = self.response(b'', status=308) + + api_response = self.api.get() + self.assert_pool_manager_request_called_with( + mock_request, + f'http://petstore.swagger.io:80/v2/fake/redirection', + body=None, + method='GET', + content_type=None, + accept_content_type=None, + ) + + assert isinstance(api_response, get.response_3xx.ResponseFor3XX.response_cls) + assert isinstance(api_response.response, urllib3.HTTPResponse) + assert isinstance(api_response.body, schemas.Unset) + assert isinstance(api_response.headers, schemas.Unset) + assert api_response.response.status == 308 + +if __name__ == '__main__': + unittest.main()