[python-experimental] style + naming cleanup (#13234)

* Updates templates

* Samples update

* Other sample updated

* Removes unserscore prefix from Validators

* Samples regenerated
This commit is contained in:
Justin Black 2022-08-19 21:09:57 -07:00 committed by GitHub
parent 52eb13f662
commit 640010ad38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
444 changed files with 2682 additions and 21903 deletions

View File

@ -1304,9 +1304,9 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
return value; return value;
} else if ("bool".equals(datatype)) { } else if ("bool".equals(datatype)) {
if (value.equals("true")) { if (value.equals("true")) {
return "BoolClass.TRUE"; return "schemas.BoolClass.TRUE";
} }
return "BoolClass.FALSE"; return "schemas.BoolClass.FALSE";
} else { } else {
String fixedValue = (String) processTestExampleData(value); String fixedValue = (String) processTestExampleData(value);
return ensureQuotes(fixedValue); return ensureQuotes(fixedValue);

View File

@ -289,7 +289,7 @@ class ApiResponseFor{{code}}(api_client.ApiResponse):
{{#if this.schema}} {{#if this.schema}}
{{this.schema.baseName}}, {{this.schema.baseName}},
{{else}} {{else}}
Unset, schemas.Unset,
{{/if}} {{/if}}
{{/each}} {{/each}}
] ]
@ -298,25 +298,25 @@ class ApiResponseFor{{code}}(api_client.ApiResponse):
{{#or responseHeaders content}} {{#or responseHeaders content}}
{{#if responseHeaders}} {{#if responseHeaders}}
headers: ResponseHeadersFor{{code}} headers: ResponseHeadersFor{{code}}
body: Unset = unset body: schemas.Unset = schemas.unset
{{else}} {{else}}
body: typing.Union[ body: typing.Union[
{{#each content}} {{#each content}}
{{#if this.schema}} {{#if this.schema}}
{{this.schema.baseName}}, {{this.schema.baseName}},
{{else}} {{else}}
Unset, schemas.Unset,
{{/if}} {{/if}}
{{/each}} {{/each}}
] ]
headers: Unset = unset headers: schemas.Unset = schemas.unset
{{/if}} {{/if}}
{{/or}} {{/or}}
{{/and}} {{/and}}
{{#unless responseHeaders}} {{#unless responseHeaders}}
{{#unless content}} {{#unless content}}
body: Unset = unset body: schemas.Unset = schemas.unset
headers: Unset = unset headers: schemas.Unset = schemas.unset
{{/unless}} {{/unless}}
{{/unless}} {{/unless}}
@ -400,8 +400,8 @@ class BaseApi(api_client.Api):
request_path_{{paramName}}, request_path_{{paramName}},
{{/each}} {{/each}}
): ):
parameter_data = path_params.get(parameter.name, unset) parameter_data = path_params.get(parameter.name, schemas.unset)
if parameter_data is unset: if parameter_data is schemas.unset:
continue continue
serialized_data = parameter.serialize(parameter_data) serialized_data = parameter.serialize(parameter_data)
_path_params.update(serialized_data) _path_params.update(serialized_data)
@ -417,8 +417,8 @@ class BaseApi(api_client.Api):
request_query_{{paramName}}, request_query_{{paramName}},
{{/each}} {{/each}}
): ):
parameter_data = query_params.get(parameter.name, unset) parameter_data = query_params.get(parameter.name, schemas.unset)
if parameter_data is unset: if parameter_data is schemas.unset:
continue continue
if prefix_separator_iterator is None: if prefix_separator_iterator is None:
prefix_separator_iterator = parameter.get_prefix_separator_iterator() prefix_separator_iterator = parameter.get_prefix_separator_iterator()
@ -437,8 +437,8 @@ class BaseApi(api_client.Api):
request_header_{{paramName}}, request_header_{{paramName}},
{{/each}} {{/each}}
): ):
parameter_data = header_params.get(parameter.name, unset) parameter_data = header_params.get(parameter.name, schemas.unset)
if parameter_data is unset: if parameter_data is schemas.unset:
continue continue
serialized_data = parameter.serialize(parameter_data) serialized_data = parameter.serialize(parameter_data)
_headers.extend(serialized_data) _headers.extend(serialized_data)
@ -452,7 +452,7 @@ class BaseApi(api_client.Api):
{{#with bodyParam}} {{#with bodyParam}}
{{#if required}} {{#if required}}
if body is unset: if body is schemas.unset:
raise exceptions.ApiValueError( raise exceptions.ApiValueError(
'The required body parameter has an invalid value of: unset. Set a valid value instead') 'The required body parameter has an invalid value of: unset. Set a valid value instead')
{{/if}} {{/if}}
@ -461,7 +461,7 @@ class BaseApi(api_client.Api):
{{#if required}} {{#if required}}
{{> endpoint_body_serialization }} {{> endpoint_body_serialization }}
{{else}} {{else}}
if body is not unset: if body is not schemas.unset:
{{> endpoint_body_serialization }} {{> endpoint_body_serialization }}
{{/if}} {{/if}}
{{/with}} {{/with}}

View File

@ -1,7 +1,7 @@
self: {{selfType}}, self: {{selfType}},
{{#if bodyParam}} {{#if bodyParam}}
{{#with bodyParam}} {{#with bodyParam}}
body: typing.Union[{{#each content}}{{#unless @first}}, {{/unless}}{{this.schema.baseName}}{{/each}}{{#unless required}}, Unset] = unset{{else}}]{{/unless}}, body: typing.Union[{{#each content}}{{#unless @first}}, {{/unless}}{{this.schema.baseName}}{{/each}}{{#unless required}}, schemas.Unset] = schemas.unset{{else}}]{{/unless}},
{{/with}} {{/with}}
{{/if}} {{/if}}
{{#if queryParams}} {{#if queryParams}}

View File

@ -1,7 +1,7 @@
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
{{#if isNull}} {{#if isNull}}
NoneClass.NONE: "NONE", schemas.NoneClass.NONE: "NONE",
{{/if}} {{/if}}
{{#with allowableValues}} {{#with allowableValues}}
{{#each enumVars}} {{#each enumVars}}

View File

@ -2,49 +2,4 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from {{packageName}}.schemas import ( # noqa: F401 from {{packageName}} import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)

View File

@ -16,17 +16,17 @@ def __new__(
{{#unless nameInSnakeCase}} {{#unless nameInSnakeCase}}
{{#unless getRequired}} {{#unless getRequired}}
{{#unless complexType}} {{#unless complexType}}
{{baseName}}: typing.Union[{{baseName}}, Unset] = unset, {{baseName}}: typing.Union[{{baseName}}, schemas.Unset] = schemas.unset,
{{/unless}} {{/unless}}
{{#if complexType}} {{#if complexType}}
{{baseName}}: typing.Union['{{complexType}}', Unset] = unset, {{baseName}}: typing.Union['{{complexType}}', schemas.Unset] = schemas.unset,
{{/if}} {{/if}}
{{/unless}} {{/unless}}
{{/unless}} {{/unless}}
{{/each}} {{/each}}
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
{{#with additionalProperties}} {{#with additionalProperties}}
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
{{/with}} {{/with}}
) -> '{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}}': ) -> '{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}}':
return super().__new__( return super().__new__(

View File

@ -6,16 +6,16 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
{{/if}} {{/if}}
{{#if getIsAnyType}} {{#if getIsAnyType}}
{{#if composedSchemas}} {{#if composedSchemas}}
ComposedSchema schemas.ComposedSchema
{{else}} {{else}}
AnyTypeSchema schemas.AnyTypeSchema
{{/if}} {{/if}}
{{else}} {{else}}
{{#if getHasMultipleTypes}} {{#if getHasMultipleTypes}}
_SchemaTypeChecker(typing.Union[{{#if isArray}}tuple, {{/if}}{{#if isMap}}frozendict, {{/if}}{{#if isNull}}NoneClass, {{/if}}{{#if isString}}str, {{/if}}{{#if isByteArray}}str, {{/if}}{{#if isUnboundedInteger}}decimal.Decimal, {{/if}}{{#if isShort}}decimal.Decimal, {{/if}}{{#if isLong}}decimal.Decimal, {{/if}}{{#if isFloat}}decimal.Decimal, {{/if}}{{#if isDouble}}decimal.Decimal, {{/if}}{{#if isNumber}}decimal.Decimal, {{/if}}{{#if isDate}}str, {{/if}}{{#if isDateTime}}str, {{/if}}{{#if isDecimal}}str, {{/if}}{{#if isBoolean}}BoolClass, {{/if}}]), schemas.SchemaTypeCheckerClsFactory(typing.Union[{{#if isArray}}tuple, {{/if}}{{#if isMap}}frozendict, {{/if}}{{#if isNull}}schemas.NoneClass, {{/if}}{{#if isString}}str, {{/if}}{{#if isByteArray}}str, {{/if}}{{#if isUnboundedInteger}}decimal.Decimal, {{/if}}{{#if isShort}}decimal.Decimal, {{/if}}{{#if isLong}}decimal.Decimal, {{/if}}{{#if isFloat}}decimal.Decimal, {{/if}}{{#if isDouble}}decimal.Decimal, {{/if}}{{#if isNumber}}decimal.Decimal, {{/if}}{{#if isDate}}str, {{/if}}{{#if isDateTime}}str, {{/if}}{{#if isDecimal}}str, {{/if}}{{#if isBoolean}}schemas.BoolClass, {{/if}}]),
{{/if}} {{/if}}
{{#if composedSchemas}} {{#if composedSchemas}}
ComposedBase, schemas.ComposedBase,
{{/if}} {{/if}}
{{#if isEnum}} {{#if isEnum}}
{{> model_templates/enum_value_to_name }} {{> model_templates/enum_value_to_name }}

View File

@ -4,7 +4,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
{{#if hasValidation}} {{#if hasValidation}}
{{> model_templates/validations }} {{> model_templates/validations }}
{{/if}} {{/if}}
DictSchema schemas.DictSchema
): ):
{{#if this.classname}} {{#if this.classname}}
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.

View File

@ -4,7 +4,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
{{#if hasValidation}} {{#if hasValidation}}
{{> model_templates/validations }} {{> model_templates/validations }}
{{/if}} {{/if}}
ListSchema schemas.ListSchema
): ):
{{#if this.classname}} {{#if this.classname}}
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.

View File

@ -1,4 +1,4 @@
_SchemaValidator( schemas.SchemaValidatorClsFactory(
{{#if getUniqueItems}} {{#if getUniqueItems}}
unique_items=True, unique_items=True,
{{/if}} {{/if}}

View File

@ -1 +1 @@
{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}} = {{#if complexType}}{{complexType}}{{else}}{{#if isNullable}}Nullable{{/if}}{{#if getIsNull}}None{{/if}}{{#if isAnyType}}AnyType{{/if}}{{#if isMap}}Dict{{/if}}{{#if isArray}}List{{/if}}{{#if isString}}Str{{/if}}{{#if isByteArray}}Str{{/if}}{{#if getIsUuid}}UUID{{/if}}{{#if isDate}}Date{{/if}}{{#if isDateTime}}DateTime{{/if}}{{#if isDecimal}}Decimal{{/if}}{{#if isUnboundedInteger}}Int{{/if}}{{#if isShort}}Int32{{/if}}{{#if isLong}}Int64{{/if}}{{#if isFloat}}Float32{{/if}}{{#if isDouble}}Float64{{/if}}{{#if isNumber}}Number{{/if}}{{#if isBoolean}}Bool{{/if}}{{#if isBinary}}Binary{{/if}}Schema{{/if}} {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}} = {{#if complexType}}{{complexType}}{{else}}schemas.{{#if isNullable}}Nullable{{/if}}{{#if getIsNull}}None{{/if}}{{#if isAnyType}}AnyType{{/if}}{{#if isMap}}Dict{{/if}}{{#if isArray}}List{{/if}}{{#if isString}}Str{{/if}}{{#if isByteArray}}Str{{/if}}{{#if getIsUuid}}UUID{{/if}}{{#if isDate}}Date{{/if}}{{#if isDateTime}}DateTime{{/if}}{{#if isDecimal}}Decimal{{/if}}{{#if isUnboundedInteger}}Int{{/if}}{{#if isShort}}Int32{{/if}}{{#if isLong}}Int64{{/if}}{{#if isFloat}}Float32{{/if}}{{#if isDouble}}Float64{{/if}}{{#if isNumber}}Number{{/if}}{{#if isBoolean}}Bool{{/if}}{{#if isBinary}}Binary{{/if}}Schema{{/if}}

View File

@ -1,54 +1,54 @@
{{#if isArray}} {{#if isArray}}
List{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.List{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isMap}} {{#if isMap}}
Dict{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Dict{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isString}} {{#if isString}}
Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isByteArray}} {{#if isByteArray}}
Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isUnboundedInteger}} {{#if isUnboundedInteger}}
Int{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Int{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isNumber}} {{#if isNumber}}
Number{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Number{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#isShort}} {{#isShort}}
Int32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Int32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/isShort}} {{/isShort}}
{{#isLong}} {{#isLong}}
Int64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Int64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/isLong}} {{/isLong}}
{{#isFloat}} {{#isFloat}}
Float32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Float32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/isFloat}} {{/isFloat}}
{{#isDouble}} {{#isDouble}}
Float64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Float64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/isDouble}} {{/isDouble}}
{{#if getIsUuid}} {{#if getIsUuid}}
UUID{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.UUID{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isDate}} {{#if isDate}}
Date{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Date{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isDateTime}} {{#if isDateTime}}
DateTime{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.DateTime{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isDecimal}} {{#if isDecimal}}
Decimal{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Decimal{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isBoolean}} {{#if isBoolean}}
Bool{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Bool{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isBinary}} {{#if isBinary}}
Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if isNull}} {{#if isNull}}
None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
{{/if}} {{/if}}
{{#if getHasMultipleTypes}} {{#if getHasMultipleTypes}}
Schema schemas.Schema
{{/if}} {{/if}}

View File

@ -7,9 +7,7 @@ from datetime import date, datetime, timedelta # noqa: F401
import functools import functools
import decimal import decimal
import io import io
import os
import re import re
import tempfile
import typing import typing
import uuid import uuid
@ -439,7 +437,7 @@ class Validator(typing.Protocol):
pass pass
def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: def SchemaValidatorClsFactory(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator:
class SchemaValidator(ValidatorBase): class SchemaValidator(ValidatorBase):
@classmethod @classmethod
def _validate( def _validate(
@ -457,7 +455,7 @@ def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, li
return SchemaValidator return SchemaValidator
def _SchemaTypeChecker(union_type_cls: typing.Union[typing.Any]) -> Validator: def SchemaTypeCheckerClsFactory(union_type_cls: typing.Union[typing.Any]) -> Validator:
if typing.get_origin(union_type_cls) is typing.Union: if typing.get_origin(union_type_cls) is typing.Union:
union_classes = typing.get_args(union_type_cls) union_classes = typing.get_args(union_type_cls)
else: else:
@ -556,7 +554,7 @@ class EnumMakerInterface(Validator):
pass pass
def _SchemaEnumMaker(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface:
class SchemaEnumMaker(EnumMakerBase): class SchemaEnumMaker(EnumMakerBase):
@classmethod @classmethod
@property @property
@ -1726,7 +1724,7 @@ class ComposedBase(Discriminable):
# DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase # DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase
class ComposedSchema( class ComposedSchema(
_SchemaTypeChecker(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), SchemaTypeCheckerClsFactory(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]),
ComposedBase, ComposedBase,
DictBase, DictBase,
ListBase, ListBase,
@ -1750,7 +1748,7 @@ class ComposedSchema(
class ListSchema( class ListSchema(
_SchemaTypeChecker(typing.Union[tuple]), SchemaTypeCheckerClsFactory(typing.Union[tuple]),
ListBase, ListBase,
Schema Schema
): ):
@ -1764,7 +1762,7 @@ class ListSchema(
class NoneSchema( class NoneSchema(
_SchemaTypeChecker(typing.Union[NoneClass]), SchemaTypeCheckerClsFactory(typing.Union[NoneClass]),
NoneBase, NoneBase,
Schema Schema
): ):
@ -1778,7 +1776,7 @@ class NoneSchema(
class NumberSchema( class NumberSchema(
_SchemaTypeChecker(typing.Union[decimal.Decimal]), SchemaTypeCheckerClsFactory(typing.Union[decimal.Decimal]),
NumberBase, NumberBase,
Schema Schema
): ):
@ -1839,7 +1837,7 @@ class IntSchema(IntBase, NumberSchema):
class Int32Base( class Int32Base(
_SchemaValidator( SchemaValidatorClsFactory(
inclusive_minimum=decimal.Decimal(-2147483648), inclusive_minimum=decimal.Decimal(-2147483648),
inclusive_maximum=decimal.Decimal(2147483647) inclusive_maximum=decimal.Decimal(2147483647)
), ),
@ -1855,7 +1853,7 @@ class Int32Schema(
class Int64Base( class Int64Base(
_SchemaValidator( SchemaValidatorClsFactory(
inclusive_minimum=decimal.Decimal(-9223372036854775808), inclusive_minimum=decimal.Decimal(-9223372036854775808),
inclusive_maximum=decimal.Decimal(9223372036854775807) inclusive_maximum=decimal.Decimal(9223372036854775807)
), ),
@ -1871,7 +1869,7 @@ class Int64Schema(
class Float32Base( class Float32Base(
_SchemaValidator( SchemaValidatorClsFactory(
inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38), inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38),
inclusive_maximum=decimal.Decimal(3.4028234663852886e+38) inclusive_maximum=decimal.Decimal(3.4028234663852886e+38)
), ),
@ -1891,7 +1889,7 @@ class Float32Schema(
class Float64Base( class Float64Base(
_SchemaValidator( SchemaValidatorClsFactory(
inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308), inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308),
inclusive_maximum=decimal.Decimal(1.7976931348623157E+308) inclusive_maximum=decimal.Decimal(1.7976931348623157E+308)
), ),
@ -1911,7 +1909,7 @@ class Float64Schema(
class StrSchema( class StrSchema(
_SchemaTypeChecker(typing.Union[str]), SchemaTypeCheckerClsFactory(typing.Union[str]),
StrBase, StrBase,
Schema Schema
): ):
@ -1963,7 +1961,7 @@ class DecimalSchema(DecimalBase, StrSchema):
class BytesSchema( class BytesSchema(
_SchemaTypeChecker(typing.Union[bytes]), SchemaTypeCheckerClsFactory(typing.Union[bytes]),
Schema, Schema,
): ):
""" """
@ -1974,7 +1972,7 @@ class BytesSchema(
class FileSchema( class FileSchema(
_SchemaTypeChecker(typing.Union[FileIO]), SchemaTypeCheckerClsFactory(typing.Union[FileIO]),
Schema, Schema,
): ):
""" """
@ -2003,7 +2001,7 @@ class BinaryBase:
class BinarySchema( class BinarySchema(
_SchemaTypeChecker(typing.Union[bytes, FileIO]), SchemaTypeCheckerClsFactory(typing.Union[bytes, FileIO]),
ComposedBase, ComposedBase,
BinaryBase, BinaryBase,
Schema, Schema,
@ -2035,7 +2033,7 @@ class BinarySchema(
class BoolSchema( class BoolSchema(
_SchemaTypeChecker(typing.Union[BoolClass]), SchemaTypeCheckerClsFactory(typing.Union[BoolClass]),
BoolBase, BoolBase,
Schema Schema
): ):
@ -2049,7 +2047,7 @@ class BoolSchema(
class AnyTypeSchema( class AnyTypeSchema(
_SchemaTypeChecker( SchemaTypeCheckerClsFactory(
typing.Union[frozendict, tuple, decimal.Decimal, str, BoolClass, NoneClass, bytes, FileIO] typing.Union[frozendict, tuple, decimal.Decimal, str, BoolClass, NoneClass, bytes, FileIO]
), ),
DictBase, DictBase,
@ -2064,7 +2062,7 @@ class AnyTypeSchema(
class DictSchema( class DictSchema(
_SchemaTypeChecker(typing.Union[frozendict]), SchemaTypeCheckerClsFactory(typing.Union[frozendict]),
DictBase, DictBase,
Schema Schema
): ):

View File

@ -2,7 +2,7 @@
Type | Description | Notes Type | Description | Notes
------------- | ------------- | ------------- ------------- | ------------- | -------------
**bool** | | must be one of [BoolClass.FALSE, ] **bool** | | must be one of [schemas.BoolClass.FALSE, ]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -2,7 +2,7 @@
Type | Description | Notes Type | Description | Notes
------------- | ------------- | ------------- ------------- | ------------- | -------------
**bool** | | must be one of [BoolClass.TRUE, ] **bool** | | must be one of [schemas.BoolClass.TRUE, ]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -20,74 +20,29 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AdditionalpropertiesAllowsASchemaWhichShouldValidate( class AdditionalpropertiesAllowsASchemaWhichShouldValidate(
DictSchema schemas.DictSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
foo = AnyTypeSchema foo = schemas.AnyTypeSchema
bar = AnyTypeSchema bar = schemas.AnyTypeSchema
_additional_properties = BoolSchema _additional_properties = schemas.BoolSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
bar: typing.Union[bar, Unset] = unset, bar: typing.Union[bar, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate': ) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,72 +20,27 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AdditionalpropertiesAreAllowedByDefault( class AdditionalpropertiesAreAllowedByDefault(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
foo = AnyTypeSchema foo = schemas.AnyTypeSchema
bar = AnyTypeSchema bar = schemas.AnyTypeSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
bar: typing.Union[bar, Unset] = unset, bar: typing.Union[bar, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AdditionalpropertiesAreAllowedByDefault': ) -> 'AdditionalpropertiesAreAllowedByDefault':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,70 +20,25 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AdditionalpropertiesCanExistByItself( class AdditionalpropertiesCanExistByItself(
DictSchema schemas.DictSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
_additional_properties = BoolSchema _additional_properties = schemas.BoolSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AdditionalpropertiesCanExistByItself': ) -> 'AdditionalpropertiesCanExistByItself':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,63 +20,18 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AdditionalpropertiesShouldNotLookInApplicators( class AdditionalpropertiesShouldNotLookInApplicators(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
_additional_properties = BoolSchema _additional_properties = schemas.BoolSchema
@classmethod @classmethod
@property @property
@ -92,16 +47,16 @@ class AdditionalpropertiesShouldNotLookInApplicators(
class all_of_0( class all_of_0(
AnyTypeSchema schemas.AnyTypeSchema
): ):
foo = AnyTypeSchema foo = schemas.AnyTypeSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_0': ) -> 'all_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -125,8 +80,8 @@ class AdditionalpropertiesShouldNotLookInApplicators(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AdditionalpropertiesShouldNotLookInApplicators': ) -> 'AdditionalpropertiesShouldNotLookInApplicators':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class Allof( class Allof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,19 +46,19 @@ class Allof(
class all_of_0( class all_of_0(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"bar", "bar",
} }
bar = IntSchema bar = schemas.IntSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
bar: bar, bar: bar,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_0': ) -> 'all_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -115,19 +70,19 @@ class Allof(
class all_of_1( class all_of_1(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"foo", "foo",
} }
foo = StrSchema foo = schemas.StrSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: foo, foo: foo,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_1': ) -> 'all_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -152,8 +107,8 @@ class Allof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'Allof': ) -> 'Allof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofCombinedWithAnyofOneof( class AllofCombinedWithAnyofOneof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,17 +46,17 @@ class AllofCombinedWithAnyofOneof(
class all_of_0( class all_of_0(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=2, multiple_of=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_0': ) -> 'all_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -112,17 +67,17 @@ class AllofCombinedWithAnyofOneof(
class one_of_0( class one_of_0(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=5, multiple_of=5,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_0': ) -> 'one_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -133,17 +88,17 @@ class AllofCombinedWithAnyofOneof(
class any_of_0( class any_of_0(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=3, multiple_of=3,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_0': ) -> 'any_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -168,8 +123,8 @@ class AllofCombinedWithAnyofOneof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofCombinedWithAnyofOneof': ) -> 'AllofCombinedWithAnyofOneof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofSimpleTypes( class AllofSimpleTypes(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,17 +46,17 @@ class AllofSimpleTypes(
class all_of_0( class all_of_0(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_maximum=30, inclusive_maximum=30,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_0': ) -> 'all_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -112,17 +67,17 @@ class AllofSimpleTypes(
class all_of_1( class all_of_1(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_minimum=20, inclusive_minimum=20,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_1': ) -> 'all_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -146,8 +101,8 @@ class AllofSimpleTypes(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofSimpleTypes': ) -> 'AllofSimpleTypes':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofWithBaseSchema( class AllofWithBaseSchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -79,7 +34,7 @@ class AllofWithBaseSchema(
_required_property_names = { _required_property_names = {
"bar", "bar",
} }
bar = IntSchema bar = schemas.IntSchema
@classmethod @classmethod
@property @property
@ -95,19 +50,19 @@ class AllofWithBaseSchema(
class all_of_0( class all_of_0(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"foo", "foo",
} }
foo = StrSchema foo = schemas.StrSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: foo, foo: foo,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_0': ) -> 'all_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -119,19 +74,19 @@ class AllofWithBaseSchema(
class all_of_1( class all_of_1(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"baz", "baz",
} }
baz = NoneSchema baz = schemas.NoneSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
baz: baz, baz: baz,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_1': ) -> 'all_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -157,8 +112,8 @@ class AllofWithBaseSchema(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
bar: bar, bar: bar,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofWithBaseSchema': ) -> 'AllofWithBaseSchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofWithOneEmptySchema( class AllofWithOneEmptySchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,7 +43,7 @@ class AllofWithOneEmptySchema(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
all_of_0 = AnyTypeSchema all_of_0 = schemas.AnyTypeSchema
return { return {
'allOf': [ 'allOf': [
all_of_0, all_of_0,
@ -104,8 +59,8 @@ class AllofWithOneEmptySchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofWithOneEmptySchema': ) -> 'AllofWithOneEmptySchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofWithTheFirstEmptySchema( class AllofWithTheFirstEmptySchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,8 +43,8 @@ class AllofWithTheFirstEmptySchema(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
all_of_0 = AnyTypeSchema all_of_0 = schemas.AnyTypeSchema
all_of_1 = NumberSchema all_of_1 = schemas.NumberSchema
return { return {
'allOf': [ 'allOf': [
all_of_0, all_of_0,
@ -106,8 +61,8 @@ class AllofWithTheFirstEmptySchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofWithTheFirstEmptySchema': ) -> 'AllofWithTheFirstEmptySchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofWithTheLastEmptySchema( class AllofWithTheLastEmptySchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,8 +43,8 @@ class AllofWithTheLastEmptySchema(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
all_of_0 = NumberSchema all_of_0 = schemas.NumberSchema
all_of_1 = AnyTypeSchema all_of_1 = schemas.AnyTypeSchema
return { return {
'allOf': [ 'allOf': [
all_of_0, all_of_0,
@ -106,8 +61,8 @@ class AllofWithTheLastEmptySchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofWithTheLastEmptySchema': ) -> 'AllofWithTheLastEmptySchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AllofWithTwoEmptySchemas( class AllofWithTwoEmptySchemas(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,8 +43,8 @@ class AllofWithTwoEmptySchemas(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
all_of_0 = AnyTypeSchema all_of_0 = schemas.AnyTypeSchema
all_of_1 = AnyTypeSchema all_of_1 = schemas.AnyTypeSchema
return { return {
'allOf': [ 'allOf': [
all_of_0, all_of_0,
@ -106,8 +61,8 @@ class AllofWithTwoEmptySchemas(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AllofWithTwoEmptySchemas': ) -> 'AllofWithTwoEmptySchemas':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class Anyof( class Anyof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,21 +43,21 @@ class Anyof(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
any_of_0 = IntSchema any_of_0 = schemas.IntSchema
class any_of_1( class any_of_1(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_minimum=2, inclusive_minimum=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_1': ) -> 'any_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -126,8 +81,8 @@ class Anyof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'Anyof': ) -> 'Anyof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AnyofComplexTypes( class AnyofComplexTypes(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,19 +46,19 @@ class AnyofComplexTypes(
class any_of_0( class any_of_0(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"bar", "bar",
} }
bar = IntSchema bar = schemas.IntSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
bar: bar, bar: bar,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_0': ) -> 'any_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -115,19 +70,19 @@ class AnyofComplexTypes(
class any_of_1( class any_of_1(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"foo", "foo",
} }
foo = StrSchema foo = schemas.StrSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: foo, foo: foo,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_1': ) -> 'any_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -152,8 +107,8 @@ class AnyofComplexTypes(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AnyofComplexTypes': ) -> 'AnyofComplexTypes':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,57 +20,12 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AnyofWithBaseSchema( class AnyofWithBaseSchema(
ComposedBase, schemas.ComposedBase,
StrSchema schemas.StrSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -92,17 +47,17 @@ class AnyofWithBaseSchema(
class any_of_0( class any_of_0(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
max_length=2, max_length=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_0': ) -> 'any_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -113,17 +68,17 @@ class AnyofWithBaseSchema(
class any_of_1( class any_of_1(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
min_length=4, min_length=4,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_1': ) -> 'any_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -147,7 +102,7 @@ class AnyofWithBaseSchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[str, ], *args: typing.Union[str, ],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
) -> 'AnyofWithBaseSchema': ) -> 'AnyofWithBaseSchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class AnyofWithOneEmptySchema( class AnyofWithOneEmptySchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,8 +43,8 @@ class AnyofWithOneEmptySchema(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
any_of_0 = NumberSchema any_of_0 = schemas.NumberSchema
any_of_1 = AnyTypeSchema any_of_1 = schemas.AnyTypeSchema
return { return {
'allOf': [ 'allOf': [
], ],
@ -106,8 +61,8 @@ class AnyofWithOneEmptySchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'AnyofWithOneEmptySchema': ) -> 'AnyofWithOneEmptySchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,60 +20,15 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class ArrayTypeMatchesArrays( class ArrayTypeMatchesArrays(
ListSchema schemas.ListSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
_items = AnyTypeSchema _items = schemas.AnyTypeSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, BooleanTypeMatchesBooleans = schemas.BoolSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
BooleanTypeMatchesBooleans = BoolSchema

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class ByInt( class ByInt(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=2, multiple_of=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class ByInt(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'ByInt': ) -> 'ByInt':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class ByNumber( class ByNumber(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=1.5, multiple_of=1.5,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class ByNumber(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'ByNumber': ) -> 'ByNumber':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class BySmallNumber( class BySmallNumber(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=0.00010, multiple_of=0.00010,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class BySmallNumber(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'BySmallNumber': ) -> 'BySmallNumber':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, DateTimeFormat = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
DateTimeFormat = AnyTypeSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, EmailFormat = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
EmailFormat = AnyTypeSchema

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class EnumWith0DoesNotMatchFalse( class EnumWith0DoesNotMatchFalse(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
0: "POSITIVE_0", 0: "POSITIVE_0",
} }
), ),
NumberSchema schemas.NumberSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class EnumWith1DoesNotMatchTrue( class EnumWith1DoesNotMatchTrue(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
1: "POSITIVE_1", 1: "POSITIVE_1",
} }
), ),
NumberSchema schemas.NumberSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,62 +20,17 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class EnumWithEscapedCharacters( class EnumWithEscapedCharacters(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
"foo\nbar": "FOO_BAR", "foo\nbar": "FOO_BAR",
"foo\rbar": "FOO_BAR", "foo\rbar": "FOO_BAR",
} }
), ),
StrSchema schemas.StrSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class EnumWithFalseDoesNotMatch0( class EnumWithFalseDoesNotMatch0(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
BoolClass.FALSE: "FALSE", schemas.BoolClass.FALSE: "FALSE",
} }
), ),
BoolSchema schemas.BoolSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -85,4 +40,4 @@ class EnumWithFalseDoesNotMatch0(
@classmethod @classmethod
@property @property
def FALSE(cls): def FALSE(cls):
return cls(BoolClass.FALSE) return cls(schemas.BoolClass.FALSE)

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class EnumWithTrueDoesNotMatch1( class EnumWithTrueDoesNotMatch1(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
BoolClass.TRUE: "TRUE", schemas.BoolClass.TRUE: "TRUE",
} }
), ),
BoolSchema schemas.BoolSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -85,4 +40,4 @@ class EnumWithTrueDoesNotMatch1(
@classmethod @classmethod
@property @property
def TRUE(cls): def TRUE(cls):
return cls(BoolClass.TRUE) return cls(schemas.BoolClass.TRUE)

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class EnumsInProperties( class EnumsInProperties(
DictSchema schemas.DictSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -82,12 +37,12 @@ class EnumsInProperties(
class foo( class foo(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
"foo": "FOO", "foo": "FOO",
} }
), ),
StrSchema schemas.StrSchema
): ):
@classmethod @classmethod
@ -97,12 +52,12 @@ class EnumsInProperties(
class bar( class bar(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
"bar": "BAR", "bar": "BAR",
} }
), ),
StrSchema schemas.StrSchema
): ):
@classmethod @classmethod
@ -115,9 +70,9 @@ class EnumsInProperties(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
bar: bar, bar: bar,
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'EnumsInProperties': ) -> 'EnumsInProperties':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class ForbiddenProperty( class ForbiddenProperty(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -79,7 +34,7 @@ class ForbiddenProperty(
class foo( class foo(
ComposedSchema schemas.ComposedSchema
): ):
@classmethod @classmethod
@ -93,7 +48,7 @@ class ForbiddenProperty(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
not_schema = AnyTypeSchema not_schema = schemas.AnyTypeSchema
return { return {
'allOf': [ 'allOf': [
], ],
@ -108,8 +63,8 @@ class ForbiddenProperty(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'foo': ) -> 'foo':
return super().__new__( return super().__new__(
cls, cls,
@ -121,9 +76,9 @@ class ForbiddenProperty(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'ForbiddenProperty': ) -> 'ForbiddenProperty':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, HostnameFormat = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
HostnameFormat = AnyTypeSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, IntegerTypeMatchesIntegers = schemas.IntSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
IntegerTypeMatchesIntegers = IntSchema

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf( class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
multiple_of=0.123456789, multiple_of=0.123456789,
), ),
IntSchema schemas.IntSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class InvalidStringValueForDefault( class InvalidStringValueForDefault(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -79,19 +34,19 @@ class InvalidStringValueForDefault(
class bar( class bar(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
min_length=4, min_length=4,
), ),
StrSchema schemas.StrSchema
): ):
pass pass
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
bar: typing.Union[bar, Unset] = unset, bar: typing.Union[bar, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'InvalidStringValueForDefault': ) -> 'InvalidStringValueForDefault':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, Ipv4Format = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
Ipv4Format = AnyTypeSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, Ipv6Format = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
Ipv6Format = AnyTypeSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, JsonPointerFormat = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
JsonPointerFormat = AnyTypeSchema

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MaximumValidation( class MaximumValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_maximum=3.0, inclusive_maximum=3.0,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MaximumValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MaximumValidation': ) -> 'MaximumValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MaximumValidationWithUnsignedInteger( class MaximumValidationWithUnsignedInteger(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_maximum=300, inclusive_maximum=300,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MaximumValidationWithUnsignedInteger(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MaximumValidationWithUnsignedInteger': ) -> 'MaximumValidationWithUnsignedInteger':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MaxitemsValidation( class MaxitemsValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
max_items=2, max_items=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MaxitemsValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MaxitemsValidation': ) -> 'MaxitemsValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MaxlengthValidation( class MaxlengthValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
max_length=2, max_length=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MaxlengthValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MaxlengthValidation': ) -> 'MaxlengthValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class Maxproperties0MeansTheObjectIsEmpty( class Maxproperties0MeansTheObjectIsEmpty(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
max_properties=0, max_properties=0,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class Maxproperties0MeansTheObjectIsEmpty(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'Maxproperties0MeansTheObjectIsEmpty': ) -> 'Maxproperties0MeansTheObjectIsEmpty':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MaxpropertiesValidation( class MaxpropertiesValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
max_properties=2, max_properties=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MaxpropertiesValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MaxpropertiesValidation': ) -> 'MaxpropertiesValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MinimumValidation( class MinimumValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_minimum=1.1, inclusive_minimum=1.1,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MinimumValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MinimumValidation': ) -> 'MinimumValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MinimumValidationWithSignedInteger( class MinimumValidationWithSignedInteger(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_minimum=-2, inclusive_minimum=-2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MinimumValidationWithSignedInteger(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MinimumValidationWithSignedInteger': ) -> 'MinimumValidationWithSignedInteger':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MinitemsValidation( class MinitemsValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
min_items=1, min_items=1,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MinitemsValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MinitemsValidation': ) -> 'MinitemsValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MinlengthValidation( class MinlengthValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
min_length=2, min_length=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MinlengthValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MinlengthValidation': ) -> 'MinlengthValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class MinpropertiesValidation( class MinpropertiesValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
min_properties=1, min_properties=1,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class MinpropertiesValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'MinpropertiesValidation': ) -> 'MinpropertiesValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class ModelNot( class ModelNot(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,7 +43,7 @@ class ModelNot(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
not_schema = IntSchema not_schema = schemas.IntSchema
return { return {
'allOf': [ 'allOf': [
], ],
@ -103,8 +58,8 @@ class ModelNot(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'ModelNot': ) -> 'ModelNot':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class NestedAllofToCheckValidationSemantics( class NestedAllofToCheckValidationSemantics(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,7 +46,7 @@ class NestedAllofToCheckValidationSemantics(
class all_of_0( class all_of_0(
ComposedSchema schemas.ComposedSchema
): ):
@classmethod @classmethod
@ -105,7 +60,7 @@ class NestedAllofToCheckValidationSemantics(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
all_of_0 = NoneSchema all_of_0 = schemas.NoneSchema
return { return {
'allOf': [ 'allOf': [
all_of_0, all_of_0,
@ -121,8 +76,8 @@ class NestedAllofToCheckValidationSemantics(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'all_of_0': ) -> 'all_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -145,8 +100,8 @@ class NestedAllofToCheckValidationSemantics(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'NestedAllofToCheckValidationSemantics': ) -> 'NestedAllofToCheckValidationSemantics':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class NestedAnyofToCheckValidationSemantics( class NestedAnyofToCheckValidationSemantics(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,7 +46,7 @@ class NestedAnyofToCheckValidationSemantics(
class any_of_0( class any_of_0(
ComposedSchema schemas.ComposedSchema
): ):
@classmethod @classmethod
@ -105,7 +60,7 @@ class NestedAnyofToCheckValidationSemantics(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
any_of_0 = NoneSchema any_of_0 = schemas.NoneSchema
return { return {
'allOf': [ 'allOf': [
], ],
@ -121,8 +76,8 @@ class NestedAnyofToCheckValidationSemantics(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'any_of_0': ) -> 'any_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -145,8 +100,8 @@ class NestedAnyofToCheckValidationSemantics(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'NestedAnyofToCheckValidationSemantics': ) -> 'NestedAnyofToCheckValidationSemantics':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class NestedItems( class NestedItems(
ListSchema schemas.ListSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -79,16 +34,16 @@ class NestedItems(
class _items( class _items(
ListSchema schemas.ListSchema
): ):
class _items( class _items(
ListSchema schemas.ListSchema
): ):
class _items( class _items(
ListSchema schemas.ListSchema
): ):
_items = NumberSchema _items = schemas.NumberSchema

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class NestedOneofToCheckValidationSemantics( class NestedOneofToCheckValidationSemantics(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,7 +46,7 @@ class NestedOneofToCheckValidationSemantics(
class one_of_0( class one_of_0(
ComposedSchema schemas.ComposedSchema
): ):
@classmethod @classmethod
@ -105,7 +60,7 @@ class NestedOneofToCheckValidationSemantics(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
one_of_0 = NoneSchema one_of_0 = schemas.NoneSchema
return { return {
'allOf': [ 'allOf': [
], ],
@ -121,8 +76,8 @@ class NestedOneofToCheckValidationSemantics(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_0': ) -> 'one_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -145,8 +100,8 @@ class NestedOneofToCheckValidationSemantics(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'NestedOneofToCheckValidationSemantics': ) -> 'NestedOneofToCheckValidationSemantics':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class NotMoreComplexSchema( class NotMoreComplexSchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,17 +46,17 @@ class NotMoreComplexSchema(
class not_schema( class not_schema(
DictSchema schemas.DictSchema
): ):
foo = StrSchema foo = schemas.StrSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'not_schema': ) -> 'not_schema':
return super().__new__( return super().__new__(
cls, cls,
@ -124,8 +79,8 @@ class NotMoreComplexSchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'NotMoreComplexSchema': ) -> 'NotMoreComplexSchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class NulCharactersInStrings( class NulCharactersInStrings(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
"hello\x00there": "HELLOTHERE", "hello\x00there": "HELLOTHERE",
} }
), ),
StrSchema schemas.StrSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
NullTypeMatchesOnlyTheNullObject = NoneSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, NumberTypeMatchesNumbers = schemas.NumberSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
NumberTypeMatchesNumbers = NumberSchema

View File

@ -20,72 +20,27 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class ObjectPropertiesValidation( class ObjectPropertiesValidation(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
foo = IntSchema foo = schemas.IntSchema
bar = StrSchema bar = schemas.StrSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
bar: typing.Union[bar, Unset] = unset, bar: typing.Union[bar, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'ObjectPropertiesValidation': ) -> 'ObjectPropertiesValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class Oneof( class Oneof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,21 +43,21 @@ class Oneof(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
one_of_0 = IntSchema one_of_0 = schemas.IntSchema
class one_of_1( class one_of_1(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_minimum=2, inclusive_minimum=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_1': ) -> 'one_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -126,8 +81,8 @@ class Oneof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'Oneof': ) -> 'Oneof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class OneofComplexTypes( class OneofComplexTypes(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -91,19 +46,19 @@ class OneofComplexTypes(
class one_of_0( class one_of_0(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"bar", "bar",
} }
bar = IntSchema bar = schemas.IntSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
bar: bar, bar: bar,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_0': ) -> 'one_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -115,19 +70,19 @@ class OneofComplexTypes(
class one_of_1( class one_of_1(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"foo", "foo",
} }
foo = StrSchema foo = schemas.StrSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: foo, foo: foo,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_1': ) -> 'one_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -152,8 +107,8 @@ class OneofComplexTypes(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'OneofComplexTypes': ) -> 'OneofComplexTypes':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,57 +20,12 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class OneofWithBaseSchema( class OneofWithBaseSchema(
ComposedBase, schemas.ComposedBase,
StrSchema schemas.StrSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -92,17 +47,17 @@ class OneofWithBaseSchema(
class one_of_0( class one_of_0(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
min_length=2, min_length=2,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_0': ) -> 'one_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -113,17 +68,17 @@ class OneofWithBaseSchema(
class one_of_1( class one_of_1(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
max_length=4, max_length=4,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_1': ) -> 'one_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -147,7 +102,7 @@ class OneofWithBaseSchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[str, ], *args: typing.Union[str, ],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
) -> 'OneofWithBaseSchema': ) -> 'OneofWithBaseSchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class OneofWithEmptySchema( class OneofWithEmptySchema(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,8 +43,8 @@ class OneofWithEmptySchema(
# code would be run when this module is imported, and these composed # code would be run when this module is imported, and these composed
# classes don't exist yet because their module has not finished # classes don't exist yet because their module has not finished
# loading # loading
one_of_0 = NumberSchema one_of_0 = schemas.NumberSchema
one_of_1 = AnyTypeSchema one_of_1 = schemas.AnyTypeSchema
return { return {
'allOf': [ 'allOf': [
], ],
@ -106,8 +61,8 @@ class OneofWithEmptySchema(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'OneofWithEmptySchema': ) -> 'OneofWithEmptySchema':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,57 +20,12 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class OneofWithRequired( class OneofWithRequired(
ComposedBase, schemas.ComposedBase,
DictSchema schemas.DictSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -92,7 +47,7 @@ class OneofWithRequired(
class one_of_0( class one_of_0(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"bar", "bar",
@ -102,8 +57,8 @@ class OneofWithRequired(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_0': ) -> 'one_of_0':
return super().__new__( return super().__new__(
cls, cls,
@ -114,7 +69,7 @@ class OneofWithRequired(
class one_of_1( class one_of_1(
AnyTypeSchema schemas.AnyTypeSchema
): ):
_required_property_names = { _required_property_names = {
"foo", "foo",
@ -124,8 +79,8 @@ class OneofWithRequired(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'one_of_1': ) -> 'one_of_1':
return super().__new__( return super().__new__(
cls, cls,
@ -149,8 +104,8 @@ class OneofWithRequired(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'OneofWithRequired': ) -> 'OneofWithRequired':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class PatternIsNotAnchored( class PatternIsNotAnchored(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
regex=[{ regex=[{
'pattern': r'a+', # noqa: E501 'pattern': r'a+', # noqa: E501
}], }],
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -85,8 +40,8 @@ class PatternIsNotAnchored(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'PatternIsNotAnchored': ) -> 'PatternIsNotAnchored':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,61 +20,16 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class PatternValidation( class PatternValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
regex=[{ regex=[{
'pattern': r'^a*$', # noqa: E501 'pattern': r'^a*$', # noqa: E501
}], }],
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -85,8 +40,8 @@ class PatternValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'PatternValidation': ) -> 'PatternValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,63 +20,18 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class PropertiesWithEscapedCharacters( class PropertiesWithEscapedCharacters(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
foobar = NumberSchema foobar = schemas.NumberSchema
locals()["foo\nbar"] = foobar locals()["foo\nbar"] = foobar
del locals()['foobar'] del locals()['foobar']
""" """
@ -89,7 +44,7 @@ class PropertiesWithEscapedCharacters(
- _from_openapi_data these are passed in in a dict in the first positional argument *arg - _from_openapi_data these are passed in in a dict in the first positional argument *arg
If the property is required and was not passed in, an exception will be thrown If the property is required and was not passed in, an exception will be thrown
""" """
foobar = NumberSchema foobar = schemas.NumberSchema
locals()["foo\"bar"] = foobar locals()["foo\"bar"] = foobar
del locals()['foobar'] del locals()['foobar']
""" """
@ -102,7 +57,7 @@ class PropertiesWithEscapedCharacters(
- _from_openapi_data these are passed in in a dict in the first positional argument *arg - _from_openapi_data these are passed in in a dict in the first positional argument *arg
If the property is required and was not passed in, an exception will be thrown If the property is required and was not passed in, an exception will be thrown
""" """
foo_bar = NumberSchema foo_bar = schemas.NumberSchema
locals()["foo\\bar"] = foo_bar locals()["foo\\bar"] = foo_bar
del locals()['foo_bar'] del locals()['foo_bar']
""" """
@ -115,7 +70,7 @@ class PropertiesWithEscapedCharacters(
- _from_openapi_data these are passed in in a dict in the first positional argument *arg - _from_openapi_data these are passed in in a dict in the first positional argument *arg
If the property is required and was not passed in, an exception will be thrown If the property is required and was not passed in, an exception will be thrown
""" """
foobar = NumberSchema foobar = schemas.NumberSchema
locals()["foo\rbar"] = foobar locals()["foo\rbar"] = foobar
del locals()['foobar'] del locals()['foobar']
""" """
@ -128,7 +83,7 @@ class PropertiesWithEscapedCharacters(
- _from_openapi_data these are passed in in a dict in the first positional argument *arg - _from_openapi_data these are passed in in a dict in the first positional argument *arg
If the property is required and was not passed in, an exception will be thrown If the property is required and was not passed in, an exception will be thrown
""" """
foobar = NumberSchema foobar = schemas.NumberSchema
locals()["foo\tbar"] = foobar locals()["foo\tbar"] = foobar
del locals()['foobar'] del locals()['foobar']
""" """
@ -141,7 +96,7 @@ class PropertiesWithEscapedCharacters(
- _from_openapi_data these are passed in in a dict in the first positional argument *arg - _from_openapi_data these are passed in in a dict in the first positional argument *arg
If the property is required and was not passed in, an exception will be thrown If the property is required and was not passed in, an exception will be thrown
""" """
foobar = NumberSchema foobar = schemas.NumberSchema
locals()["foo\fbar"] = foobar locals()["foo\fbar"] = foobar
del locals()['foobar'] del locals()['foobar']
""" """
@ -158,8 +113,8 @@ class PropertiesWithEscapedCharacters(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'PropertiesWithEscapedCharacters': ) -> 'PropertiesWithEscapedCharacters':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,63 +20,18 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class PropertyNamedRefThatIsNotAReference( class PropertyNamedRefThatIsNotAReference(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
ref = StrSchema ref = schemas.StrSchema
locals()["$ref"] = ref locals()["$ref"] = ref
del locals()['ref'] del locals()['ref']
""" """
@ -93,8 +48,8 @@ class PropertyNamedRefThatIsNotAReference(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'PropertyNamedRefThatIsNotAReference': ) -> 'PropertyNamedRefThatIsNotAReference':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInAdditionalproperties( class RefInAdditionalproperties(
DictSchema schemas.DictSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -86,8 +41,8 @@ class RefInAdditionalproperties(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RefInAdditionalproperties': ) -> 'RefInAdditionalproperties':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInAllof( class RefInAllof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -103,8 +58,8 @@ class RefInAllof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RefInAllof': ) -> 'RefInAllof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInAnyof( class RefInAnyof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -103,8 +58,8 @@ class RefInAnyof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RefInAnyof': ) -> 'RefInAnyof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInItems( class RefInItems(
ListSchema schemas.ListSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInNot( class RefInNot(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -102,8 +57,8 @@ class RefInNot(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RefInNot': ) -> 'RefInNot':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInOneof( class RefInOneof(
ComposedSchema schemas.ComposedSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -103,8 +58,8 @@ class RefInOneof(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RefInOneof': ) -> 'RefInOneof':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RefInProperty( class RefInProperty(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -85,9 +40,9 @@ class RefInProperty(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
a: typing.Union['PropertyNamedRefThatIsNotAReference', Unset] = unset, a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RefInProperty': ) -> 'RefInProperty':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,70 +20,25 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RequiredDefaultValidation( class RequiredDefaultValidation(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
foo = AnyTypeSchema foo = schemas.AnyTypeSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RequiredDefaultValidation': ) -> 'RequiredDefaultValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RequiredValidation( class RequiredValidation(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -79,16 +34,16 @@ class RequiredValidation(
_required_property_names = { _required_property_names = {
"foo", "foo",
} }
foo = AnyTypeSchema foo = schemas.AnyTypeSchema
bar = AnyTypeSchema bar = schemas.AnyTypeSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: foo, foo: foo,
bar: typing.Union[bar, Unset] = unset, bar: typing.Union[bar, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RequiredValidation': ) -> 'RequiredValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,70 +20,25 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RequiredWithEmptyArray( class RequiredWithEmptyArray(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """
foo = AnyTypeSchema foo = schemas.AnyTypeSchema
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
foo: typing.Union[foo, Unset] = unset, foo: typing.Union[foo, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RequiredWithEmptyArray': ) -> 'RequiredWithEmptyArray':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class RequiredWithEscapedCharacters( class RequiredWithEscapedCharacters(
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -88,8 +43,8 @@ class RequiredWithEscapedCharacters(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'RequiredWithEscapedCharacters': ) -> 'RequiredWithEscapedCharacters':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,63 +20,18 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class SimpleEnumValidation( class SimpleEnumValidation(
_SchemaEnumMaker( schemas.SchemaEnumMakerClsFactory(
enum_value_to_name={ enum_value_to_name={
1: "POSITIVE_1", 1: "POSITIVE_1",
2: "POSITIVE_2", 2: "POSITIVE_2",
3: "POSITIVE_3", 3: "POSITIVE_3",
} }
), ),
NumberSchema schemas.NumberSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, StringTypeMatchesStrings = schemas.StrSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
StringTypeMatchesStrings = StrSchema

View File

@ -20,56 +20,11 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
DictSchema schemas.DictSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -79,10 +34,10 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
class alpha( class alpha(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
inclusive_maximum=3, inclusive_maximum=3,
), ),
NumberSchema schemas.NumberSchema
): ):
pass pass
@ -90,9 +45,9 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, ], *args: typing.Union[dict, frozendict, ],
alpha: typing.Union[alpha, Unset] = unset, alpha: typing.Union[alpha, schemas.Unset] = schemas.unset,
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing': ) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,58 +20,13 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class UniqueitemsFalseValidation( class UniqueitemsFalseValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -82,8 +37,8 @@ class UniqueitemsFalseValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'UniqueitemsFalseValidation': ) -> 'UniqueitemsFalseValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,59 +20,14 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema,
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
class UniqueitemsValidation( class UniqueitemsValidation(
_SchemaValidator( schemas.SchemaValidatorClsFactory(
unique_items=True, unique_items=True,
), ),
AnyTypeSchema schemas.AnyTypeSchema
): ):
"""NOTE: This class is auto generated by OpenAPI Generator. """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
@ -83,8 +38,8 @@ class UniqueitemsValidation(
def __new__( def __new__(
cls, cls,
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
_configuration: typing.Optional[Configuration] = None, _configuration: typing.Optional[schemas.Configuration] = None,
**kwargs: typing.Type[Schema], **kwargs: typing.Type[schemas.Schema],
) -> 'UniqueitemsValidation': ) -> 'UniqueitemsValidation':
return super().__new__( return super().__new__(
cls, cls,

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, UriFormat = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
UriFormat = AnyTypeSchema

View File

@ -20,50 +20,5 @@ import decimal # noqa: F401
from datetime import date, datetime # noqa: F401 from datetime import date, datetime # noqa: F401
from frozendict import frozendict # noqa: F401 from frozendict import frozendict # noqa: F401
from unit_test_api.schemas import ( # noqa: F401 from unit_test_api import schemas # noqa: F401
AnyTypeSchema, UriReferenceFormat = schemas.AnyTypeSchema
ComposedSchema,
DictSchema,
ListSchema,
StrSchema,
IntSchema,
Int32Schema,
Int64Schema,
Float32Schema,
Float64Schema,
NumberSchema,
UUIDSchema,
DateSchema,
DateTimeSchema,
DecimalSchema,
BoolSchema,
BinarySchema,
NoneSchema,
none_type,
Configuration,
Unset,
unset,
ComposedBase,
ListBase,
DictBase,
NoneBase,
StrBase,
IntBase,
Int32Base,
Int64Base,
Float32Base,
Float64Base,
NumberBase,
UUIDBase,
DateBase,
DateTimeBase,
BoolBase,
BinaryBase,
Schema,
NoneClass,
BoolClass,
_SchemaValidator,
_SchemaTypeChecker,
_SchemaEnumMaker
)
UriReferenceFormat = AnyTypeSchema

Some files were not shown because too many files have changed in this diff Show More