[codegen][python-experimental] Composed schema with additionalProperties (#6290)

* Mustache template should use invokerPackage tag to generate import

* Add a unit test for allOf and additionalProperties

* Fix getAdditionalProperties

* Add code comments

* Add code comments

* set nullable for additionalproperties

* add variants of additionalProperties

* Add more unit tests

* Handle additionalProperties for composed schemas

* improve code comments

* Add code comments

* Add code comments

* Add code comments

* Add code comments

* Add code comments

* Add assertions in unit tests

* Add new property to support the 'additionalProperties' keyword with composed schemas

* run sample scripts

* fix unit tests to handle additionalProperties

* Handle additional properties and composed schema

* Handle additional properties and composed schema

* Add support for additionalProperties and composed schema

* Format java code

* Add more unit tests for Python

* Handle reference in additionalProperty keyword

* Handle reference in additionalProperty keyword

* Add use case for additionalProperties and reference

* run sample scripts

* resolve schema reference

* Add OpenAPI argument

* Add OpenAPI argument

* Add OpenAPI argument

* Add OpenAPI argument

* Add OpenAPI argument

* Handle additional property keyword with reference

* Handle additional property keyword with reference

* Handle additional property keyword with reference

* Handle additional property keyword with reference

* add additionalproperties attribute with boolean values

* Run sample scripts

* handle additional properties

* Handle additionalProperties boolean values

* Run sample scripts

* fix javadoc issues

* fix javadoc issues

* Add Locale to String.toLowerCase

* execute sample scripts

* handle additional properties

* Add code comments

* Handle imports of referenced models in additional properties

* Handle isNullable class

* handle nullable type

* improve documentation, run sample scripts

* improve documentation, run sample scripts

* execute sample scripts

* execute sample scripts

* Execute sample scripts

* Run samples scripts

* set legacyAdditionalPropertiesBehavior to true by default, except python

* create separate yaml file to avoid having lots of changes in the pr

* create separate yaml file to avoid having lots of changes in the pr

* create separate yaml file to avoid having lots of changes in the pr

* create separate yaml file to avoid having lots of changes in the pr

* create separate yaml file to avoid having lots of changes in the pr

* create separate yaml file to avoid having lots of changes in the pr

* Change name of CLI option

* Generate doc

* Add TODO statement

* add code comments

* run samples scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* refactor cli option for additional properties

* refactor cli option for additional properties

* run samples scripts

* run sample scripts

* run sample scripts

* run sample scripts

* run sample scripts

* Add yaml comments

* small refactor

* small refactor

* run sample scripts

* run sample scripts

* fix unit tests

* Set disallowAdditionalPropertiesIfNotPresent flag

* reduced size of test yaml file

* simplify code and add imports directly

* rename some of the properties used in tests

* Handle more scenarios for nullable types

* add code comments

* Adds *args input to __init__ method to fix test testFruitNullValue

* Resolve merge issues

* run samples scripts

* run doc generator

* fix merge conflicts

Co-authored-by: Justin Black <justin.a.black@gmail.com>
This commit is contained in:
Sebastien Rosset
2020-05-28 09:40:48 -07:00
committed by GitHub
parent 07647b1a31
commit f7f41410e7
369 changed files with 4312 additions and 465 deletions

View File

@@ -138,16 +138,8 @@ class OpenApiModel(object):
# pick a new schema/class to instantiate because a discriminator
# propertyName value was passed in
# Build a list containing all oneOf and anyOf descendants.
oneof_anyof_classes = None
if cls._composed_schemas is not None:
oneof_anyof_classes = (
cls._composed_schemas.get('oneOf', ()) +
cls._composed_schemas.get('anyOf', ()))
if (oneof_anyof_classes and none_type in oneof_anyof_classes and
len(args) == 1 and args[0] is None):
# The input data is the 'null' value AND one of the oneOf/anyOf children
# is the 'null' type (which is introduced in OAS schema >= 3.1).
if len(args) == 1 and args[0] is None and is_type_nullable(cls):
# The input data is the 'null' value and the type is nullable.
return None
visited_composed_classes = kwargs.get('_visited_composed_classes', ())
@@ -227,6 +219,12 @@ class OpenApiModel(object):
# so make Animal here
return super(OpenApiModel, cls).__new__(cls)
# Build a list containing all oneOf and anyOf descendants.
oneof_anyof_classes = None
if cls._composed_schemas is not None:
oneof_anyof_classes = (
cls._composed_schemas.get('oneOf', ()) +
cls._composed_schemas.get('anyOf', ()))
oneof_anyof_child = new_cls in oneof_anyof_classes
kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,)
@@ -1217,8 +1215,10 @@ def is_type_nullable(input_type):
"""
if input_type is none_type:
return True
if issubclass(input_type, OpenApiModel) and input_type._nullable:
return True
if issubclass(input_type, ModelComposed):
# If oneOf/anyOf, check if the 'null' type is one of the allowed types.
# If oneOf/anyOf, check if the 'null' type is one of the allowed types.
for t in input_type._composed_schemas.get('oneOf', ()):
if is_type_nullable(t): return True
for t in input_type._composed_schemas.get('anyOf', ()):

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesAnyType(ModelNormal):
additional_properties_type = (bool, date, datetime, dict, float, int, list, str,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesAnyType(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_any_type.AdditionalPropertiesAnyType - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesAnyType(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesArray(ModelNormal):
additional_properties_type = ([bool, date, datetime, dict, float, int, list, str],) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesArray(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_array.AdditionalPropertiesArray - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesArray(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesBoolean(ModelNormal):
additional_properties_type = (bool,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesBoolean(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_boolean.AdditionalPropertiesBoolean - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesBoolean(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesClass(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -120,7 +123,7 @@ class AdditionalPropertiesClass(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_class.AdditionalPropertiesClass - a model defined in OpenAPI
Keyword Args:
@@ -167,6 +170,22 @@ class AdditionalPropertiesClass(ModelNormal):
anytype_3 (bool, date, datetime, dict, float, int, list, str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesInteger(ModelNormal):
additional_properties_type = (int,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesInteger(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_integer.AdditionalPropertiesInteger - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesInteger(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesNumber(ModelNormal):
additional_properties_type = (float,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesNumber(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_number.AdditionalPropertiesNumber - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesNumber(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesObject(ModelNormal):
additional_properties_type = ({str: (bool, date, datetime, dict, float, int, list, str,)},) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesObject(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_object.AdditionalPropertiesObject - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesObject(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class AdditionalPropertiesString(ModelNormal):
additional_properties_type = (str,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class AdditionalPropertiesString(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""additional_properties_string.AdditionalPropertiesString - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class AdditionalPropertiesString(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class Animal(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -118,7 +121,7 @@ class Animal(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, class_name, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, class_name, *args, **kwargs): # noqa: E501
"""animal.Animal - a model defined in OpenAPI
Args:
@@ -158,6 +161,22 @@ class Animal(ModelNormal):
color (str): [optional] if omitted the server will use the default value of 'red' # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ApiResponse(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -104,7 +107,7 @@ class ApiResponse(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""api_response.ApiResponse - a model defined in OpenAPI
Keyword Args:
@@ -143,6 +146,22 @@ class ApiResponse(ModelNormal):
message (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""array_of_array_of_number_only.ArrayOfArrayOfNumberOnly - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
array_array_number ([[float]]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ArrayOfNumberOnly(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ArrayOfNumberOnly(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""array_of_number_only.ArrayOfNumberOnly - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ArrayOfNumberOnly(ModelNormal):
array_number ([float]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -71,6 +72,8 @@ class ArrayTest(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -109,7 +112,7 @@ class ArrayTest(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""array_test.ArrayTest - a model defined in OpenAPI
Keyword Args:
@@ -148,6 +151,22 @@ class ArrayTest(ModelNormal):
array_array_of_model ([[read_only_first.ReadOnlyFirst]]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Capitalization(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -110,7 +113,7 @@ class Capitalization(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""capitalization.Capitalization - a model defined in OpenAPI
Keyword Args:
@@ -152,6 +155,22 @@ class Capitalization(ModelNormal):
att_name (str): Name of the pet . [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class Cat(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -119,7 +122,7 @@ class Cat(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, class_name, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, class_name, *args, **kwargs): # noqa: E501
"""cat.Cat - a model defined in OpenAPI
Args:
@@ -160,6 +163,22 @@ class Cat(ModelComposed):
color (str): [optional] if omitted the server will use the default value of 'red' # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class CatAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class CatAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""cat_all_of.CatAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class CatAllOf(ModelNormal):
declawed (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Category(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -102,7 +105,7 @@ class Category(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, name='default-name', _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""category.Category - a model defined in OpenAPI
Args:
@@ -142,6 +145,23 @@ class Category(ModelNormal):
id (int): [optional] # noqa: E501
"""
name = kwargs.get('name', 'default-name')
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class Child(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -115,7 +118,7 @@ class Child(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""child.Child - a model defined in OpenAPI
Keyword Args:
@@ -154,6 +157,22 @@ class Child(ModelComposed):
inter_net (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ChildAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ChildAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""child_all_of.ChildAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ChildAllOf(ModelNormal):
inter_net (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class ChildCat(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -117,7 +120,7 @@ class ChildCat(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, pet_type, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
"""child_cat.ChildCat - a model defined in OpenAPI
Args:
@@ -157,6 +160,22 @@ class ChildCat(ModelComposed):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ChildCatAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ChildCatAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""child_cat_all_of.ChildCatAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ChildCatAllOf(ModelNormal):
name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class ChildDog(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -117,7 +120,7 @@ class ChildDog(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, pet_type, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
"""child_dog.ChildDog - a model defined in OpenAPI
Args:
@@ -157,6 +160,22 @@ class ChildDog(ModelComposed):
bark (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ChildDogAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ChildDogAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""child_dog_all_of.ChildDogAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ChildDogAllOf(ModelNormal):
bark (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class ChildLizard(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -117,7 +120,7 @@ class ChildLizard(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, pet_type, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
"""child_lizard.ChildLizard - a model defined in OpenAPI
Args:
@@ -157,6 +160,22 @@ class ChildLizard(ModelComposed):
loves_rocks (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ChildLizardAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ChildLizardAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""child_lizard_all_of.ChildLizardAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ChildLizardAllOf(ModelNormal):
loves_rocks (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ClassModel(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ClassModel(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""class_model.ClassModel - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ClassModel(ModelNormal):
_class (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Client(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class Client(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""client.Client - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class Client(ModelNormal):
client (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class Dog(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -119,7 +122,7 @@ class Dog(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, class_name, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, class_name, *args, **kwargs): # noqa: E501
"""dog.Dog - a model defined in OpenAPI
Args:
@@ -160,6 +163,22 @@ class Dog(ModelComposed):
color (str): [optional] if omitted the server will use the default value of 'red' # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class DogAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class DogAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""dog_all_of.DogAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class DogAllOf(ModelNormal):
breed (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -74,6 +75,8 @@ class EnumArrays(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -110,7 +113,7 @@ class EnumArrays(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""enum_arrays.EnumArrays - a model defined in OpenAPI
Keyword Args:
@@ -148,6 +151,22 @@ class EnumArrays(ModelNormal):
array_enum ([str]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -67,6 +68,8 @@ class EnumClass(ModelSimple):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -97,7 +100,7 @@ class EnumClass(ModelSimple):
])
@convert_js_args_to_python_args
def __init__(self, value='-efg', _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""enum_class.EnumClass - a model defined in OpenAPI
Args:
@@ -136,6 +139,23 @@ class EnumClass(ModelSimple):
_visited_composed_classes = (Animal,)
"""
value = kwargs.get('value', '-efg')
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -89,6 +90,8 @@ class EnumTest(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -131,7 +134,7 @@ class EnumTest(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, enum_string_required, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, enum_string_required, *args, **kwargs): # noqa: E501
"""enum_test.EnumTest - a model defined in OpenAPI
Args:
@@ -174,6 +177,22 @@ class EnumTest(ModelNormal):
outer_enum (outer_enum.OuterEnum): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class File(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class File(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""file.File - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class File(ModelNormal):
source_uri (str): Test capitalization. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -71,6 +72,8 @@ class FileSchemaTestClass(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -107,7 +110,7 @@ class FileSchemaTestClass(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""file_schema_test_class.FileSchemaTestClass - a model defined in OpenAPI
Keyword Args:
@@ -145,6 +148,22 @@ class FileSchemaTestClass(ModelNormal):
files ([file.File]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -101,6 +102,8 @@ class FormatTest(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -159,7 +162,7 @@ class FormatTest(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, number, byte, date, password, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, number, byte, date, password, *args, **kwargs): # noqa: E501
"""format_test.FormatTest - a model defined in OpenAPI
Args:
@@ -210,6 +213,22 @@ class FormatTest(ModelNormal):
uuid (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Grandparent(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class Grandparent(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""grandparent.Grandparent - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class Grandparent(ModelNormal):
radio_waves (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -86,6 +87,8 @@ class GrandparentAnimal(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -128,7 +131,7 @@ class GrandparentAnimal(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, pet_type, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
"""grandparent_animal.GrandparentAnimal - a model defined in OpenAPI
Args:
@@ -167,6 +170,22 @@ class GrandparentAnimal(ModelNormal):
_visited_composed_classes = (Animal,)
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class HasOnlyReadOnly(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -102,7 +105,7 @@ class HasOnlyReadOnly(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""has_only_read_only.HasOnlyReadOnly - a model defined in OpenAPI
Keyword Args:
@@ -140,6 +143,22 @@ class HasOnlyReadOnly(ModelNormal):
foo (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class List(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class List(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""list.List - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class List(ModelNormal):
_123_list (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -75,6 +76,8 @@ class MapTest(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -115,7 +118,7 @@ class MapTest(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""map_test.MapTest - a model defined in OpenAPI
Keyword Args:
@@ -155,6 +158,22 @@ class MapTest(ModelNormal):
indirect_map (string_boolean_map.StringBooleanMap): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -71,6 +72,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -109,7 +112,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI
Keyword Args:
@@ -148,6 +151,22 @@ class MixedPropertiesAndAdditionalPropertiesClass(ModelNormal):
map ({str: (animal.Animal,)}): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Model200Response(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -102,7 +105,7 @@ class Model200Response(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""model200_response.Model200Response - a model defined in OpenAPI
Keyword Args:
@@ -140,6 +143,22 @@ class Model200Response(ModelNormal):
_class (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ModelReturn(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ModelReturn(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""model_return.ModelReturn - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ModelReturn(ModelNormal):
_return (int): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Name(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -106,7 +109,7 @@ class Name(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, name, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, name, *args, **kwargs): # noqa: E501
"""name.Name - a model defined in OpenAPI
Args:
@@ -148,6 +151,22 @@ class Name(ModelNormal):
_123_number (int): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class NumberOnly(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class NumberOnly(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""number_only.NumberOnly - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class NumberOnly(ModelNormal):
just_number (float): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -71,6 +72,8 @@ class Order(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -115,7 +118,7 @@ class Order(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""order.Order - a model defined in OpenAPI
Keyword Args:
@@ -157,6 +160,22 @@ class Order(ModelNormal):
complete (bool): [optional] if omitted the server will use the default value of False # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -71,6 +72,8 @@ class OuterComposite(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -109,7 +112,7 @@ class OuterComposite(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""outer_composite.OuterComposite - a model defined in OpenAPI
Keyword Args:
@@ -148,6 +151,22 @@ class OuterComposite(ModelNormal):
my_boolean (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -67,6 +68,8 @@ class OuterEnum(ModelSimple):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -97,7 +100,7 @@ class OuterEnum(ModelSimple):
])
@convert_js_args_to_python_args
def __init__(self, value, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, value, *args, **kwargs): # noqa: E501
"""outer_enum.OuterEnum - a model defined in OpenAPI
Args:
@@ -136,6 +139,22 @@ class OuterEnum(ModelSimple):
_visited_composed_classes = (Animal,)
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class OuterNumber(ModelSimple):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -96,7 +99,7 @@ class OuterNumber(ModelSimple):
])
@convert_js_args_to_python_args
def __init__(self, value, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, value, *args, **kwargs): # noqa: E501
"""outer_number.OuterNumber - a model defined in OpenAPI
Args:
@@ -135,6 +138,22 @@ class OuterNumber(ModelSimple):
_visited_composed_classes = (Animal,)
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -76,6 +77,8 @@ class Parent(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -113,7 +116,7 @@ class Parent(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""parent.Parent - a model defined in OpenAPI
Keyword Args:
@@ -151,6 +154,22 @@ class Parent(ModelComposed):
tele_vision (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ParentAllOf(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class ParentAllOf(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""parent_all_of.ParentAllOf - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class ParentAllOf(ModelNormal):
tele_vision (bool): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -86,6 +87,8 @@ class ParentPet(ModelComposed):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -128,7 +131,7 @@ class ParentPet(ModelComposed):
])
@convert_js_args_to_python_args
def __init__(self, pet_type, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
"""parent_pet.ParentPet - a model defined in OpenAPI
Args:
@@ -167,6 +170,22 @@ class ParentPet(ModelComposed):
_visited_composed_classes = (Animal,)
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -81,6 +82,8 @@ class Pet(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -125,7 +128,7 @@ class Pet(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, name, photo_urls, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, name, photo_urls, *args, **kwargs): # noqa: E501
"""pet.Pet - a model defined in OpenAPI
Args:
@@ -169,6 +172,22 @@ class Pet(ModelNormal):
status (str): pet status in the store. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Player(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -102,7 +105,7 @@ class Player(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, name, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, name, *args, **kwargs): # noqa: E501
"""player.Player - a model defined in OpenAPI
Args:
@@ -142,6 +145,22 @@ class Player(ModelNormal):
enemy_player (Player): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class ReadOnlyFirst(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -102,7 +105,7 @@ class ReadOnlyFirst(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""read_only_first.ReadOnlyFirst - a model defined in OpenAPI
Keyword Args:
@@ -140,6 +143,22 @@ class ReadOnlyFirst(ModelNormal):
baz (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class SpecialModelName(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -100,7 +103,7 @@ class SpecialModelName(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""special_model_name.SpecialModelName - a model defined in OpenAPI
Keyword Args:
@@ -137,6 +140,22 @@ class SpecialModelName(ModelNormal):
special_property_name (int): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class StringBooleanMap(ModelNormal):
additional_properties_type = (bool,) # noqa: E501
_nullable = False
@cached_property
def openapi_types():
"""
@@ -98,7 +101,7 @@ class StringBooleanMap(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""string_boolean_map.StringBooleanMap - a model defined in OpenAPI
Keyword Args:
@@ -134,6 +137,22 @@ class StringBooleanMap(ModelNormal):
_visited_composed_classes = (Animal,)
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class Tag(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -104,7 +107,7 @@ class Tag(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""tag.Tag - a model defined in OpenAPI
Keyword Args:
@@ -143,6 +146,22 @@ class Tag(ModelNormal):
full_name (str): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class TypeHolderDefault(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -112,7 +115,7 @@ class TypeHolderDefault(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, array_item, string_item='what', number_item=1.234, integer_item=-2, bool_item=True, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, array_item, *args, **kwargs): # noqa: E501
"""type_holder_default.TypeHolderDefault - a model defined in OpenAPI
Args:
@@ -157,6 +160,26 @@ class TypeHolderDefault(ModelNormal):
datetime_item (datetime): [optional] # noqa: E501
"""
string_item = kwargs.get('string_item', 'what')
number_item = kwargs.get('number_item', 1.234)
integer_item = kwargs.get('integer_item', -2)
bool_item = kwargs.get('bool_item', True)
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -75,6 +76,8 @@ class TypeHolderExample(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -117,7 +120,7 @@ class TypeHolderExample(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, bool_item, array_item, string_item='what', number_item=1.234, integer_item=-2, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, bool_item, array_item, *args, **kwargs): # noqa: E501
"""type_holder_example.TypeHolderExample - a model defined in OpenAPI
Args:
@@ -160,6 +163,25 @@ class TypeHolderExample(ModelNormal):
_visited_composed_classes = (Animal,)
"""
string_item = kwargs.get('string_item', 'what')
number_item = kwargs.get('number_item', 1.234)
integer_item = kwargs.get('integer_item', -2)
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class User(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -114,7 +117,7 @@ class User(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""user.User - a model defined in OpenAPI
Keyword Args:
@@ -158,6 +161,22 @@ class User(ModelNormal):
user_status (int): User Status. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming

View File

@@ -18,6 +18,7 @@ import six # noqa: F401
import nulltype # noqa: F401
from petstore_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
@@ -66,6 +67,8 @@ class XmlItem(ModelNormal):
additional_properties_type = None
_nullable = False
@cached_property
def openapi_types():
"""
@@ -156,7 +159,7 @@ class XmlItem(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, _check_type=True, _spec_property_naming=False, _path_to_item=(), _configuration=None, _visited_composed_classes=(), **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""xml_item.XmlItem - a model defined in OpenAPI
Keyword Args:
@@ -221,6 +224,22 @@ class XmlItem(ModelNormal):
prefix_ns_wrapped_array ([int]): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
_path_to_item = kwargs.pop('_path_to_item', ())
_configuration = kwargs.pop('_configuration', None)
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
if args:
raise ApiTypeError(
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
args,
self.__class__.__name__,
),
path_to_item=_path_to_item,
valid_classes=(self.__class__,),
)
self._data_store = {}
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming