forked from loafle/openapi-generator-original
[python-experimental] fn + method signature improvements (#11529)
* Updates code * Removes java files
This commit is contained in:
@@ -31,7 +31,6 @@ from {{packageName}}.schemas import (
|
||||
Schema,
|
||||
FileIO,
|
||||
BinarySchema,
|
||||
InstantiationMetadata,
|
||||
date,
|
||||
datetime,
|
||||
none_type,
|
||||
@@ -807,9 +806,8 @@ class OpenApiResponse:
|
||||
else:
|
||||
raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type))
|
||||
body_schema = self.content[content_type].schema
|
||||
_instantiation_metadata = InstantiationMetadata(from_server=True, configuration=configuration)
|
||||
deserialized_body = body_schema._from_openapi_data(
|
||||
body_data, _instantiation_metadata=_instantiation_metadata)
|
||||
body_data, _configuration=configuration)
|
||||
elif streamed:
|
||||
response.release_conn()
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ from {{packageName}}.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -22,7 +22,7 @@ def __new__(
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
{{#with additionalProperties}}
|
||||
**kwargs: typing.Type[Schema],
|
||||
{{/with}}
|
||||
@@ -46,7 +46,7 @@ def __new__(
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
{{#with additionalProperties}}
|
||||
**kwargs,
|
||||
{{/with}}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -36,7 +36,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -175,7 +175,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
dateTime: typing.Union[dateTime, Unset] = unset,
|
||||
password: typing.Union[password, Unset] = unset,
|
||||
callback: typing.Union[callback, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
|
||||
return super().__new__(
|
||||
@@ -190,7 +190,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
dateTime=dateTime,
|
||||
password=password,
|
||||
callback=callback,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -351,7 +351,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
enum_form_string_array: typing.Union[enum_form_string_array, Unset] = unset,
|
||||
enum_form_string: typing.Union[enum_form_string, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
|
||||
return super().__new__(
|
||||
@@ -359,7 +359,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
*args,
|
||||
enum_form_string_array=enum_form_string_array,
|
||||
enum_form_string=enum_form_string,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -73,13 +73,13 @@ class SchemaForRequestBodyApplicationJson(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyApplicationJson':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -102,13 +102,13 @@ class CompositionAtRootSchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'CompositionAtRootSchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -154,13 +154,13 @@ class CompositionInPropertySchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'someProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -169,14 +169,14 @@ class CompositionInPropertySchema(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
someProp: typing.Union[someProp, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'CompositionInPropertySchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
someProp=someProp,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
RequestRequiredQueryParams = typing.TypedDict(
|
||||
@@ -249,13 +249,13 @@ class SchemaForRequestBodyApplicationJson(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyApplicationJson':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -301,13 +301,13 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'someProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -316,14 +316,14 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
someProp: typing.Union[someProp, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyMultipartFormData':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
someProp=someProp,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -376,13 +376,13 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaFor200ResponseBodyApplicationJson':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -428,13 +428,13 @@ class SchemaFor200ResponseBodyMultipartFormData(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'someProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -443,14 +443,14 @@ class SchemaFor200ResponseBodyMultipartFormData(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
someProp: typing.Union[someProp, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaFor200ResponseBodyMultipartFormData':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
someProp=someProp,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -76,13 +76,13 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -36,7 +36,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -79,14 +79,14 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
additionalMetadata: typing.Union[additionalMetadata, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyMultipartFormData':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
additionalMetadata=additionalMetadata,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -81,14 +81,14 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
files: typing.Union[files, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyMultipartFormData':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
files=files,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -102,7 +102,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
name: typing.Union[name, Unset] = unset,
|
||||
status: typing.Union[status, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded':
|
||||
return super().__new__(
|
||||
@@ -110,7 +110,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
|
||||
*args,
|
||||
name=name,
|
||||
status=status,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -1,216 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
from dataclasses import dataclass
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
import typing
|
||||
import urllib3
|
||||
from urllib3._collections import HTTPHeaderDict
|
||||
|
||||
from petstore_api import api_client, exceptions
|
||||
from decimal import Decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from petstore_api.schemas import ( # noqa: F401
|
||||
AnyTypeSchema,
|
||||
ComposedSchema,
|
||||
DictSchema,
|
||||
ListSchema,
|
||||
StrSchema,
|
||||
IntSchema,
|
||||
Int32Schema,
|
||||
Int64Schema,
|
||||
Float32Schema,
|
||||
Float64Schema,
|
||||
NumberSchema,
|
||||
DateSchema,
|
||||
DateTimeSchema,
|
||||
BoolSchema,
|
||||
FileSchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
ListBase,
|
||||
DictBase,
|
||||
NoneBase,
|
||||
StrBase,
|
||||
IntBase,
|
||||
NumberBase,
|
||||
DateBase,
|
||||
DateTimeBase,
|
||||
BoolBase,
|
||||
FileBase,
|
||||
Schema,
|
||||
_SchemaValidator,
|
||||
_SchemaTypeChecker,
|
||||
_SchemaEnumMaker
|
||||
)
|
||||
|
||||
from petstore_api.model.api_response import ApiResponse
|
||||
|
||||
# path params
|
||||
PetIdSchema = Int64Schema
|
||||
RequestRequiredPathParams = typing.TypedDict(
|
||||
'RequestRequiredPathParams',
|
||||
{
|
||||
'petId': PetIdSchema,
|
||||
}
|
||||
)
|
||||
RequestOptionalPathParams = typing.TypedDict(
|
||||
'RequestOptionalPathParams',
|
||||
{
|
||||
},
|
||||
total=False
|
||||
)
|
||||
|
||||
|
||||
class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
|
||||
pass
|
||||
|
||||
|
||||
request_path_pet_id = api_client.PathParameter(
|
||||
name="petId",
|
||||
style=api_client.ParameterStyle.SIMPLE,
|
||||
schema=PetIdSchema,
|
||||
required=True,
|
||||
)
|
||||
# body param
|
||||
|
||||
|
||||
class SchemaForRequestBodyMultipartFormData(
|
||||
DictSchema
|
||||
):
|
||||
additionalMetadata = StrSchema
|
||||
file = FileSchema
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
additionalMetadata: typing.Union[additionalMetadata, Unset] = unset,
|
||||
file: typing.Union[file, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
):
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
additionalMetadata=additionalMetadata,
|
||||
file=file,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
request_body_body = api_client.RequestBody(
|
||||
content={
|
||||
'multipart/form-data': api_client.MediaType(
|
||||
schema=SchemaForRequestBodyMultipartFormData),
|
||||
},
|
||||
)
|
||||
_path = '/pet/{petId}/uploadImage'
|
||||
_method = 'POST'
|
||||
_auth = [
|
||||
'petstore_auth',
|
||||
]
|
||||
SchemaFor200ResponseBodyApplicationJson = ApiResponse
|
||||
|
||||
|
||||
@dataclass
|
||||
class ApiResponseFor200(api_client.ApiResponse):
|
||||
response: urllib3.HTTPResponse
|
||||
body: typing.Union[
|
||||
SchemaFor200ResponseBodyApplicationJson,
|
||||
]
|
||||
headers: Unset = unset
|
||||
|
||||
|
||||
_response_for_200 = api_client.OpenApiResponse(
|
||||
response_cls=ApiResponseFor200,
|
||||
content={
|
||||
'application/json': api_client.MediaType(
|
||||
schema=SchemaFor200ResponseBodyApplicationJson),
|
||||
},
|
||||
)
|
||||
_status_code_to_response = {
|
||||
'200': _response_for_200,
|
||||
}
|
||||
_all_accept_content_types = (
|
||||
'application/json',
|
||||
)
|
||||
|
||||
|
||||
class UploadFile(api_client.Api):
|
||||
|
||||
def upload_file(
|
||||
self: api_client.Api,
|
||||
body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset,
|
||||
path_params: RequestPathParams = frozendict(),
|
||||
content_type: str = 'multipart/form-data',
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
) -> typing.Union[
|
||||
ApiResponseFor200,
|
||||
api_client.ApiResponseWithoutDeserialization
|
||||
]:
|
||||
"""
|
||||
uploads an image
|
||||
Parameters use leading underscores to prevent collisions with user defined
|
||||
parameters from the source openapi spec
|
||||
"""
|
||||
self._verify_typed_dict_inputs(RequestPathParams, path_params)
|
||||
|
||||
_path_params = {}
|
||||
for parameter in (
|
||||
request_path_pet_id,
|
||||
):
|
||||
parameter_data = path_params.get(parameter.name, unset)
|
||||
if parameter_data is unset:
|
||||
continue
|
||||
serialized_data = parameter.serialize(parameter_data)
|
||||
_path_params.update(serialized_data)
|
||||
|
||||
_headers = HTTPHeaderDict()
|
||||
# TODO add cookie handling
|
||||
if accept_content_types:
|
||||
for accept_content_type in accept_content_types:
|
||||
_headers.add('Accept', accept_content_type)
|
||||
|
||||
_fields = None
|
||||
_body = None
|
||||
if body is not unset:
|
||||
serialized_data = request_body_body.serialize(body, content_type)
|
||||
_headers.add('Content-Type', content_type)
|
||||
if 'fields' in serialized_data:
|
||||
_fields = serialized_data['fields']
|
||||
elif 'body' in serialized_data:
|
||||
_body = serialized_data['body']
|
||||
response = self.api_client.call_api(
|
||||
resource_path=_path,
|
||||
method=_method,
|
||||
path_params=_path_params,
|
||||
headers=_headers,
|
||||
fields=_fields,
|
||||
body=_body,
|
||||
auth_settings=_auth,
|
||||
)
|
||||
|
||||
response_for_status = _status_code_to_response.get(str(response.status))
|
||||
if response_for_status:
|
||||
api_response = response_for_status.deserialize(response, self.api_client.configuration)
|
||||
else:
|
||||
api_response = api_client.ApiResponseWithoutDeserialization(response=response)
|
||||
|
||||
if not 200 <= response.status <= 299:
|
||||
raise exceptions.ApiException(api_response=api_response)
|
||||
|
||||
return api_response
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -105,14 +105,14 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
additionalMetadata: typing.Union[additionalMetadata, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyMultipartFormData':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
additionalMetadata=additionalMetadata,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -103,14 +103,14 @@ class SchemaForRequestBodyMultipartFormData(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
additionalMetadata: typing.Union[additionalMetadata, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaForRequestBodyMultipartFormData':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
additionalMetadata=additionalMetadata,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -77,13 +77,13 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'SchemaFor200ResponseBodyApplicationJson':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -36,7 +36,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -36,7 +36,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -37,7 +37,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -35,7 +35,6 @@ from petstore_api.schemas import (
|
||||
Schema,
|
||||
FileIO,
|
||||
BinarySchema,
|
||||
InstantiationMetadata,
|
||||
date,
|
||||
datetime,
|
||||
none_type,
|
||||
@@ -811,9 +810,8 @@ class OpenApiResponse:
|
||||
else:
|
||||
raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type))
|
||||
body_schema = self.content[content_type].schema
|
||||
_instantiation_metadata = InstantiationMetadata(from_server=True, configuration=configuration)
|
||||
deserialized_body = body_schema._from_openapi_data(
|
||||
body_data, _instantiation_metadata=_instantiation_metadata)
|
||||
body_data, _configuration=configuration)
|
||||
elif streamed:
|
||||
response.release_conn()
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -82,13 +82,13 @@ class AdditionalPropertiesClass(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'map_property':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -107,13 +107,13 @@ class AdditionalPropertiesClass(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> '_additional_properties':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -121,13 +121,13 @@ class AdditionalPropertiesClass(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'map_of_map_property':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
anytype_1 = AnyTypeSchema
|
||||
@@ -145,12 +145,12 @@ class AdditionalPropertiesClass(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'empty_map':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
|
||||
@@ -163,13 +163,13 @@ class AdditionalPropertiesClass(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'map_with_undeclared_properties_string':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -185,7 +185,7 @@ class AdditionalPropertiesClass(
|
||||
map_with_undeclared_properties_anytype_3: typing.Union[map_with_undeclared_properties_anytype_3, Unset] = unset,
|
||||
empty_map: typing.Union[empty_map, Unset] = unset,
|
||||
map_with_undeclared_properties_string: typing.Union[map_with_undeclared_properties_string, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'AdditionalPropertiesClass':
|
||||
return super().__new__(
|
||||
@@ -199,6 +199,6 @@ class AdditionalPropertiesClass(
|
||||
map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3,
|
||||
empty_map=empty_map,
|
||||
map_with_undeclared_properties_string=map_with_undeclared_properties_string,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -86,13 +86,13 @@ class AdditionalPropertiesWithArrayOfEnums(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'AdditionalPropertiesWithArrayOfEnums':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -77,12 +77,12 @@ class Address(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Address':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -93,7 +93,7 @@ class Animal(
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
className: className,
|
||||
color: typing.Union[color, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Animal':
|
||||
return super().__new__(
|
||||
@@ -101,7 +101,7 @@ class Animal(
|
||||
*args,
|
||||
className=className,
|
||||
color=color,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -82,7 +82,7 @@ class ApiResponse(
|
||||
code: typing.Union[code, Unset] = unset,
|
||||
type: typing.Union[type, Unset] = unset,
|
||||
message: typing.Union[message, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ApiResponse':
|
||||
return super().__new__(
|
||||
@@ -91,6 +91,6 @@ class ApiResponse(
|
||||
code=code,
|
||||
type=type,
|
||||
message=message,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -107,13 +107,13 @@ class Apple(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, None, ],
|
||||
origin: typing.Union[origin, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Apple':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
origin=origin,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -84,12 +84,12 @@ class AppleReq(
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
cultivar: cultivar,
|
||||
mealy: typing.Union[mealy, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'AppleReq':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
cultivar=cultivar,
|
||||
mealy=mealy,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -88,13 +88,13 @@ class ArrayOfArrayOfNumberOnly(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
ArrayArrayNumber: typing.Union[ArrayArrayNumber, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ArrayOfArrayOfNumberOnly':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
ArrayArrayNumber=ArrayArrayNumber,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -83,13 +83,13 @@ class ArrayOfNumberOnly(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
ArrayNumber: typing.Union[ArrayNumber, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ArrayOfNumberOnly':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
ArrayNumber=ArrayNumber,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -111,7 +111,7 @@ class ArrayTest(
|
||||
array_of_string: typing.Union[array_of_string, Unset] = unset,
|
||||
array_array_of_integer: typing.Union[array_array_of_integer, Unset] = unset,
|
||||
array_array_of_model: typing.Union[array_array_of_model, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ArrayTest':
|
||||
return super().__new__(
|
||||
@@ -120,7 +120,7 @@ class ArrayTest(
|
||||
array_of_string=array_of_string,
|
||||
array_array_of_integer=array_array_of_integer,
|
||||
array_array_of_model=array_array_of_model,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -81,13 +81,13 @@ class Banana(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
lengthCm: lengthCm,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Banana':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
lengthCm=lengthCm,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -84,12 +84,12 @@ class BananaReq(
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
lengthCm: lengthCm,
|
||||
sweet: typing.Union[sweet, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'BananaReq':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
lengthCm=lengthCm,
|
||||
sweet=sweet,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -95,13 +95,13 @@ class BasquePig(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
className: className,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'BasquePig':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
className=className,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -88,7 +88,7 @@ class Capitalization(
|
||||
Capital_Snake: typing.Union[Capital_Snake, Unset] = unset,
|
||||
SCA_ETH_Flow_Points: typing.Union[SCA_ETH_Flow_Points, Unset] = unset,
|
||||
ATT_NAME: typing.Union[ATT_NAME, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Capitalization':
|
||||
return super().__new__(
|
||||
@@ -100,6 +100,6 @@ class Capitalization(
|
||||
Capital_Snake=Capital_Snake,
|
||||
SCA_ETH_Flow_Points=SCA_ETH_Flow_Points,
|
||||
ATT_NAME=ATT_NAME,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -96,13 +96,13 @@ class Cat(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Cat':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -78,13 +78,13 @@ class CatAllOf(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
declawed: typing.Union[declawed, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'CatAllOf':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
declawed=declawed,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -83,7 +83,7 @@ class Category(
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
name: name,
|
||||
id: typing.Union[id, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Category':
|
||||
return super().__new__(
|
||||
@@ -91,6 +91,6 @@ class Category(
|
||||
*args,
|
||||
name=name,
|
||||
id=id,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -96,13 +96,13 @@ class ChildCat(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ChildCat':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -78,13 +78,13 @@ class ChildCatAllOf(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
name: typing.Union[name, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ChildCatAllOf':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
name=name,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -79,13 +79,13 @@ class ClassModel(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_class: typing.Union[_class, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ClassModel':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_class=_class,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -78,13 +78,13 @@ class Client(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
client: typing.Union[client, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'Client':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
client=client,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -96,13 +96,13 @@ class ComplexQuadrilateral(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ComplexQuadrilateral':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -92,13 +92,13 @@ class ComplexQuadrilateralAllOf(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
quadrilateralType: typing.Union[quadrilateralType, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ComplexQuadrilateralAllOf':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
quadrilateralType=quadrilateralType,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -131,12 +131,12 @@ class ComposedAnyOfDifferentTypesNoValidations(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ComposedAnyOfDifferentTypesNoValidations':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -97,10 +97,10 @@ class ComposedBool(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[bool, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'ComposedBool':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -97,10 +97,10 @@ class ComposedNone(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[None, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'ComposedNone':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -97,10 +97,10 @@ class ComposedNumber(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[float, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'ComposedNumber':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -97,12 +97,12 @@ class ComposedObject(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ComposedObject':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -100,13 +100,13 @@ class ComposedOneOfDifferentTypes(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'oneOf_4':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -149,13 +149,13 @@ class ComposedOneOfDifferentTypes(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'ComposedOneOfDifferentTypes':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -97,10 +97,10 @@ class ComposedString(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[str, ],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
) -> 'ComposedString':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -109,13 +109,13 @@ class CompositionInProperty(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'someProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -124,13 +124,13 @@ class CompositionInProperty(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
someProp: typing.Union[someProp, Unset] = unset,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'CompositionInProperty':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
someProp=someProp,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
@@ -95,13 +95,13 @@ class DanishPig(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
className: className,
|
||||
_instantiation_metadata: typing.Optional[InstantiationMetadata] = None,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
) -> 'DanishPig':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
className=className,
|
||||
_instantiation_metadata=_instantiation_metadata,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
@@ -38,7 +38,7 @@ from petstore_api.schemas import ( # noqa: F401
|
||||
BinarySchema,
|
||||
NoneSchema,
|
||||
none_type,
|
||||
InstantiationMetadata,
|
||||
Configuration,
|
||||
Unset,
|
||||
unset,
|
||||
ComposedBase,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user