diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index 25eb5dd0545f..b6219f987cd1 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -100,6 +100,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): self.proxy = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None @property def logger_file(self): diff --git a/modules/openapi-generator/src/main/resources/python/rest.mustache b/modules/openapi-generator/src/main/resources/python/rest.mustache index 8418ec2a0fde..d1580e1c227d 100644 --- a/modules/openapi-generator/src/main/resources/python/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python/rest.mustache @@ -67,6 +67,9 @@ class RESTClientObject(object): if configuration.assert_hostname is not None: addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + if maxsize is None: if configuration.connection_pool_maxsize is not None: maxsize = configuration.connection_pool_maxsize diff --git a/samples/client/petstore/python-asyncio/petstore_api/configuration.py b/samples/client/petstore/python-asyncio/petstore_api/configuration.py index d1d50e6517ae..90b977588689 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/configuration.py +++ b/samples/client/petstore/python-asyncio/petstore_api/configuration.py @@ -100,6 +100,8 @@ def __init__(self): self.proxy = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None @property def logger_file(self): diff --git a/samples/client/petstore/python-tornado/petstore_api/configuration.py b/samples/client/petstore/python-tornado/petstore_api/configuration.py index d1d50e6517ae..90b977588689 100644 --- a/samples/client/petstore/python-tornado/petstore_api/configuration.py +++ b/samples/client/petstore/python-tornado/petstore_api/configuration.py @@ -100,6 +100,8 @@ def __init__(self): self.proxy = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None @property def logger_file(self): diff --git a/samples/client/petstore/python/petstore_api/configuration.py b/samples/client/petstore/python/petstore_api/configuration.py index d1d50e6517ae..90b977588689 100644 --- a/samples/client/petstore/python/petstore_api/configuration.py +++ b/samples/client/petstore/python/petstore_api/configuration.py @@ -100,6 +100,8 @@ def __init__(self): self.proxy = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None @property def logger_file(self): diff --git a/samples/client/petstore/python/petstore_api/rest.py b/samples/client/petstore/python/petstore_api/rest.py index 30ba5fb8d3f5..74a032649145 100644 --- a/samples/client/petstore/python/petstore_api/rest.py +++ b/samples/client/petstore/python/petstore_api/rest.py @@ -75,6 +75,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): if configuration.assert_hostname is not None: addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + if maxsize is None: if configuration.connection_pool_maxsize is not None: maxsize = configuration.connection_pool_maxsize diff --git a/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md b/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md index 7def47c1c6a9..203fb5921604 100644 --- a/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **map_string** | **Hash<String, String>** | | [optional] **map_number** | **Hash<String, Float>** | | [optional] **map_integer** | **Hash<String, Integer>** | | [optional] -**map_boolean** | **Hash<String, BOOLEAN>** | | [optional] +**map_boolean** | **Hash<String, Boolean>** | | [optional] **map_array_integer** | **Hash<String, Array<Integer>>** | | [optional] **map_array_anytype** | **Hash<String, Array<Object>>** | | [optional] **map_map_string** | **Hash<String, Hash<String, String>>** | | [optional] diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_any_type.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_any_type.rb index e918f5bfd9df..8dee971c3872 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_any_type.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_any_type.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_array.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_array.rb index 6435001dd3e2..f9d13651d2a1 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_array.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_array.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_boolean.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_boolean.rb index 5faa4e0548c9..2800a342024a 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_boolean.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_boolean.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb index 26da51f1a7b2..c9fa1438e7de 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb @@ -59,7 +59,7 @@ def self.openapi_types :'map_string' => :'Hash', :'map_number' => :'Hash', :'map_integer' => :'Hash', - :'map_boolean' => :'Hash', + :'map_boolean' => :'Hash', :'map_array_integer' => :'Hash>', :'map_array_anytype' => :'Hash>', :'map_map_string' => :'Hash>', diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_integer.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_integer.rb index 69710b0e834e..754300c41952 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_integer.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_integer.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_number.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_number.rb index e2d050285a93..6714bd2ca8b5 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_number.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_number.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_object.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_object.rb index 400be9e31a66..d5d9e0b69f3d 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_object.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_object.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_string.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_string.rb index 3b15b0156134..c94277344ffa 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_string.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_string.rb @@ -126,7 +126,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else diff --git a/samples/openapi3/client/petstore/python/petstore_api/configuration.py b/samples/openapi3/client/petstore/python/petstore_api/configuration.py index abdb7294a231..d11d858b866a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python/petstore_api/configuration.py @@ -100,6 +100,8 @@ def __init__(self): self.proxy = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None @property def logger_file(self): diff --git a/samples/openapi3/client/petstore/python/petstore_api/rest.py b/samples/openapi3/client/petstore/python/petstore_api/rest.py index 30ba5fb8d3f5..74a032649145 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python/petstore_api/rest.py @@ -75,6 +75,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): if configuration.assert_hostname is not None: addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + if maxsize is None: if configuration.connection_pool_maxsize is not None: maxsize = configuration.connection_pool_maxsize diff --git a/samples/openapi3/client/petstore/ruby/docs/NullableClass.md b/samples/openapi3/client/petstore/ruby/docs/NullableClass.md index d90ede0826dd..b43b32e52bee 100644 --- a/samples/openapi3/client/petstore/ruby/docs/NullableClass.md +++ b/samples/openapi3/client/petstore/ruby/docs/NullableClass.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integer_prop** | **Integer** | | [optional] **number_prop** | **Float** | | [optional] -**boolean_prop** | **BOOLEAN** | | [optional] +**boolean_prop** | **Boolean** | | [optional] **string_prop** | **String** | | [optional] **date_prop** | **Date** | | [optional] **datetime_prop** | **DateTime** | | [optional] diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/nullable_class.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/nullable_class.rb index 55226e4aba05..0719858c76d9 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/nullable_class.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/nullable_class.rb @@ -61,7 +61,7 @@ def self.openapi_types { :'integer_prop' => :'Integer', :'number_prop' => :'Float', - :'boolean_prop' => :'BOOLEAN', + :'boolean_prop' => :'Boolean', :'string_prop' => :'String', :'date_prop' => :'Date', :'datetime_prop' => :'DateTime', @@ -237,7 +237,7 @@ def _deserialize(type, value) value.to_i when :Float value.to_f - when :BOOLEAN + when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else