forked from loafle/openapi-generator-original
[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:
parent
52eb13f662
commit
640010ad38
@ -1304,9 +1304,9 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
|
||||
return value;
|
||||
} else if ("bool".equals(datatype)) {
|
||||
if (value.equals("true")) {
|
||||
return "BoolClass.TRUE";
|
||||
return "schemas.BoolClass.TRUE";
|
||||
}
|
||||
return "BoolClass.FALSE";
|
||||
return "schemas.BoolClass.FALSE";
|
||||
} else {
|
||||
String fixedValue = (String) processTestExampleData(value);
|
||||
return ensureQuotes(fixedValue);
|
||||
|
@ -289,7 +289,7 @@ class ApiResponseFor{{code}}(api_client.ApiResponse):
|
||||
{{#if this.schema}}
|
||||
{{this.schema.baseName}},
|
||||
{{else}}
|
||||
Unset,
|
||||
schemas.Unset,
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
]
|
||||
@ -298,25 +298,25 @@ class ApiResponseFor{{code}}(api_client.ApiResponse):
|
||||
{{#or responseHeaders content}}
|
||||
{{#if responseHeaders}}
|
||||
headers: ResponseHeadersFor{{code}}
|
||||
body: Unset = unset
|
||||
body: schemas.Unset = schemas.unset
|
||||
{{else}}
|
||||
body: typing.Union[
|
||||
{{#each content}}
|
||||
{{#if this.schema}}
|
||||
{{this.schema.baseName}},
|
||||
{{else}}
|
||||
Unset,
|
||||
schemas.Unset,
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
]
|
||||
headers: Unset = unset
|
||||
headers: schemas.Unset = schemas.unset
|
||||
{{/if}}
|
||||
{{/or}}
|
||||
{{/and}}
|
||||
{{#unless responseHeaders}}
|
||||
{{#unless content}}
|
||||
body: Unset = unset
|
||||
headers: Unset = unset
|
||||
body: schemas.Unset = schemas.unset
|
||||
headers: schemas.Unset = schemas.unset
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
|
||||
@ -400,8 +400,8 @@ class BaseApi(api_client.Api):
|
||||
request_path_{{paramName}},
|
||||
{{/each}}
|
||||
):
|
||||
parameter_data = path_params.get(parameter.name, unset)
|
||||
if parameter_data is unset:
|
||||
parameter_data = path_params.get(parameter.name, schemas.unset)
|
||||
if parameter_data is schemas.unset:
|
||||
continue
|
||||
serialized_data = parameter.serialize(parameter_data)
|
||||
_path_params.update(serialized_data)
|
||||
@ -417,8 +417,8 @@ class BaseApi(api_client.Api):
|
||||
request_query_{{paramName}},
|
||||
{{/each}}
|
||||
):
|
||||
parameter_data = query_params.get(parameter.name, unset)
|
||||
if parameter_data is unset:
|
||||
parameter_data = query_params.get(parameter.name, schemas.unset)
|
||||
if parameter_data is schemas.unset:
|
||||
continue
|
||||
if prefix_separator_iterator is None:
|
||||
prefix_separator_iterator = parameter.get_prefix_separator_iterator()
|
||||
@ -437,8 +437,8 @@ class BaseApi(api_client.Api):
|
||||
request_header_{{paramName}},
|
||||
{{/each}}
|
||||
):
|
||||
parameter_data = header_params.get(parameter.name, unset)
|
||||
if parameter_data is unset:
|
||||
parameter_data = header_params.get(parameter.name, schemas.unset)
|
||||
if parameter_data is schemas.unset:
|
||||
continue
|
||||
serialized_data = parameter.serialize(parameter_data)
|
||||
_headers.extend(serialized_data)
|
||||
@ -452,7 +452,7 @@ class BaseApi(api_client.Api):
|
||||
{{#with bodyParam}}
|
||||
|
||||
{{#if required}}
|
||||
if body is unset:
|
||||
if body is schemas.unset:
|
||||
raise exceptions.ApiValueError(
|
||||
'The required body parameter has an invalid value of: unset. Set a valid value instead')
|
||||
{{/if}}
|
||||
@ -461,7 +461,7 @@ class BaseApi(api_client.Api):
|
||||
{{#if required}}
|
||||
{{> endpoint_body_serialization }}
|
||||
{{else}}
|
||||
if body is not unset:
|
||||
if body is not schemas.unset:
|
||||
{{> endpoint_body_serialization }}
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
|
@ -1,7 +1,7 @@
|
||||
self: {{selfType}},
|
||||
{{#if 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}}
|
||||
{{/if}}
|
||||
{{#if queryParams}}
|
||||
|
@ -1,7 +1,7 @@
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
{{#if isNull}}
|
||||
NoneClass.NONE: "NONE",
|
||||
schemas.NoneClass.NONE: "NONE",
|
||||
{{/if}}
|
||||
{{#with allowableValues}}
|
||||
{{#each enumVars}}
|
||||
|
@ -2,49 +2,4 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from {{packageName}}.schemas import ( # 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
|
||||
)
|
||||
from {{packageName}} import schemas # noqa: F401
|
||||
|
@ -16,17 +16,17 @@ def __new__(
|
||||
{{#unless nameInSnakeCase}}
|
||||
{{#unless getRequired}}
|
||||
{{#unless complexType}}
|
||||
{{baseName}}: typing.Union[{{baseName}}, Unset] = unset,
|
||||
{{baseName}}: typing.Union[{{baseName}}, schemas.Unset] = schemas.unset,
|
||||
{{/unless}}
|
||||
{{#if complexType}}
|
||||
{{baseName}}: typing.Union['{{complexType}}', Unset] = unset,
|
||||
{{baseName}}: typing.Union['{{complexType}}', schemas.Unset] = schemas.unset,
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
{{#with additionalProperties}}
|
||||
**kwargs: typing.Type[Schema],
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
{{/with}}
|
||||
) -> '{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}}':
|
||||
return super().__new__(
|
||||
|
@ -6,16 +6,16 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
|
||||
{{/if}}
|
||||
{{#if getIsAnyType}}
|
||||
{{#if composedSchemas}}
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
{{else}}
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#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 composedSchemas}}
|
||||
ComposedBase,
|
||||
schemas.ComposedBase,
|
||||
{{/if}}
|
||||
{{#if isEnum}}
|
||||
{{> model_templates/enum_value_to_name }}
|
||||
|
@ -4,7 +4,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
|
||||
{{#if hasValidation}}
|
||||
{{> model_templates/validations }}
|
||||
{{/if}}
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
{{#if this.classname}}
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
|
@ -4,7 +4,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
|
||||
{{#if hasValidation}}
|
||||
{{> model_templates/validations }}
|
||||
{{/if}}
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
{{#if this.classname}}
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
|
@ -1,4 +1,4 @@
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
{{#if getUniqueItems}}
|
||||
unique_items=True,
|
||||
{{/if}}
|
||||
|
@ -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}}
|
||||
|
@ -1,54 +1,54 @@
|
||||
{{#if isArray}}
|
||||
List{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.List{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isMap}}
|
||||
Dict{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Dict{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isString}}
|
||||
Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isByteArray}}
|
||||
Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isUnboundedInteger}}
|
||||
Int{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Int{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isNumber}}
|
||||
Number{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Number{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#isShort}}
|
||||
Int32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Int32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/isShort}}
|
||||
{{#isLong}}
|
||||
Int64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Int64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/isLong}}
|
||||
{{#isFloat}}
|
||||
Float32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Float32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/isFloat}}
|
||||
{{#isDouble}}
|
||||
Float64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Float64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/isDouble}}
|
||||
{{#if getIsUuid}}
|
||||
UUID{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.UUID{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isDate}}
|
||||
Date{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Date{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isDateTime}}
|
||||
DateTime{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.DateTime{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isDecimal}}
|
||||
Decimal{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Decimal{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isBoolean}}
|
||||
Bool{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Bool{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isBinary}}
|
||||
Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if isNull}}
|
||||
None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if getHasMultipleTypes}}
|
||||
Schema
|
||||
schemas.Schema
|
||||
{{/if}}
|
||||
|
@ -7,9 +7,7 @@ from datetime import date, datetime, timedelta # noqa: F401
|
||||
import functools
|
||||
import decimal
|
||||
import io
|
||||
import os
|
||||
import re
|
||||
import tempfile
|
||||
import typing
|
||||
import uuid
|
||||
|
||||
@ -439,7 +437,7 @@ class Validator(typing.Protocol):
|
||||
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):
|
||||
@classmethod
|
||||
def _validate(
|
||||
@ -457,7 +455,7 @@ def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, li
|
||||
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:
|
||||
union_classes = typing.get_args(union_type_cls)
|
||||
else:
|
||||
@ -556,7 +554,7 @@ class EnumMakerInterface(Validator):
|
||||
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):
|
||||
@classmethod
|
||||
@property
|
||||
@ -1726,7 +1724,7 @@ class ComposedBase(Discriminable):
|
||||
|
||||
# DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase
|
||||
class ComposedSchema(
|
||||
_SchemaTypeChecker(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]),
|
||||
ComposedBase,
|
||||
DictBase,
|
||||
ListBase,
|
||||
@ -1750,7 +1748,7 @@ class ComposedSchema(
|
||||
|
||||
|
||||
class ListSchema(
|
||||
_SchemaTypeChecker(typing.Union[tuple]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[tuple]),
|
||||
ListBase,
|
||||
Schema
|
||||
):
|
||||
@ -1764,7 +1762,7 @@ class ListSchema(
|
||||
|
||||
|
||||
class NoneSchema(
|
||||
_SchemaTypeChecker(typing.Union[NoneClass]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[NoneClass]),
|
||||
NoneBase,
|
||||
Schema
|
||||
):
|
||||
@ -1778,7 +1776,7 @@ class NoneSchema(
|
||||
|
||||
|
||||
class NumberSchema(
|
||||
_SchemaTypeChecker(typing.Union[decimal.Decimal]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[decimal.Decimal]),
|
||||
NumberBase,
|
||||
Schema
|
||||
):
|
||||
@ -1839,7 +1837,7 @@ class IntSchema(IntBase, NumberSchema):
|
||||
|
||||
|
||||
class Int32Base(
|
||||
_SchemaValidator(
|
||||
SchemaValidatorClsFactory(
|
||||
inclusive_minimum=decimal.Decimal(-2147483648),
|
||||
inclusive_maximum=decimal.Decimal(2147483647)
|
||||
),
|
||||
@ -1855,7 +1853,7 @@ class Int32Schema(
|
||||
|
||||
|
||||
class Int64Base(
|
||||
_SchemaValidator(
|
||||
SchemaValidatorClsFactory(
|
||||
inclusive_minimum=decimal.Decimal(-9223372036854775808),
|
||||
inclusive_maximum=decimal.Decimal(9223372036854775807)
|
||||
),
|
||||
@ -1871,7 +1869,7 @@ class Int64Schema(
|
||||
|
||||
|
||||
class Float32Base(
|
||||
_SchemaValidator(
|
||||
SchemaValidatorClsFactory(
|
||||
inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38),
|
||||
inclusive_maximum=decimal.Decimal(3.4028234663852886e+38)
|
||||
),
|
||||
@ -1891,7 +1889,7 @@ class Float32Schema(
|
||||
|
||||
|
||||
class Float64Base(
|
||||
_SchemaValidator(
|
||||
SchemaValidatorClsFactory(
|
||||
inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308),
|
||||
inclusive_maximum=decimal.Decimal(1.7976931348623157E+308)
|
||||
),
|
||||
@ -1911,7 +1909,7 @@ class Float64Schema(
|
||||
|
||||
|
||||
class StrSchema(
|
||||
_SchemaTypeChecker(typing.Union[str]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[str]),
|
||||
StrBase,
|
||||
Schema
|
||||
):
|
||||
@ -1963,7 +1961,7 @@ class DecimalSchema(DecimalBase, StrSchema):
|
||||
|
||||
|
||||
class BytesSchema(
|
||||
_SchemaTypeChecker(typing.Union[bytes]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[bytes]),
|
||||
Schema,
|
||||
):
|
||||
"""
|
||||
@ -1974,7 +1972,7 @@ class BytesSchema(
|
||||
|
||||
|
||||
class FileSchema(
|
||||
_SchemaTypeChecker(typing.Union[FileIO]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[FileIO]),
|
||||
Schema,
|
||||
):
|
||||
"""
|
||||
@ -2003,7 +2001,7 @@ class BinaryBase:
|
||||
|
||||
|
||||
class BinarySchema(
|
||||
_SchemaTypeChecker(typing.Union[bytes, FileIO]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[bytes, FileIO]),
|
||||
ComposedBase,
|
||||
BinaryBase,
|
||||
Schema,
|
||||
@ -2035,7 +2033,7 @@ class BinarySchema(
|
||||
|
||||
|
||||
class BoolSchema(
|
||||
_SchemaTypeChecker(typing.Union[BoolClass]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[BoolClass]),
|
||||
BoolBase,
|
||||
Schema
|
||||
):
|
||||
@ -2049,7 +2047,7 @@ class BoolSchema(
|
||||
|
||||
|
||||
class AnyTypeSchema(
|
||||
_SchemaTypeChecker(
|
||||
SchemaTypeCheckerClsFactory(
|
||||
typing.Union[frozendict, tuple, decimal.Decimal, str, BoolClass, NoneClass, bytes, FileIO]
|
||||
),
|
||||
DictBase,
|
||||
@ -2064,7 +2062,7 @@ class AnyTypeSchema(
|
||||
|
||||
|
||||
class DictSchema(
|
||||
_SchemaTypeChecker(typing.Union[frozendict]),
|
||||
SchemaTypeCheckerClsFactory(typing.Union[frozendict]),
|
||||
DictBase,
|
||||
Schema
|
||||
):
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
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)
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
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)
|
||||
|
||||
|
@ -20,74 +20,29 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AdditionalpropertiesAllowsASchemaWhichShouldValidate(
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
foo = AnyTypeSchema
|
||||
bar = AnyTypeSchema
|
||||
_additional_properties = BoolSchema
|
||||
foo = schemas.AnyTypeSchema
|
||||
bar = schemas.AnyTypeSchema
|
||||
_additional_properties = schemas.BoolSchema
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
bar: typing.Union[bar, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
bar: typing.Union[bar, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,72 +20,27 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AdditionalpropertiesAreAllowedByDefault(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
foo = AnyTypeSchema
|
||||
bar = AnyTypeSchema
|
||||
foo = schemas.AnyTypeSchema
|
||||
bar = schemas.AnyTypeSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
bar: typing.Union[bar, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
bar: typing.Union[bar, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AdditionalpropertiesAreAllowedByDefault':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,70 +20,25 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AdditionalpropertiesCanExistByItself(
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
_additional_properties = BoolSchema
|
||||
_additional_properties = schemas.BoolSchema
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AdditionalpropertiesCanExistByItself':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,63 +20,18 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AdditionalpropertiesShouldNotLookInApplicators(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
_additional_properties = BoolSchema
|
||||
_additional_properties = schemas.BoolSchema
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@ -92,16 +47,16 @@ class AdditionalpropertiesShouldNotLookInApplicators(
|
||||
|
||||
|
||||
class all_of_0(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
foo = AnyTypeSchema
|
||||
foo = schemas.AnyTypeSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -125,8 +80,8 @@ class AdditionalpropertiesShouldNotLookInApplicators(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AdditionalpropertiesShouldNotLookInApplicators':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class Allof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,19 +46,19 @@ class Allof(
|
||||
|
||||
|
||||
class all_of_0(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"bar",
|
||||
}
|
||||
bar = IntSchema
|
||||
bar = schemas.IntSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
bar: bar,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -115,19 +70,19 @@ class Allof(
|
||||
|
||||
|
||||
class all_of_1(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"foo",
|
||||
}
|
||||
foo = StrSchema
|
||||
foo = schemas.StrSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: foo,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -152,8 +107,8 @@ class Allof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'Allof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofCombinedWithAnyofOneof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,17 +46,17 @@ class AllofCombinedWithAnyofOneof(
|
||||
|
||||
|
||||
class all_of_0(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -112,17 +67,17 @@ class AllofCombinedWithAnyofOneof(
|
||||
|
||||
|
||||
class one_of_0(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=5,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -133,17 +88,17 @@ class AllofCombinedWithAnyofOneof(
|
||||
|
||||
|
||||
class any_of_0(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=3,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -168,8 +123,8 @@ class AllofCombinedWithAnyofOneof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofCombinedWithAnyofOneof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofSimpleTypes(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,17 +46,17 @@ class AllofSimpleTypes(
|
||||
|
||||
|
||||
class all_of_0(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_maximum=30,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -112,17 +67,17 @@ class AllofSimpleTypes(
|
||||
|
||||
|
||||
class all_of_1(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_minimum=20,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -146,8 +101,8 @@ class AllofSimpleTypes(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofSimpleTypes':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofWithBaseSchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -79,7 +34,7 @@ class AllofWithBaseSchema(
|
||||
_required_property_names = {
|
||||
"bar",
|
||||
}
|
||||
bar = IntSchema
|
||||
bar = schemas.IntSchema
|
||||
|
||||
@classmethod
|
||||
@property
|
||||
@ -95,19 +50,19 @@ class AllofWithBaseSchema(
|
||||
|
||||
|
||||
class all_of_0(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"foo",
|
||||
}
|
||||
foo = StrSchema
|
||||
foo = schemas.StrSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: foo,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -119,19 +74,19 @@ class AllofWithBaseSchema(
|
||||
|
||||
|
||||
class all_of_1(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"baz",
|
||||
}
|
||||
baz = NoneSchema
|
||||
baz = schemas.NoneSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
baz: baz,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -157,8 +112,8 @@ class AllofWithBaseSchema(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
bar: bar,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofWithBaseSchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofWithOneEmptySchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,7 +43,7 @@ class AllofWithOneEmptySchema(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
all_of_0 = AnyTypeSchema
|
||||
all_of_0 = schemas.AnyTypeSchema
|
||||
return {
|
||||
'allOf': [
|
||||
all_of_0,
|
||||
@ -104,8 +59,8 @@ class AllofWithOneEmptySchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofWithOneEmptySchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofWithTheFirstEmptySchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,8 +43,8 @@ class AllofWithTheFirstEmptySchema(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
all_of_0 = AnyTypeSchema
|
||||
all_of_1 = NumberSchema
|
||||
all_of_0 = schemas.AnyTypeSchema
|
||||
all_of_1 = schemas.NumberSchema
|
||||
return {
|
||||
'allOf': [
|
||||
all_of_0,
|
||||
@ -106,8 +61,8 @@ class AllofWithTheFirstEmptySchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofWithTheFirstEmptySchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofWithTheLastEmptySchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,8 +43,8 @@ class AllofWithTheLastEmptySchema(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
all_of_0 = NumberSchema
|
||||
all_of_1 = AnyTypeSchema
|
||||
all_of_0 = schemas.NumberSchema
|
||||
all_of_1 = schemas.AnyTypeSchema
|
||||
return {
|
||||
'allOf': [
|
||||
all_of_0,
|
||||
@ -106,8 +61,8 @@ class AllofWithTheLastEmptySchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofWithTheLastEmptySchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AllofWithTwoEmptySchemas(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,8 +43,8 @@ class AllofWithTwoEmptySchemas(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
all_of_0 = AnyTypeSchema
|
||||
all_of_1 = AnyTypeSchema
|
||||
all_of_0 = schemas.AnyTypeSchema
|
||||
all_of_1 = schemas.AnyTypeSchema
|
||||
return {
|
||||
'allOf': [
|
||||
all_of_0,
|
||||
@ -106,8 +61,8 @@ class AllofWithTwoEmptySchemas(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AllofWithTwoEmptySchemas':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class Anyof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,21 +43,21 @@ class Anyof(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
any_of_0 = IntSchema
|
||||
any_of_0 = schemas.IntSchema
|
||||
|
||||
|
||||
class any_of_1(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_minimum=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -126,8 +81,8 @@ class Anyof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'Anyof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AnyofComplexTypes(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,19 +46,19 @@ class AnyofComplexTypes(
|
||||
|
||||
|
||||
class any_of_0(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"bar",
|
||||
}
|
||||
bar = IntSchema
|
||||
bar = schemas.IntSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
bar: bar,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -115,19 +70,19 @@ class AnyofComplexTypes(
|
||||
|
||||
|
||||
class any_of_1(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"foo",
|
||||
}
|
||||
foo = StrSchema
|
||||
foo = schemas.StrSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: foo,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -152,8 +107,8 @@ class AnyofComplexTypes(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AnyofComplexTypes':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,57 +20,12 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AnyofWithBaseSchema(
|
||||
ComposedBase,
|
||||
StrSchema
|
||||
schemas.ComposedBase,
|
||||
schemas.StrSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -92,17 +47,17 @@ class AnyofWithBaseSchema(
|
||||
|
||||
|
||||
class any_of_0(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
max_length=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -113,17 +68,17 @@ class AnyofWithBaseSchema(
|
||||
|
||||
|
||||
class any_of_1(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
min_length=4,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -147,7 +102,7 @@ class AnyofWithBaseSchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[str, ],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
) -> 'AnyofWithBaseSchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class AnyofWithOneEmptySchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,8 +43,8 @@ class AnyofWithOneEmptySchema(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
any_of_0 = NumberSchema
|
||||
any_of_1 = AnyTypeSchema
|
||||
any_of_0 = schemas.NumberSchema
|
||||
any_of_1 = schemas.AnyTypeSchema
|
||||
return {
|
||||
'allOf': [
|
||||
],
|
||||
@ -106,8 +61,8 @@ class AnyofWithOneEmptySchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'AnyofWithOneEmptySchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,60 +20,15 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ArrayTypeMatchesArrays(
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
_items = AnyTypeSchema
|
||||
_items = schemas.AnyTypeSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
BooleanTypeMatchesBooleans = BoolSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
BooleanTypeMatchesBooleans = schemas.BoolSchema
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ByInt(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class ByInt(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'ByInt':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ByNumber(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=1.5,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class ByNumber(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'ByNumber':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class BySmallNumber(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=0.00010,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class BySmallNumber(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'BySmallNumber':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
DateTimeFormat = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
DateTimeFormat = schemas.AnyTypeSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
EmailFormat = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
EmailFormat = schemas.AnyTypeSchema
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class EnumWith0DoesNotMatchFalse(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
0: "POSITIVE_0",
|
||||
}
|
||||
),
|
||||
NumberSchema
|
||||
schemas.NumberSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class EnumWith1DoesNotMatchTrue(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
1: "POSITIVE_1",
|
||||
}
|
||||
),
|
||||
NumberSchema
|
||||
schemas.NumberSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,62 +20,17 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class EnumWithEscapedCharacters(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
"foo\nbar": "FOO_BAR",
|
||||
"foo\rbar": "FOO_BAR",
|
||||
}
|
||||
),
|
||||
StrSchema
|
||||
schemas.StrSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class EnumWithFalseDoesNotMatch0(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
BoolClass.FALSE: "FALSE",
|
||||
schemas.BoolClass.FALSE: "FALSE",
|
||||
}
|
||||
),
|
||||
BoolSchema
|
||||
schemas.BoolSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -85,4 +40,4 @@ class EnumWithFalseDoesNotMatch0(
|
||||
@classmethod
|
||||
@property
|
||||
def FALSE(cls):
|
||||
return cls(BoolClass.FALSE)
|
||||
return cls(schemas.BoolClass.FALSE)
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class EnumWithTrueDoesNotMatch1(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
BoolClass.TRUE: "TRUE",
|
||||
schemas.BoolClass.TRUE: "TRUE",
|
||||
}
|
||||
),
|
||||
BoolSchema
|
||||
schemas.BoolSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -85,4 +40,4 @@ class EnumWithTrueDoesNotMatch1(
|
||||
@classmethod
|
||||
@property
|
||||
def TRUE(cls):
|
||||
return cls(BoolClass.TRUE)
|
||||
return cls(schemas.BoolClass.TRUE)
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class EnumsInProperties(
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -82,12 +37,12 @@ class EnumsInProperties(
|
||||
|
||||
|
||||
class foo(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
"foo": "FOO",
|
||||
}
|
||||
),
|
||||
StrSchema
|
||||
schemas.StrSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@ -97,12 +52,12 @@ class EnumsInProperties(
|
||||
|
||||
|
||||
class bar(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
"bar": "BAR",
|
||||
}
|
||||
),
|
||||
StrSchema
|
||||
schemas.StrSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@ -115,9 +70,9 @@ class EnumsInProperties(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
bar: bar,
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'EnumsInProperties':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ForbiddenProperty(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -79,7 +34,7 @@ class ForbiddenProperty(
|
||||
|
||||
|
||||
class foo(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@ -93,7 +48,7 @@ class ForbiddenProperty(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
not_schema = AnyTypeSchema
|
||||
not_schema = schemas.AnyTypeSchema
|
||||
return {
|
||||
'allOf': [
|
||||
],
|
||||
@ -108,8 +63,8 @@ class ForbiddenProperty(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'foo':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -121,9 +76,9 @@ class ForbiddenProperty(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'ForbiddenProperty':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
HostnameFormat = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
HostnameFormat = schemas.AnyTypeSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
IntegerTypeMatchesIntegers = IntSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
IntegerTypeMatchesIntegers = schemas.IntSchema
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
multiple_of=0.123456789,
|
||||
),
|
||||
IntSchema
|
||||
schemas.IntSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class InvalidStringValueForDefault(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -79,19 +34,19 @@ class InvalidStringValueForDefault(
|
||||
|
||||
|
||||
class bar(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
min_length=4,
|
||||
),
|
||||
StrSchema
|
||||
schemas.StrSchema
|
||||
):
|
||||
pass
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
bar: typing.Union[bar, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
bar: typing.Union[bar, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'InvalidStringValueForDefault':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
Ipv4Format = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
Ipv4Format = schemas.AnyTypeSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
Ipv6Format = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
Ipv6Format = schemas.AnyTypeSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
JsonPointerFormat = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
JsonPointerFormat = schemas.AnyTypeSchema
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MaximumValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_maximum=3.0,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MaximumValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MaximumValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MaximumValidationWithUnsignedInteger(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_maximum=300,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MaximumValidationWithUnsignedInteger(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MaximumValidationWithUnsignedInteger':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MaxitemsValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
max_items=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MaxitemsValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MaxitemsValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MaxlengthValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
max_length=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MaxlengthValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MaxlengthValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class Maxproperties0MeansTheObjectIsEmpty(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
max_properties=0,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class Maxproperties0MeansTheObjectIsEmpty(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'Maxproperties0MeansTheObjectIsEmpty':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MaxpropertiesValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
max_properties=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MaxpropertiesValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MaxpropertiesValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MinimumValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_minimum=1.1,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MinimumValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MinimumValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MinimumValidationWithSignedInteger(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_minimum=-2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MinimumValidationWithSignedInteger(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MinimumValidationWithSignedInteger':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MinitemsValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
min_items=1,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MinitemsValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MinitemsValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MinlengthValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
min_length=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MinlengthValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MinlengthValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class MinpropertiesValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
min_properties=1,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class MinpropertiesValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'MinpropertiesValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ModelNot(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,7 +43,7 @@ class ModelNot(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
not_schema = IntSchema
|
||||
not_schema = schemas.IntSchema
|
||||
return {
|
||||
'allOf': [
|
||||
],
|
||||
@ -103,8 +58,8 @@ class ModelNot(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'ModelNot':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class NestedAllofToCheckValidationSemantics(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,7 +46,7 @@ class NestedAllofToCheckValidationSemantics(
|
||||
|
||||
|
||||
class all_of_0(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@ -105,7 +60,7 @@ class NestedAllofToCheckValidationSemantics(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
all_of_0 = NoneSchema
|
||||
all_of_0 = schemas.NoneSchema
|
||||
return {
|
||||
'allOf': [
|
||||
all_of_0,
|
||||
@ -121,8 +76,8 @@ class NestedAllofToCheckValidationSemantics(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'all_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -145,8 +100,8 @@ class NestedAllofToCheckValidationSemantics(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'NestedAllofToCheckValidationSemantics':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class NestedAnyofToCheckValidationSemantics(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,7 +46,7 @@ class NestedAnyofToCheckValidationSemantics(
|
||||
|
||||
|
||||
class any_of_0(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@ -105,7 +60,7 @@ class NestedAnyofToCheckValidationSemantics(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
any_of_0 = NoneSchema
|
||||
any_of_0 = schemas.NoneSchema
|
||||
return {
|
||||
'allOf': [
|
||||
],
|
||||
@ -121,8 +76,8 @@ class NestedAnyofToCheckValidationSemantics(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'any_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -145,8 +100,8 @@ class NestedAnyofToCheckValidationSemantics(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'NestedAnyofToCheckValidationSemantics':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class NestedItems(
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -79,16 +34,16 @@ class NestedItems(
|
||||
|
||||
|
||||
class _items(
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
|
||||
|
||||
class _items(
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
|
||||
|
||||
class _items(
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
_items = NumberSchema
|
||||
_items = schemas.NumberSchema
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class NestedOneofToCheckValidationSemantics(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,7 +46,7 @@ class NestedOneofToCheckValidationSemantics(
|
||||
|
||||
|
||||
class one_of_0(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
|
||||
@classmethod
|
||||
@ -105,7 +60,7 @@ class NestedOneofToCheckValidationSemantics(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
one_of_0 = NoneSchema
|
||||
one_of_0 = schemas.NoneSchema
|
||||
return {
|
||||
'allOf': [
|
||||
],
|
||||
@ -121,8 +76,8 @@ class NestedOneofToCheckValidationSemantics(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -145,8 +100,8 @@ class NestedOneofToCheckValidationSemantics(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'NestedOneofToCheckValidationSemantics':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class NotMoreComplexSchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,17 +46,17 @@ class NotMoreComplexSchema(
|
||||
|
||||
|
||||
class not_schema(
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
foo = StrSchema
|
||||
foo = schemas.StrSchema
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'not_schema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -124,8 +79,8 @@ class NotMoreComplexSchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'NotMoreComplexSchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class NulCharactersInStrings(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
"hello\x00there": "HELLOTHERE",
|
||||
}
|
||||
),
|
||||
StrSchema
|
||||
schemas.StrSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
NullTypeMatchesOnlyTheNullObject = NoneSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
NumberTypeMatchesNumbers = NumberSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
NumberTypeMatchesNumbers = schemas.NumberSchema
|
||||
|
@ -20,72 +20,27 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ObjectPropertiesValidation(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
foo = IntSchema
|
||||
bar = StrSchema
|
||||
foo = schemas.IntSchema
|
||||
bar = schemas.StrSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
bar: typing.Union[bar, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
bar: typing.Union[bar, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'ObjectPropertiesValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class Oneof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,21 +43,21 @@ class Oneof(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
one_of_0 = IntSchema
|
||||
one_of_0 = schemas.IntSchema
|
||||
|
||||
|
||||
class one_of_1(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_minimum=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -126,8 +81,8 @@ class Oneof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'Oneof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class OneofComplexTypes(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -91,19 +46,19 @@ class OneofComplexTypes(
|
||||
|
||||
|
||||
class one_of_0(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"bar",
|
||||
}
|
||||
bar = IntSchema
|
||||
bar = schemas.IntSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
bar: bar,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -115,19 +70,19 @@ class OneofComplexTypes(
|
||||
|
||||
|
||||
class one_of_1(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"foo",
|
||||
}
|
||||
foo = StrSchema
|
||||
foo = schemas.StrSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: foo,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -152,8 +107,8 @@ class OneofComplexTypes(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'OneofComplexTypes':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,57 +20,12 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class OneofWithBaseSchema(
|
||||
ComposedBase,
|
||||
StrSchema
|
||||
schemas.ComposedBase,
|
||||
schemas.StrSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -92,17 +47,17 @@ class OneofWithBaseSchema(
|
||||
|
||||
|
||||
class one_of_0(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
min_length=2,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -113,17 +68,17 @@ class OneofWithBaseSchema(
|
||||
|
||||
|
||||
class one_of_1(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
max_length=4,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -147,7 +102,7 @@ class OneofWithBaseSchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[str, ],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
) -> 'OneofWithBaseSchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class OneofWithEmptySchema(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,8 +43,8 @@ class OneofWithEmptySchema(
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
one_of_0 = NumberSchema
|
||||
one_of_1 = AnyTypeSchema
|
||||
one_of_0 = schemas.NumberSchema
|
||||
one_of_1 = schemas.AnyTypeSchema
|
||||
return {
|
||||
'allOf': [
|
||||
],
|
||||
@ -106,8 +61,8 @@ class OneofWithEmptySchema(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'OneofWithEmptySchema':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,57 +20,12 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class OneofWithRequired(
|
||||
ComposedBase,
|
||||
DictSchema
|
||||
schemas.ComposedBase,
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -92,7 +47,7 @@ class OneofWithRequired(
|
||||
|
||||
|
||||
class one_of_0(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"bar",
|
||||
@ -102,8 +57,8 @@ class OneofWithRequired(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_0':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -114,7 +69,7 @@ class OneofWithRequired(
|
||||
|
||||
|
||||
class one_of_1(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
_required_property_names = {
|
||||
"foo",
|
||||
@ -124,8 +79,8 @@ class OneofWithRequired(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'one_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
@ -149,8 +104,8 @@ class OneofWithRequired(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'OneofWithRequired':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class PatternIsNotAnchored(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
regex=[{
|
||||
'pattern': r'a+', # noqa: E501
|
||||
}],
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -85,8 +40,8 @@ class PatternIsNotAnchored(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'PatternIsNotAnchored':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,61 +20,16 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class PatternValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
regex=[{
|
||||
'pattern': r'^a*$', # noqa: E501
|
||||
}],
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -85,8 +40,8 @@ class PatternValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'PatternValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,63 +20,18 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class PropertiesWithEscapedCharacters(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
foobar = NumberSchema
|
||||
foobar = schemas.NumberSchema
|
||||
locals()["foo\nbar"] = 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
|
||||
If the property is required and was not passed in, an exception will be thrown
|
||||
"""
|
||||
foobar = NumberSchema
|
||||
foobar = schemas.NumberSchema
|
||||
locals()["foo\"bar"] = 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
|
||||
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
|
||||
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
|
||||
If the property is required and was not passed in, an exception will be thrown
|
||||
"""
|
||||
foobar = NumberSchema
|
||||
foobar = schemas.NumberSchema
|
||||
locals()["foo\rbar"] = 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
|
||||
If the property is required and was not passed in, an exception will be thrown
|
||||
"""
|
||||
foobar = NumberSchema
|
||||
foobar = schemas.NumberSchema
|
||||
locals()["foo\tbar"] = 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
|
||||
If the property is required and was not passed in, an exception will be thrown
|
||||
"""
|
||||
foobar = NumberSchema
|
||||
foobar = schemas.NumberSchema
|
||||
locals()["foo\fbar"] = foobar
|
||||
del locals()['foobar']
|
||||
"""
|
||||
@ -158,8 +113,8 @@ class PropertiesWithEscapedCharacters(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'PropertiesWithEscapedCharacters':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,63 +20,18 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class PropertyNamedRefThatIsNotAReference(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
ref = StrSchema
|
||||
ref = schemas.StrSchema
|
||||
locals()["$ref"] = ref
|
||||
del locals()['ref']
|
||||
"""
|
||||
@ -93,8 +48,8 @@ class PropertyNamedRefThatIsNotAReference(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'PropertyNamedRefThatIsNotAReference':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInAdditionalproperties(
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -86,8 +41,8 @@ class RefInAdditionalproperties(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RefInAdditionalproperties':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInAllof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -103,8 +58,8 @@ class RefInAllof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RefInAllof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInAnyof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -103,8 +58,8 @@ class RefInAnyof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RefInAnyof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInItems(
|
||||
ListSchema
|
||||
schemas.ListSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInNot(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -102,8 +57,8 @@ class RefInNot(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RefInNot':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInOneof(
|
||||
ComposedSchema
|
||||
schemas.ComposedSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -103,8 +58,8 @@ class RefInOneof(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RefInOneof':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RefInProperty(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -85,9 +40,9 @@ class RefInProperty(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
a: typing.Union['PropertyNamedRefThatIsNotAReference', Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RefInProperty':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,70 +20,25 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RequiredDefaultValidation(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
foo = AnyTypeSchema
|
||||
foo = schemas.AnyTypeSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RequiredDefaultValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RequiredValidation(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -79,16 +34,16 @@ class RequiredValidation(
|
||||
_required_property_names = {
|
||||
"foo",
|
||||
}
|
||||
foo = AnyTypeSchema
|
||||
bar = AnyTypeSchema
|
||||
foo = schemas.AnyTypeSchema
|
||||
bar = schemas.AnyTypeSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: foo,
|
||||
bar: typing.Union[bar, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
bar: typing.Union[bar, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RequiredValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,70 +20,25 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RequiredWithEmptyArray(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
foo = AnyTypeSchema
|
||||
foo = schemas.AnyTypeSchema
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
foo: typing.Union[foo, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
foo: typing.Union[foo, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RequiredWithEmptyArray':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class RequiredWithEscapedCharacters(
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -88,8 +43,8 @@ class RequiredWithEscapedCharacters(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'RequiredWithEscapedCharacters':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,63 +20,18 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class SimpleEnumValidation(
|
||||
_SchemaEnumMaker(
|
||||
schemas.SchemaEnumMakerClsFactory(
|
||||
enum_value_to_name={
|
||||
1: "POSITIVE_1",
|
||||
2: "POSITIVE_2",
|
||||
3: "POSITIVE_3",
|
||||
}
|
||||
),
|
||||
NumberSchema
|
||||
schemas.NumberSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
StringTypeMatchesStrings = StrSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
StringTypeMatchesStrings = schemas.StrSchema
|
||||
|
@ -20,56 +20,11 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
|
||||
DictSchema
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -79,10 +34,10 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
|
||||
|
||||
|
||||
class alpha(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
inclusive_maximum=3,
|
||||
),
|
||||
NumberSchema
|
||||
schemas.NumberSchema
|
||||
):
|
||||
pass
|
||||
|
||||
@ -90,9 +45,9 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, ],
|
||||
alpha: typing.Union[alpha, Unset] = unset,
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
alpha: typing.Union[alpha, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,58 +20,13 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class UniqueitemsFalseValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -82,8 +37,8 @@ class UniqueitemsFalseValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'UniqueitemsFalseValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,59 +20,14 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class UniqueitemsValidation(
|
||||
_SchemaValidator(
|
||||
schemas.SchemaValidatorClsFactory(
|
||||
unique_items=True,
|
||||
),
|
||||
AnyTypeSchema
|
||||
schemas.AnyTypeSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -83,8 +38,8 @@ class UniqueitemsValidation(
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
_configuration: typing.Optional[Configuration] = None,
|
||||
**kwargs: typing.Type[Schema],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Type[schemas.Schema],
|
||||
) -> 'UniqueitemsValidation':
|
||||
return super().__new__(
|
||||
cls,
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
UriFormat = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
UriFormat = schemas.AnyTypeSchema
|
||||
|
@ -20,50 +20,5 @@ import decimal # noqa: F401
|
||||
from datetime import date, datetime # noqa: F401
|
||||
from frozendict import frozendict # noqa: F401
|
||||
|
||||
from unit_test_api.schemas import ( # 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
|
||||
)
|
||||
UriReferenceFormat = AnyTypeSchema
|
||||
from unit_test_api import schemas # noqa: F401
|
||||
UriReferenceFormat = schemas.AnyTypeSchema
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user