forked from loafle/openapi-generator-original
update python samples and comment out flake test (#1308)
This commit is contained in:
parent
24ea88495b
commit
196f1228e5
@ -1 +1 @@
|
||||
3.3.1-SNAPSHOT
|
||||
3.3.2-SNAPSHOT
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
3.3.0-SNAPSHOT
|
||||
3.3.2-SNAPSHOT
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1 +1 @@
|
||||
3.3.0-SNAPSHOT
|
||||
3.3.2-SNAPSHOT
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user