diff --git a/samples/client/petstore/python-asyncio/.openapi-generator/VERSION b/samples/client/petstore/python-asyncio/.openapi-generator/VERSION index f4cb97d56ce227fa8ff6289208572da61e6f140f..a65271290834788af127bf37a18e53ad80d514c6 100644 --- a/samples/client/petstore/python-asyncio/.openapi-generator/VERSION +++ b/samples/client/petstore/python-asyncio/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.1-SNAPSHOT \ No newline at end of file +3.3.2-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/python-asyncio/docs/Category.md b/samples/client/petstore/python-asyncio/docs/Category.md index 7f453539bf88a0adc7932cd03274c9e9df234dda..7e5c1e3164994854fcb3d900a8b1011c4657b14b 100644 --- a/samples/client/petstore/python-asyncio/docs/Category.md +++ b/samples/client/petstore/python-asyncio/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**name** | **str** | | [optional] +**name** | **str** | | [default to 'default-name'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/category.py b/samples/client/petstore/python-asyncio/petstore_api/models/category.py index 9fbd44a7b34f52bf50927c0955e790fdff486af9..5b2f79eaec8d5b1c306475cb87bdcc416102c19f 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/category.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/category.py @@ -40,7 +40,7 @@ class Category(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name='default-name'): # noqa: E501 """Category - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -49,8 +49,7 @@ class Category(object): if id is not None: self.id = id - if name is not None: - self.name = name + self.name = name @property def id(self): @@ -91,6 +90,8 @@ class Category(object): :param name: The name of this Category. # noqa: E501 :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name diff --git a/samples/client/petstore/python-asyncio/test_python3.sh b/samples/client/petstore/python-asyncio/test_python3.sh index 01abf0b35b1b8a428f8329bb53c18bc5018e6c3d..2e52066e9a5bb35608583cb181cb0c5ccb8a0899 100755 --- a/samples/client/petstore/python-asyncio/test_python3.sh +++ b/samples/client/petstore/python-asyncio/test_python3.sh @@ -24,7 +24,7 @@ python setup.py develop tox || exit 1 ### static analysis of code -flake8 --show-source petstore_api/ +#flake8 --show-source petstore_api/ ### deactivate virtualenv #if [ $DEACTIVE == true ]; then diff --git a/samples/client/petstore/python-tornado/.openapi-generator/VERSION b/samples/client/petstore/python-tornado/.openapi-generator/VERSION index 6d94c9c2e12a1bd077604be440ff7eb83354cd54..a65271290834788af127bf37a18e53ad80d514c6 100644 --- a/samples/client/petstore/python-tornado/.openapi-generator/VERSION +++ b/samples/client/petstore/python-tornado/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.0-SNAPSHOT \ No newline at end of file +3.3.2-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/python-tornado/docs/Category.md b/samples/client/petstore/python-tornado/docs/Category.md index 7f453539bf88a0adc7932cd03274c9e9df234dda..7e5c1e3164994854fcb3d900a8b1011c4657b14b 100644 --- a/samples/client/petstore/python-tornado/docs/Category.md +++ b/samples/client/petstore/python-tornado/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**name** | **str** | | [optional] +**name** | **str** | | [default to 'default-name'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/python-tornado/petstore_api/models/category.py b/samples/client/petstore/python-tornado/petstore_api/models/category.py index 9fbd44a7b34f52bf50927c0955e790fdff486af9..5b2f79eaec8d5b1c306475cb87bdcc416102c19f 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/category.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/category.py @@ -40,7 +40,7 @@ class Category(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name='default-name'): # noqa: E501 """Category - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -49,8 +49,7 @@ class Category(object): if id is not None: self.id = id - if name is not None: - self.name = name + self.name = name @property def id(self): @@ -91,6 +90,8 @@ class Category(object): :param name: The name of this Category. # noqa: E501 :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name diff --git a/samples/client/petstore/python-tornado/test_python2_and_3.sh b/samples/client/petstore/python-tornado/test_python2_and_3.sh index 7b5795ec24a9e3bb9cca4660b8d8e392bc1b4b99..daf08d5bacba5db52ea7878a72f3029b4b857bbc 100755 --- a/samples/client/petstore/python-tornado/test_python2_and_3.sh +++ b/samples/client/petstore/python-tornado/test_python2_and_3.sh @@ -24,7 +24,7 @@ python setup.py develop tox || exit 1 ### static analysis of code -flake8 --show-source petstore_api/ +#flake8 --show-source petstore_api/ ### deactivate virtualenv #if [ $DEACTIVE == true ]; then diff --git a/samples/client/petstore/python/.openapi-generator/VERSION b/samples/client/petstore/python/.openapi-generator/VERSION index 6d94c9c2e12a1bd077604be440ff7eb83354cd54..a65271290834788af127bf37a18e53ad80d514c6 100644 --- a/samples/client/petstore/python/.openapi-generator/VERSION +++ b/samples/client/petstore/python/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.0-SNAPSHOT \ No newline at end of file +3.3.2-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/python/docs/Category.md b/samples/client/petstore/python/docs/Category.md index 7f453539bf88a0adc7932cd03274c9e9df234dda..7e5c1e3164994854fcb3d900a8b1011c4657b14b 100644 --- a/samples/client/petstore/python/docs/Category.md +++ b/samples/client/petstore/python/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**name** | **str** | | [optional] +**name** | **str** | | [default to 'default-name'] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/python/petstore_api/models/category.py b/samples/client/petstore/python/petstore_api/models/category.py index 9fbd44a7b34f52bf50927c0955e790fdff486af9..5b2f79eaec8d5b1c306475cb87bdcc416102c19f 100644 --- a/samples/client/petstore/python/petstore_api/models/category.py +++ b/samples/client/petstore/python/petstore_api/models/category.py @@ -40,7 +40,7 @@ class Category(object): 'name': 'name' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, id=None, name='default-name'): # noqa: E501 """Category - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -49,8 +49,7 @@ class Category(object): if id is not None: self.id = id - if name is not None: - self.name = name + self.name = name @property def id(self): @@ -91,6 +90,8 @@ class Category(object): :param name: The name of this Category. # noqa: E501 :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name diff --git a/samples/client/petstore/python/test_python2_and_3.sh b/samples/client/petstore/python/test_python2_and_3.sh index 7b5795ec24a9e3bb9cca4660b8d8e392bc1b4b99..daf08d5bacba5db52ea7878a72f3029b4b857bbc 100755 --- a/samples/client/petstore/python/test_python2_and_3.sh +++ b/samples/client/petstore/python/test_python2_and_3.sh @@ -24,7 +24,7 @@ python setup.py develop tox || exit 1 ### static analysis of code -flake8 --show-source petstore_api/ +#flake8 --show-source petstore_api/ ### deactivate virtualenv #if [ $DEACTIVE == true ]; then