From 9896820f4a55248a641f83c6ac56ebc1e4754fd3 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 22 Oct 2022 20:25:09 -0700 Subject: [PATCH 01/11] python client modelPackage updated --- .../codegen/languages/PythonClientCodegen.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index e6210d48872..9745931531d 100644 --- a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -82,7 +82,7 @@ public class PythonClientCodegen extends AbstractPythonCodegen { protected String packageUrl; protected String apiDocPath = "docs/apis/tags/"; - protected String modelDocPath = "docs/models/"; + protected String modelDocPath = "docs/components/schema/"; protected boolean useNose = false; protected boolean useInlineModelResolver = false; @@ -164,7 +164,7 @@ public PythonClientCodegen() { // at the moment importMapping.clear(); - modelPackage = "model"; + modelPackage = "components.schema"; apiPackage = "apis"; outputFolder = "generated-code" + File.separatorChar + "python"; @@ -420,7 +420,7 @@ public void processOpts() { if (Boolean.FALSE.equals(excludeTests)) { supportingFiles.add(new SupportingFile("__init__." + templateExtension, testFolder, "__init__.py")); - supportingFiles.add(new SupportingFile("__init__." + templateExtension, testFolder + File.separator + "test_models", "__init__.py")); + supportingFiles.add(new SupportingFile("__init__." + templateExtension, testFolder + File.separator + modelPackage.replace('.', File.separatorChar), "__init__.py")); } supportingFiles.add(new SupportingFile("api_client." + templateExtension, packagePath(), "api_client.py")); @@ -438,8 +438,10 @@ public void processOpts() { supportingFiles.add(new SupportingFile("schemas." + templateExtension, packagePath(), "schemas.py")); // add the models and apis folders - supportingFiles.add(new SupportingFile("__init__models." + templateExtension, packagePath() + File.separatorChar + "models", "__init__.py")); - supportingFiles.add(new SupportingFile("__init__model." + templateExtension, packagePath() + File.separatorChar + modelPackage, "__init__.py")); + String modelPackages = modelPackage + "s"; + supportingFiles.add(new SupportingFile("__init__." + templateExtension, packagePath() + File.separatorChar + "components" , "__init__.py")); + supportingFiles.add(new SupportingFile("__init__models." + templateExtension, packagePath() + File.separatorChar + modelPackages.replace('.', File.separatorChar), "__init__.py")); + supportingFiles.add(new SupportingFile("__init__model." + templateExtension, packagePath() + File.separatorChar + modelPackage.replace('.', File.separatorChar), "__init__.py")); supportingFiles.add(new SupportingFile("__init__apis." + templateExtension, packagePath() + File.separatorChar + apiPackage, "__init__.py")); // Generate the 'signing.py' module, but only if the 'HTTP signature' security scheme is specified in the OAS. Map securitySchemeMap = openAPI != null ? From 04c2038780d1a34ca0def04ec820683c6ca2b12d Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 22 Oct 2022 20:28:10 -0700 Subject: [PATCH 02/11] Fixes links in model_doc template --- .../resources/python/model_doc.handlebars | 2 +- .../additional_properties_class.py | 307 ++++++++++++++++++ 2 files changed, 308 insertions(+), 1 deletion(-) create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/model_doc.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/model_doc.handlebars index ae96a37f429..2bd021f2b60 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/model_doc.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/model_doc.handlebars @@ -5,5 +5,5 @@ {{/with}} {{/each}} -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py new file mode 100644 index 00000000000..79ca58cf230 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class map_property( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_property': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class map_of_map_property( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'map_of_map_property': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anytype_1 = schemas.AnyTypeSchema + map_with_undeclared_properties_anytype_1 = schemas.DictSchema + map_with_undeclared_properties_anytype_2 = schemas.DictSchema + + + class map_with_undeclared_properties_anytype_3( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.AnyTypeSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'map_with_undeclared_properties_anytype_3': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class empty_map( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.NotAnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'empty_map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class map_with_undeclared_properties_string( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_with_undeclared_properties_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "map_property": map_property, + "map_of_map_property": map_of_map_property, + "anytype_1": anytype_1, + "map_with_undeclared_properties_anytype_1": map_with_undeclared_properties_anytype_1, + "map_with_undeclared_properties_anytype_2": map_with_undeclared_properties_anytype_2, + "map_with_undeclared_properties_anytype_3": map_with_undeclared_properties_anytype_3, + "empty_map": empty_map, + "map_with_undeclared_properties_string": map_with_undeclared_properties_string, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + map_property: typing.Union[MetaOapg.properties.map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_of_map_property: typing.Union[MetaOapg.properties.map_of_map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + anytype_1: typing.Union[MetaOapg.properties.anytype_1, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_1: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_2: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_3: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + empty_map: typing.Union[MetaOapg.properties.empty_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_string: typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalPropertiesClass': + return super().__new__( + cls, + *args, + map_property=map_property, + map_of_map_property=map_of_map_property, + anytype_1=anytype_1, + map_with_undeclared_properties_anytype_1=map_with_undeclared_properties_anytype_1, + map_with_undeclared_properties_anytype_2=map_with_undeclared_properties_anytype_2, + map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3, + empty_map=empty_map, + map_with_undeclared_properties_string=map_with_undeclared_properties_string, + _configuration=_configuration, + **kwargs, + ) From 7d4159c3475ca96c853c7a61410614ea6e67f7c2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 22 Oct 2022 21:05:35 -0700 Subject: [PATCH 03/11] Samples updated and python client path methods updated --- .../languages/PythonClientCodegen.java | 4 +- .../petstore/python/.openapi-generator/FILES | 733 +++++++++--------- .../python/.openapi-generator/VERSION | 2 +- .../openapi3/client/petstore/python/README.md | 246 +++--- .../python/docs/apis/tags/AnotherFakeApi.md | 2 +- .../petstore/python/docs/apis/tags/FakeApi.md | 32 +- .../docs/apis/tags/FakeClassnameTags123Api.md | 2 +- .../petstore/python/docs/apis/tags/PetApi.md | 4 +- .../python/docs/apis/tags/StoreApi.md | 2 +- .../petstore/python/docs/apis/tags/UserApi.md | 8 +- .../schema}/AdditionalPropertiesClass.md | 4 +- .../schema}/AdditionalPropertiesValidator.md | 4 +- .../AdditionalPropertiesWithArrayOfEnums.md | 4 +- .../{models => components/schema}/Address.md | 4 +- .../{models => components/schema}/Animal.md | 4 +- .../schema}/AnimalFarm.md | 4 +- .../schema}/AnyTypeAndFormat.md | 4 +- .../schema}/AnyTypeNotString.md | 4 +- .../schema}/ApiResponse.md | 4 +- .../{models => components/schema}/Apple.md | 4 +- .../{models => components/schema}/AppleReq.md | 4 +- .../schema}/ArrayHoldingAnyType.md | 4 +- .../schema}/ArrayOfArrayOfNumberOnly.md | 4 +- .../schema}/ArrayOfEnums.md | 4 +- .../schema}/ArrayOfNumberOnly.md | 4 +- .../schema}/ArrayTest.md | 4 +- .../schema}/ArrayWithValidationsInItems.md | 4 +- .../{models => components/schema}/Banana.md | 4 +- .../schema}/BananaReq.md | 4 +- .../python/docs/components/schema/Bar.md | 9 + .../schema}/BasquePig.md | 4 +- .../python/docs/components/schema/Boolean.md | 9 + .../docs/components/schema/BooleanEnum.md | 9 + .../schema}/Capitalization.md | 4 +- .../docs/{models => components/schema}/Cat.md | 4 +- .../{models => components/schema}/Category.md | 4 +- .../{models => components/schema}/ChildCat.md | 4 +- .../schema}/ClassModel.md | 4 +- .../{models => components/schema}/Client.md | 4 +- .../schema}/ComplexQuadrilateral.md | 4 +- ...omposedAnyOfDifferentTypesNoValidations.md | 4 +- .../schema}/ComposedArray.md | 4 +- .../schema}/ComposedBool.md | 4 +- .../schema}/ComposedNone.md | 4 +- .../schema}/ComposedNumber.md | 4 +- .../schema}/ComposedObject.md | 4 +- .../schema}/ComposedOneOfDifferentTypes.md | 4 +- .../schema}/ComposedString.md | 4 +- .../python/docs/components/schema/Currency.md | 9 + .../schema}/DanishPig.md | 4 +- .../schema}/DateTimeTest.md | 4 +- .../schema/DateTimeWithValidations.md | 9 + .../components/schema/DateWithValidations.md | 9 + .../docs/components/schema/DecimalPayload.md | 9 + .../docs/{models => components/schema}/Dog.md | 4 +- .../{models => components/schema}/Drawing.md | 4 +- .../schema}/EnumArrays.md | 4 +- .../schema}/EnumClass.md | 4 +- .../{models => components/schema}/EnumTest.md | 4 +- .../schema}/EquilateralTriangle.md | 4 +- .../{models => components/schema}/File.md | 4 +- .../schema}/FileSchemaTestClass.md | 4 +- .../docs/{models => components/schema}/Foo.md | 4 +- .../schema}/FormatTest.md | 4 +- .../schema}/FromSchema.md | 4 +- .../{models => components/schema}/Fruit.md | 4 +- .../{models => components/schema}/FruitReq.md | 4 +- .../{models => components/schema}/GmFruit.md | 4 +- .../schema}/GrandparentAnimal.md | 4 +- .../schema}/HasOnlyReadOnly.md | 4 +- .../schema}/HealthCheckResult.md | 4 +- .../docs/components/schema/IntegerEnum.md | 9 + .../docs/components/schema/IntegerEnumBig.md | 9 + .../components/schema/IntegerEnumOneValue.md | 9 + .../schema/IntegerEnumWithDefaultValue.md | 9 + .../docs/components/schema/IntegerMax10.md | 9 + .../docs/components/schema/IntegerMin15.md | 9 + .../schema}/IsoscelesTriangle.md | 4 +- .../schema}/JSONPatchRequest.md | 4 +- .../schema}/JSONPatchRequestAddReplaceTest.md | 4 +- .../schema}/JSONPatchRequestMoveCopy.md | 4 +- .../schema}/JSONPatchRequestRemove.md | 4 +- .../{models => components/schema}/Mammal.md | 4 +- .../{models => components/schema}/MapTest.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 4 +- .../schema}/Model200Response.md | 4 +- .../schema}/ModelReturn.md | 4 +- .../{models => components/schema}/Money.md | 4 +- .../{models => components/schema}/Name.md | 4 +- .../schema}/NoAdditionalProperties.md | 4 +- .../schema}/NullableClass.md | 4 +- .../schema}/NullableShape.md | 4 +- .../docs/components/schema/NullableString.md | 9 + .../python/docs/components/schema/Number.md | 9 + .../schema}/NumberOnly.md | 4 +- .../schema/NumberWithValidations.md | 9 + .../docs/components/schema/ObjectInterface.md | 9 + .../schema}/ObjectModelWithRefProps.md | 4 +- ...ithAllOfWithReqTestPropFromUnsetAddProp.md | 4 +- .../schema}/ObjectWithDecimalProperties.md | 4 +- .../ObjectWithDifficultlyNamedProps.md | 4 +- .../ObjectWithInlineCompositionProperty.md | 4 +- .../ObjectWithInvalidNamedRefedProperties.md | 4 +- .../schema}/ObjectWithOptionalTestProp.md | 4 +- .../schema/ObjectWithValidations.md | 9 + .../{models => components/schema}/Order.md | 4 +- .../schema}/ParentPet.md | 4 +- .../docs/{models => components/schema}/Pet.md | 4 +- .../docs/{models => components/schema}/Pig.md | 4 +- .../{models => components/schema}/Player.md | 4 +- .../schema}/Quadrilateral.md | 4 +- .../schema}/QuadrilateralInterface.md | 4 +- .../schema}/ReadOnlyFirst.md | 4 +- .../schema}/ScaleneTriangle.md | 4 +- .../{models => components/schema}/Shape.md | 4 +- .../schema}/ShapeOrNull.md | 4 +- .../schema}/SimpleQuadrilateral.md | 4 +- .../schema}/SomeObject.md | 4 +- .../schema}/SpecialModelName.md | 4 +- .../python/docs/components/schema/String.md | 9 + .../schema}/StringBooleanMap.md | 4 +- .../schema}/StringEnum.md | 4 +- .../schema/StringEnumWithDefaultValue.md | 9 + .../components/schema/StringWithValidation.md | 9 + .../docs/{models => components/schema}/Tag.md | 4 +- .../{models => components/schema}/Triangle.md | 4 +- .../schema}/TriangleInterface.md | 4 +- .../docs/components/schema/UUIDString.md | 9 + .../{models => components/schema}/User.md | 4 +- .../{models => components/schema}/Whale.md | 4 +- .../{models => components/schema}/Zebra.md | 4 +- .../client/petstore/python/docs/models/Bar.md | 9 - .../petstore/python/docs/models/Boolean.md | 9 - .../python/docs/models/BooleanEnum.md | 9 - .../petstore/python/docs/models/Currency.md | 9 - .../docs/models/DateTimeWithValidations.md | 9 - .../python/docs/models/DateWithValidations.md | 9 - .../python/docs/models/DecimalPayload.md | 9 - .../python/docs/models/IntegerEnum.md | 9 - .../python/docs/models/IntegerEnumBig.md | 9 - .../python/docs/models/IntegerEnumOneValue.md | 9 - .../models/IntegerEnumWithDefaultValue.md | 9 - .../python/docs/models/IntegerMax10.md | 9 - .../python/docs/models/IntegerMin15.md | 9 - .../python/docs/models/NullableString.md | 9 - .../petstore/python/docs/models/Number.md | 9 - .../docs/models/NumberWithValidations.md | 9 - .../python/docs/models/ObjectInterface.md | 9 - .../docs/models/ObjectWithValidations.md | 9 - .../petstore/python/docs/models/String.md | 9 - .../docs/models/StringEnumWithDefaultValue.md | 9 - .../docs/models/StringWithValidation.md | 9 - .../petstore/python/docs/models/UUIDString.md | 9 - .../additional_properties_class.py | 307 -------- .../petstore_api/components/__init__.py | 0 .../{model => components/schema}/__init__.py | 0 .../components/schemas/__init__.py | 134 ++++ .../model/additional_properties_class.py | 307 -------- .../model/additional_properties_class.pyi | 307 -------- .../model/additional_properties_validator.py | 198 ----- .../model/additional_properties_validator.pyi | 196 ----- ...ditional_properties_with_array_of_enums.py | 84 -- ...itional_properties_with_array_of_enums.pyi | 84 -- .../python/petstore_api/model/address.py | 57 -- .../python/petstore_api/model/address.pyi | 57 -- .../python/petstore_api/model/animal.py | 105 --- .../python/petstore_api/model/animal.pyi | 105 --- .../python/petstore_api/model/animal_farm.py | 56 -- .../python/petstore_api/model/animal_farm.pyi | 56 -- .../petstore_api/model/any_type_and_format.py | 361 --------- .../model/any_type_and_format.pyi | 361 --------- .../petstore_api/model/any_type_not_string.py | 51 -- .../model/any_type_not_string.pyi | 51 -- .../python/petstore_api/model/api_response.py | 98 --- .../petstore_api/model/api_response.pyi | 98 --- .../python/petstore_api/model/apple.py | 118 --- .../python/petstore_api/model/apple.pyi | 105 --- .../python/petstore_api/model/apple_req.py | 84 -- .../python/petstore_api/model/apple_req.pyi | 84 -- .../model/array_holding_any_type.py | 51 -- .../model/array_holding_any_type.pyi | 51 -- .../model/array_of_array_of_number_only.py | 122 --- .../model/array_of_array_of_number_only.pyi | 122 --- .../petstore_api/model/array_of_enums.py | 56 -- .../petstore_api/model/array_of_enums.pyi | 56 -- .../model/array_of_number_only.py | 100 --- .../model/array_of_number_only.pyi | 100 --- .../python/petstore_api/model/array_test.py | 213 ----- .../python/petstore_api/model/array_test.pyi | 213 ----- .../model/array_with_validations_in_items.py | 61 -- .../model/array_with_validations_in_items.pyi | 56 -- .../python/petstore_api/model/banana.py | 83 -- .../python/petstore_api/model/banana.pyi | 83 -- .../python/petstore_api/model/banana_req.py | 84 -- .../python/petstore_api/model/banana_req.pyi | 84 -- .../petstore/python/petstore_api/model/bar.py | 24 - .../python/petstore_api/model/bar.pyi | 24 - .../python/petstore_api/model/basque_pig.py | 98 --- .../python/petstore_api/model/basque_pig.pyi | 92 --- .../python/petstore_api/model/boolean.py | 24 - .../python/petstore_api/model/boolean.pyi | 24 - .../python/petstore_api/model/boolean_enum.py | 44 -- .../petstore_api/model/boolean_enum.pyi | 38 - .../petstore_api/model/capitalization.py | 128 --- .../petstore_api/model/capitalization.pyi | 128 --- .../petstore/python/petstore_api/model/cat.py | 117 --- .../python/petstore_api/model/cat.pyi | 117 --- .../python/petstore_api/model/category.py | 93 --- .../python/petstore_api/model/category.pyi | 93 --- .../python/petstore_api/model/child_cat.py | 117 --- .../python/petstore_api/model/child_cat.pyi | 117 --- .../python/petstore_api/model/class_model.py | 81 -- .../python/petstore_api/model/class_model.pyi | 81 -- .../python/petstore_api/model/client.py | 78 -- .../python/petstore_api/model/client.pyi | 78 -- .../model/complex_quadrilateral.py | 132 ---- .../model/complex_quadrilateral.pyi | 126 --- ...d_any_of_different_types_no_validations.py | 117 --- ..._any_of_different_types_no_validations.pyi | 117 --- .../petstore_api/model/composed_array.py | 51 -- .../petstore_api/model/composed_array.pyi | 51 -- .../petstore_api/model/composed_bool.py | 64 -- .../petstore_api/model/composed_bool.pyi | 64 -- .../petstore_api/model/composed_none.py | 64 -- .../petstore_api/model/composed_none.pyi | 64 -- .../petstore_api/model/composed_number.py | 64 -- .../petstore_api/model/composed_number.pyi | 64 -- .../petstore_api/model/composed_object.py | 66 -- .../petstore_api/model/composed_object.pyi | 66 -- .../model/composed_one_of_different_types.py | 137 ---- .../model/composed_one_of_different_types.pyi | 124 --- .../petstore_api/model/composed_string.py | 64 -- .../petstore_api/model/composed_string.pyi | 64 -- .../python/petstore_api/model/currency.py | 49 -- .../python/petstore_api/model/currency.pyi | 42 - .../python/petstore_api/model/danish_pig.py | 98 --- .../python/petstore_api/model/danish_pig.pyi | 92 --- .../petstore_api/model/date_time_test.py | 24 - .../petstore_api/model/date_time_test.pyi | 24 - .../model/date_time_with_validations.py | 40 - .../model/date_time_with_validations.pyi | 34 - .../model/date_with_validations.py | 40 - .../model/date_with_validations.pyi | 34 - .../petstore_api/model/decimal_payload.py | 24 - .../petstore_api/model/decimal_payload.pyi | 24 - .../petstore/python/petstore_api/model/dog.py | 117 --- .../python/petstore_api/model/dog.pyi | 117 --- .../python/petstore_api/model/drawing.py | 149 ---- .../python/petstore_api/model/drawing.pyi | 149 ---- .../python/petstore_api/model/enum_arrays.py | 150 ---- .../python/petstore_api/model/enum_arrays.pyi | 136 ---- .../python/petstore_api/model/enum_class.py | 64 -- .../python/petstore_api/model/enum_class.pyi | 54 -- .../python/petstore_api/model/enum_test.py | 276 ------- .../python/petstore_api/model/enum_test.pyi | 244 ------ .../model/equilateral_triangle.py | 132 ---- .../model/equilateral_triangle.pyi | 126 --- .../python/petstore_api/model/file.py | 80 -- .../python/petstore_api/model/file.pyi | 80 -- .../model/file_schema_test_class.py | 118 --- .../model/file_schema_test_class.pyi | 118 --- .../petstore/python/petstore_api/model/foo.py | 83 -- .../python/petstore_api/model/foo.pyi | 83 -- .../python/petstore_api/model/format_test.py | 406 ---------- .../python/petstore_api/model/format_test.pyi | 354 --------- .../python/petstore_api/model/from_schema.py | 88 --- .../python/petstore_api/model/from_schema.pyi | 88 --- .../python/petstore_api/model/fruit.py | 97 --- .../python/petstore_api/model/fruit.pyi | 97 --- .../python/petstore_api/model/fruit_req.py | 70 -- .../python/petstore_api/model/fruit_req.pyi | 70 -- .../python/petstore_api/model/gm_fruit.py | 97 --- .../python/petstore_api/model/gm_fruit.pyi | 97 --- .../petstore_api/model/grandparent_animal.py | 95 --- .../petstore_api/model/grandparent_animal.pyi | 95 --- .../petstore_api/model/has_only_read_only.py | 88 --- .../petstore_api/model/has_only_read_only.pyi | 88 --- .../petstore_api/model/health_check_result.py | 99 --- .../model/health_check_result.pyi | 99 --- .../python/petstore_api/model/integer_enum.py | 54 -- .../petstore_api/model/integer_enum.pyi | 46 -- .../petstore_api/model/integer_enum_big.py | 54 -- .../petstore_api/model/integer_enum_big.pyi | 46 -- .../model/integer_enum_one_value.py | 44 -- .../model/integer_enum_one_value.pyi | 38 - .../model/integer_enum_with_default_value.py | 54 -- .../model/integer_enum_with_default_value.pyi | 46 -- .../petstore_api/model/integer_max10.py | 38 - .../petstore_api/model/integer_max10.pyi | 34 - .../petstore_api/model/integer_min15.py | 38 - .../petstore_api/model/integer_min15.pyi | 34 - .../petstore_api/model/isosceles_triangle.py | 132 ---- .../petstore_api/model/isosceles_triangle.pyi | 126 --- .../petstore_api/model/json_patch_request.py | 92 --- .../petstore_api/model/json_patch_request.pyi | 92 --- .../json_patch_request_add_replace_test.py | 123 --- .../json_patch_request_add_replace_test.pyi | 115 --- .../model/json_patch_request_move_copy.py | 115 --- .../model/json_patch_request_move_copy.pyi | 108 --- .../model/json_patch_request_remove.py | 101 --- .../model/json_patch_request_remove.pyi | 95 --- .../python/petstore_api/model/mammal.py | 80 -- .../python/petstore_api/model/mammal.pyi | 80 -- .../python/petstore_api/model/map_test.py | 245 ------ .../python/petstore_api/model/map_test.pyi | 238 ------ ...perties_and_additional_properties_class.py | 131 ---- ...erties_and_additional_properties_class.pyi | 131 ---- .../petstore_api/model/model200_response.py | 89 --- .../petstore_api/model/model200_response.pyi | 89 --- .../python/petstore_api/model/model_return.py | 79 -- .../petstore_api/model/model_return.pyi | 79 -- .../python/petstore_api/model/money.py | 100 --- .../python/petstore_api/model/money.pyi | 100 --- .../python/petstore_api/model/name.py | 104 --- .../python/petstore_api/model/name.pyi | 104 --- .../model/no_additional_properties.py | 84 -- .../model/no_additional_properties.pyi | 84 -- .../petstore_api/model/nullable_class.py | 576 -------------- .../petstore_api/model/nullable_class.pyi | 576 -------------- .../petstore_api/model/nullable_shape.py | 72 -- .../petstore_api/model/nullable_shape.pyi | 72 -- .../petstore_api/model/nullable_string.py | 48 -- .../petstore_api/model/nullable_string.pyi | 48 -- .../python/petstore_api/model/number.py | 24 - .../python/petstore_api/model/number.pyi | 24 - .../python/petstore_api/model/number_only.py | 78 -- .../python/petstore_api/model/number_only.pyi | 78 -- .../model/number_with_validations.py | 38 - .../model/number_with_validations.pyi | 34 - .../petstore_api/model/object_interface.py | 24 - .../petstore_api/model/object_interface.pyi | 24 - .../model/object_model_with_ref_props.py | 113 --- .../model/object_model_with_ref_props.pyi | 113 --- ..._with_req_test_prop_from_unset_add_prop.py | 124 --- ...with_req_test_prop_from_unset_add_prop.pyi | 124 --- .../model/object_with_decimal_properties.py | 107 --- .../model/object_with_decimal_properties.pyi | 107 --- .../object_with_difficultly_named_props.py | 98 --- .../object_with_difficultly_named_props.pyi | 98 --- ...object_with_inline_composition_property.py | 122 --- ...bject_with_inline_composition_property.pyi | 119 --- ...ect_with_invalid_named_refed_properties.py | 98 --- ...ct_with_invalid_named_refed_properties.pyi | 98 --- .../model/object_with_optional_test_prop.py | 78 -- .../model/object_with_optional_test_prop.pyi | 78 -- .../model/object_with_validations.py | 50 -- .../model/object_with_validations.pyi | 46 -- .../python/petstore_api/model/order.py | 153 ---- .../python/petstore_api/model/order.pyi | 145 ---- .../python/petstore_api/model/parent_pet.py | 76 -- .../python/petstore_api/model/parent_pet.pyi | 76 -- .../petstore/python/petstore_api/model/pet.py | 215 ----- .../python/petstore_api/model/pet.pyi | 207 ----- .../petstore/python/petstore_api/model/pig.py | 77 -- .../python/petstore_api/model/pig.pyi | 77 -- .../python/petstore_api/model/player.py | 93 --- .../python/petstore_api/model/player.pyi | 93 --- .../petstore_api/model/quadrilateral.py | 77 -- .../petstore_api/model/quadrilateral.pyi | 77 -- .../model/quadrilateral_interface.py | 111 --- .../model/quadrilateral_interface.pyi | 105 --- .../petstore_api/model/read_only_first.py | 88 --- .../petstore_api/model/read_only_first.pyi | 88 --- .../petstore_api/model/scalene_triangle.py | 132 ---- .../petstore_api/model/scalene_triangle.pyi | 126 --- .../python/petstore_api/model/shape.py | 77 -- .../python/petstore_api/model/shape.pyi | 77 -- .../petstore_api/model/shape_or_null.py | 81 -- .../petstore_api/model/shape_or_null.pyi | 81 -- .../model/simple_quadrilateral.py | 132 ---- .../model/simple_quadrilateral.pyi | 126 --- .../python/petstore_api/model/some_object.py | 66 -- .../python/petstore_api/model/some_object.pyi | 66 -- .../petstore_api/model/special_model_name.py | 80 -- .../petstore_api/model/special_model_name.pyi | 80 -- .../python/petstore_api/model/string.py | 24 - .../python/petstore_api/model/string.pyi | 24 - .../petstore_api/model/string_boolean_map.py | 57 -- .../petstore_api/model/string_boolean_map.pyi | 57 -- .../python/petstore_api/model/string_enum.py | 89 --- .../python/petstore_api/model/string_enum.pyi | 89 --- .../model/string_enum_with_default_value.py | 54 -- .../model/string_enum_with_default_value.pyi | 46 -- .../model/string_with_validation.py | 37 - .../model/string_with_validation.pyi | 34 - .../petstore/python/petstore_api/model/tag.py | 88 --- .../python/petstore_api/model/tag.pyi | 88 --- .../python/petstore_api/model/triangle.py | 80 -- .../python/petstore_api/model/triangle.pyi | 80 -- .../petstore_api/model/triangle_interface.py | 111 --- .../petstore_api/model/triangle_interface.pyi | 105 --- .../python/petstore_api/model/user.py | 241 ------ .../python/petstore_api/model/user.pyi | 241 ------ .../python/petstore_api/model/uuid_string.py | 38 - .../python/petstore_api/model/uuid_string.pyi | 34 - .../python/petstore_api/model/whale.py | 118 --- .../python/petstore_api/model/whale.pyi | 112 --- .../python/petstore_api/model/zebra.py | 132 ---- .../python/petstore_api/model/zebra.pyi | 118 --- .../python/petstore_api/models/__init__.py | 134 ---- .../another_fake_dummy/patch/__init__.py | 2 +- .../another_fake_dummy/patch/__init__.pyi | 2 +- .../another_fake_dummy/patch/request_body.py | 2 +- .../patch/response_for_200/__init__.py | 2 +- .../petstore_api/paths/fake/patch/__init__.py | 2 +- .../paths/fake/patch/__init__.pyi | 2 +- .../paths/fake/patch/request_body.py | 2 +- .../fake/patch/response_for_200/__init__.py | 2 +- .../get/__init__.py | 2 +- .../get/__init__.pyi | 2 +- .../get/request_body.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../put/__init__.py | 2 +- .../put/__init__.pyi | 2 +- .../put/request_body.py | 2 +- .../put/__init__.py | 2 +- .../put/__init__.pyi | 2 +- .../put/parameter_0.py | 2 +- .../put/request_body.py | 2 +- .../fake_classname_test/patch/__init__.py | 2 +- .../fake_classname_test/patch/__init__.pyi | 2 +- .../fake_classname_test/patch/request_body.py | 2 +- .../patch/response_for_200/__init__.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../paths/fake_json_patch/patch/__init__.py | 2 +- .../paths/fake_json_patch/patch/__init__.pyi | 2 +- .../fake_json_patch/patch/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../fake_ref_obj_in_query/get/__init__.py | 2 +- .../fake_ref_obj_in_query/get/__init__.pyi | 2 +- .../fake_ref_obj_in_query/get/parameter_0.py | 2 +- .../fake_refs_array_of_enums/post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../fake_refs_arraymodel/post/__init__.py | 2 +- .../fake_refs_arraymodel/post/__init__.pyi | 2 +- .../fake_refs_arraymodel/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../paths/fake_refs_boolean/post/__init__.py | 2 +- .../paths/fake_refs_boolean/post/__init__.pyi | 2 +- .../fake_refs_boolean/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../paths/fake_refs_enum/post/__init__.py | 2 +- .../paths/fake_refs_enum/post/__init__.pyi | 2 +- .../paths/fake_refs_enum/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../paths/fake_refs_mammal/post/__init__.py | 2 +- .../paths/fake_refs_mammal/post/__init__.pyi | 2 +- .../fake_refs_mammal/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../paths/fake_refs_number/post/__init__.py | 2 +- .../paths/fake_refs_number/post/__init__.pyi | 2 +- .../fake_refs_number/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../paths/fake_refs_string/post/__init__.py | 2 +- .../paths/fake_refs_string/post/__init__.pyi | 2 +- .../fake_refs_string/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../fake_test_query_paramters/put/__init__.py | 2 +- .../put/__init__.pyi | 2 +- .../put/parameter_0.py | 2 +- .../put/parameter_1.py | 2 +- .../put/parameter_2.py | 2 +- .../put/parameter_3.py | 2 +- .../put/parameter_4.py | 2 +- .../put/parameter_5.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../foo/get/response_for_default/__init__.py | 2 +- .../petstore_api/paths/pet/post/__init__.py | 2 +- .../petstore_api/paths/pet/post/__init__.pyi | 2 +- .../paths/pet/post/request_body.py | 2 +- .../petstore_api/paths/pet/put/__init__.py | 2 +- .../petstore_api/paths/pet/put/__init__.pyi | 2 +- .../paths/pet/put/request_body.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../paths/store_order/post/__init__.py | 2 +- .../paths/store_order/post/__init__.pyi | 2 +- .../paths/store_order/post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../petstore_api/paths/user/post/__init__.py | 2 +- .../petstore_api/paths/user/post/__init__.pyi | 2 +- .../paths/user/post/request_body.py | 2 +- .../user_create_with_array/post/__init__.py | 2 +- .../user_create_with_array/post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../user_create_with_list/post/__init__.py | 2 +- .../user_create_with_list/post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../get/response_for_200/__init__.py | 2 +- .../paths/user_username/put/__init__.py | 2 +- .../paths/user_username/put/__init__.pyi | 2 +- .../paths/user_username/put/parameter_0.py | 2 +- .../paths/user_username/put/request_body.py | 2 +- .../python/test/components/schema/__init__.py | 0 508 files changed, 1155 insertions(+), 25653 deletions(-) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AdditionalPropertiesClass.md (95%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AdditionalPropertiesValidator.md (90%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AdditionalPropertiesWithArrayOfEnums.md (76%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Address.md (68%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Animal.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AnimalFarm.md (62%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AnyTypeAndFormat.md (93%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AnyTypeNotString.md (75%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ApiResponse.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Apple.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/AppleReq.md (65%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ArrayHoldingAnyType.md (70%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ArrayOfArrayOfNumberOnly.md (85%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ArrayOfEnums.md (63%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ArrayOfNumberOnly.md (82%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ArrayTest.md (92%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ArrayWithValidationsInItems.md (59%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Banana.md (76%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/BananaReq.md (66%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/Bar.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/BasquePig.md (76%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/Boolean.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/BooleanEnum.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Capitalization.md (80%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Cat.md (87%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Category.md (79%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ChildCat.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ClassModel.md (81%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Client.md (76%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComplexQuadrilateral.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedAnyOfDifferentTypesNoValidations.md (94%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedArray.md (70%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedBool.md (80%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedNone.md (80%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedNumber.md (81%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedObject.md (81%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedOneOfDifferentTypes.md (90%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ComposedString.md (80%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/Currency.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/DanishPig.md (76%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/DateTimeTest.md (54%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/DateTimeWithValidations.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/DateWithValidations.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/DecimalPayload.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Dog.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Drawing.md (84%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/EnumArrays.md (83%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/EnumClass.md (54%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/EnumTest.md (88%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/EquilateralTriangle.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/File.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/FileSchemaTestClass.md (82%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Foo.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/FormatTest.md (92%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/FromSchema.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Fruit.md (84%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/FruitReq.md (80%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/GmFruit.md (84%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/GrandparentAnimal.md (74%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/HasOnlyReadOnly.md (75%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/HealthCheckResult.md (79%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnum.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumBig.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumOneValue.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumWithDefaultValue.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/IntegerMax10.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/IntegerMin15.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/IsoscelesTriangle.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/JSONPatchRequest.md (87%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/JSONPatchRequestAddReplaceTest.md (73%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/JSONPatchRequestMoveCopy.md (66%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/JSONPatchRequestRemove.md (64%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Mammal.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/MapTest.md (93%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/MixedPropertiesAndAdditionalPropertiesClass.md (82%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Model200Response.md (82%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ModelReturn.md (81%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Money.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Name.md (84%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/NoAdditionalProperties.md (67%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/NullableClass.md (96%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/NullableShape.md (85%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/NullableString.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/Number.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/NumberOnly.md (76%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/NumberWithValidations.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/ObjectInterface.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectModelWithRefProps.md (82%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md (85%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectWithDecimalProperties.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectWithDifficultlyNamedProps.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectWithInlineCompositionProperty.md (85%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectWithInvalidNamedRefedProperties.md (75%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ObjectWithOptionalTestProp.md (72%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithValidations.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Order.md (85%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ParentPet.md (69%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Pet.md (89%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Pig.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Player.md (84%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Quadrilateral.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/QuadrilateralInterface.md (79%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ReadOnlyFirst.md (75%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ScaleneTriangle.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Shape.md (77%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/ShapeOrNull.md (83%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/SimpleQuadrilateral.md (86%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/SomeObject.md (75%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/SpecialModelName.md (76%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/String.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/StringBooleanMap.md (65%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/StringEnum.md (55%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/StringEnumWithDefaultValue.md create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/StringWithValidation.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Tag.md (78%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Triangle.md (81%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/TriangleInterface.md (79%) create mode 100644 samples/openapi3/client/petstore/python/docs/components/schema/UUIDString.md rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/User.md (96%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Whale.md (79%) rename samples/openapi3/client/petstore/python/docs/{models => components/schema}/Zebra.md (79%) delete mode 100644 samples/openapi3/client/petstore/python/docs/models/Bar.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/Boolean.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/BooleanEnum.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/Currency.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/DateTimeWithValidations.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/DateWithValidations.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/DecimalPayload.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/IntegerEnum.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/IntegerEnumBig.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/IntegerEnumOneValue.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/IntegerEnumWithDefaultValue.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/IntegerMax10.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/IntegerMin15.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/NullableString.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/Number.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/NumberWithValidations.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/ObjectInterface.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/ObjectWithValidations.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/String.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/StringEnumWithDefaultValue.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/StringWithValidation.md delete mode 100644 samples/openapi3/client/petstore/python/docs/models/UUIDString.md delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/__init__.py rename samples/openapi3/client/petstore/python/petstore_api/{model => components/schema}/__init__.py (100%) create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schemas/__init__.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/address.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/address.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/animal.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/animal.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/api_response.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/api_response.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/apple.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/apple.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/apple_req.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_test.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_test.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/banana.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/banana.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/banana_req.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/bar.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/bar.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/boolean.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/boolean.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/capitalization.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/cat.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/cat.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/category.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/category.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/child_cat.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/class_model.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/class_model.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/client.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/client.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_array.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_array.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_none.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_none.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_number.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_number.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_object.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_object.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_string.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/composed_string.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/currency.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/currency.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/dog.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/dog.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/drawing.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/drawing.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/enum_class.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/enum_test.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/file.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/file.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/foo.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/foo.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/format_test.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/format_test.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/from_schema.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/from_schema.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/fruit.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/fruit.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/mammal.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/mammal.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/map_test.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/map_test.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/model200_response.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/model_return.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/model_return.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/money.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/money.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/name.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/name.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/number.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/number.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/number_only.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/number_only.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_interface.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/order.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/order.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/pet.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/pet.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/pig.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/pig.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/player.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/player.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/shape.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/shape.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/some_object.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/some_object.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_enum.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/tag.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/tag.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/triangle.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/triangle.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/user.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/user.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/whale.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/whale.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/zebra.py delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/model/zebra.pyi delete mode 100644 samples/openapi3/client/petstore/python/petstore_api/models/__init__.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/__init__.py diff --git a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 9745931531d..52f0dfbb24e 100644 --- a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -2565,7 +2565,7 @@ public String apiFileFolder() { @Override public String modelFileFolder() { - return outputFolder + File.separatorChar + packagePath() + File.separatorChar + modelPackage(); + return outputFolder + File.separatorChar + packagePath() + File.separator + modelPackage().replace('.', File.separatorChar); } @Override @@ -2575,7 +2575,7 @@ public String apiTestFileFolder() { @Override public String modelTestFileFolder() { - return outputFolder + File.separatorChar + testFolder + File.separatorChar + "test_models"; + return outputFolder + File.separatorChar + testFolder + File.separatorChar + modelPackage.replace('.', File.separatorChar); } public void setUseNose(String val) { diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/FILES b/samples/openapi3/client/petstore/python/.openapi-generator/FILES index 24d52d4e13a..ea676a172ed 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/python/.openapi-generator/FILES @@ -9,127 +9,127 @@ docs/apis/tags/FakeClassnameTags123Api.md docs/apis/tags/PetApi.md docs/apis/tags/StoreApi.md docs/apis/tags/UserApi.md -docs/models/AdditionalPropertiesClass.md -docs/models/AdditionalPropertiesValidator.md -docs/models/AdditionalPropertiesWithArrayOfEnums.md -docs/models/Address.md -docs/models/Animal.md -docs/models/AnimalFarm.md -docs/models/AnyTypeAndFormat.md -docs/models/AnyTypeNotString.md -docs/models/ApiResponse.md -docs/models/Apple.md -docs/models/AppleReq.md -docs/models/ArrayHoldingAnyType.md -docs/models/ArrayOfArrayOfNumberOnly.md -docs/models/ArrayOfEnums.md -docs/models/ArrayOfNumberOnly.md -docs/models/ArrayTest.md -docs/models/ArrayWithValidationsInItems.md -docs/models/Banana.md -docs/models/BananaReq.md -docs/models/Bar.md -docs/models/BasquePig.md -docs/models/Boolean.md -docs/models/BooleanEnum.md -docs/models/Capitalization.md -docs/models/Cat.md -docs/models/Category.md -docs/models/ChildCat.md -docs/models/ClassModel.md -docs/models/Client.md -docs/models/ComplexQuadrilateral.md -docs/models/ComposedAnyOfDifferentTypesNoValidations.md -docs/models/ComposedArray.md -docs/models/ComposedBool.md -docs/models/ComposedNone.md -docs/models/ComposedNumber.md -docs/models/ComposedObject.md -docs/models/ComposedOneOfDifferentTypes.md -docs/models/ComposedString.md -docs/models/Currency.md -docs/models/DanishPig.md -docs/models/DateTimeTest.md -docs/models/DateTimeWithValidations.md -docs/models/DateWithValidations.md -docs/models/DecimalPayload.md -docs/models/Dog.md -docs/models/Drawing.md -docs/models/EnumArrays.md -docs/models/EnumClass.md -docs/models/EnumTest.md -docs/models/EquilateralTriangle.md -docs/models/File.md -docs/models/FileSchemaTestClass.md -docs/models/Foo.md -docs/models/FormatTest.md -docs/models/FromSchema.md -docs/models/Fruit.md -docs/models/FruitReq.md -docs/models/GmFruit.md -docs/models/GrandparentAnimal.md -docs/models/HasOnlyReadOnly.md -docs/models/HealthCheckResult.md -docs/models/IntegerEnum.md -docs/models/IntegerEnumBig.md -docs/models/IntegerEnumOneValue.md -docs/models/IntegerEnumWithDefaultValue.md -docs/models/IntegerMax10.md -docs/models/IntegerMin15.md -docs/models/IsoscelesTriangle.md -docs/models/JSONPatchRequest.md -docs/models/JSONPatchRequestAddReplaceTest.md -docs/models/JSONPatchRequestMoveCopy.md -docs/models/JSONPatchRequestRemove.md -docs/models/Mammal.md -docs/models/MapTest.md -docs/models/MixedPropertiesAndAdditionalPropertiesClass.md -docs/models/Model200Response.md -docs/models/ModelReturn.md -docs/models/Money.md -docs/models/Name.md -docs/models/NoAdditionalProperties.md -docs/models/NullableClass.md -docs/models/NullableShape.md -docs/models/NullableString.md -docs/models/Number.md -docs/models/NumberOnly.md -docs/models/NumberWithValidations.md -docs/models/ObjectInterface.md -docs/models/ObjectModelWithRefProps.md -docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md -docs/models/ObjectWithDecimalProperties.md -docs/models/ObjectWithDifficultlyNamedProps.md -docs/models/ObjectWithInlineCompositionProperty.md -docs/models/ObjectWithInvalidNamedRefedProperties.md -docs/models/ObjectWithOptionalTestProp.md -docs/models/ObjectWithValidations.md -docs/models/Order.md -docs/models/ParentPet.md -docs/models/Pet.md -docs/models/Pig.md -docs/models/Player.md -docs/models/Quadrilateral.md -docs/models/QuadrilateralInterface.md -docs/models/ReadOnlyFirst.md -docs/models/ScaleneTriangle.md -docs/models/Shape.md -docs/models/ShapeOrNull.md -docs/models/SimpleQuadrilateral.md -docs/models/SomeObject.md -docs/models/SpecialModelName.md -docs/models/String.md -docs/models/StringBooleanMap.md -docs/models/StringEnum.md -docs/models/StringEnumWithDefaultValue.md -docs/models/StringWithValidation.md -docs/models/Tag.md -docs/models/Triangle.md -docs/models/TriangleInterface.md -docs/models/UUIDString.md -docs/models/User.md -docs/models/Whale.md -docs/models/Zebra.md +docs/components/schema/AdditionalPropertiesClass.md +docs/components/schema/AdditionalPropertiesValidator.md +docs/components/schema/AdditionalPropertiesWithArrayOfEnums.md +docs/components/schema/Address.md +docs/components/schema/Animal.md +docs/components/schema/AnimalFarm.md +docs/components/schema/AnyTypeAndFormat.md +docs/components/schema/AnyTypeNotString.md +docs/components/schema/ApiResponse.md +docs/components/schema/Apple.md +docs/components/schema/AppleReq.md +docs/components/schema/ArrayHoldingAnyType.md +docs/components/schema/ArrayOfArrayOfNumberOnly.md +docs/components/schema/ArrayOfEnums.md +docs/components/schema/ArrayOfNumberOnly.md +docs/components/schema/ArrayTest.md +docs/components/schema/ArrayWithValidationsInItems.md +docs/components/schema/Banana.md +docs/components/schema/BananaReq.md +docs/components/schema/Bar.md +docs/components/schema/BasquePig.md +docs/components/schema/Boolean.md +docs/components/schema/BooleanEnum.md +docs/components/schema/Capitalization.md +docs/components/schema/Cat.md +docs/components/schema/Category.md +docs/components/schema/ChildCat.md +docs/components/schema/ClassModel.md +docs/components/schema/Client.md +docs/components/schema/ComplexQuadrilateral.md +docs/components/schema/ComposedAnyOfDifferentTypesNoValidations.md +docs/components/schema/ComposedArray.md +docs/components/schema/ComposedBool.md +docs/components/schema/ComposedNone.md +docs/components/schema/ComposedNumber.md +docs/components/schema/ComposedObject.md +docs/components/schema/ComposedOneOfDifferentTypes.md +docs/components/schema/ComposedString.md +docs/components/schema/Currency.md +docs/components/schema/DanishPig.md +docs/components/schema/DateTimeTest.md +docs/components/schema/DateTimeWithValidations.md +docs/components/schema/DateWithValidations.md +docs/components/schema/DecimalPayload.md +docs/components/schema/Dog.md +docs/components/schema/Drawing.md +docs/components/schema/EnumArrays.md +docs/components/schema/EnumClass.md +docs/components/schema/EnumTest.md +docs/components/schema/EquilateralTriangle.md +docs/components/schema/File.md +docs/components/schema/FileSchemaTestClass.md +docs/components/schema/Foo.md +docs/components/schema/FormatTest.md +docs/components/schema/FromSchema.md +docs/components/schema/Fruit.md +docs/components/schema/FruitReq.md +docs/components/schema/GmFruit.md +docs/components/schema/GrandparentAnimal.md +docs/components/schema/HasOnlyReadOnly.md +docs/components/schema/HealthCheckResult.md +docs/components/schema/IntegerEnum.md +docs/components/schema/IntegerEnumBig.md +docs/components/schema/IntegerEnumOneValue.md +docs/components/schema/IntegerEnumWithDefaultValue.md +docs/components/schema/IntegerMax10.md +docs/components/schema/IntegerMin15.md +docs/components/schema/IsoscelesTriangle.md +docs/components/schema/JSONPatchRequest.md +docs/components/schema/JSONPatchRequestAddReplaceTest.md +docs/components/schema/JSONPatchRequestMoveCopy.md +docs/components/schema/JSONPatchRequestRemove.md +docs/components/schema/Mammal.md +docs/components/schema/MapTest.md +docs/components/schema/MixedPropertiesAndAdditionalPropertiesClass.md +docs/components/schema/Model200Response.md +docs/components/schema/ModelReturn.md +docs/components/schema/Money.md +docs/components/schema/Name.md +docs/components/schema/NoAdditionalProperties.md +docs/components/schema/NullableClass.md +docs/components/schema/NullableShape.md +docs/components/schema/NullableString.md +docs/components/schema/Number.md +docs/components/schema/NumberOnly.md +docs/components/schema/NumberWithValidations.md +docs/components/schema/ObjectInterface.md +docs/components/schema/ObjectModelWithRefProps.md +docs/components/schema/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +docs/components/schema/ObjectWithDecimalProperties.md +docs/components/schema/ObjectWithDifficultlyNamedProps.md +docs/components/schema/ObjectWithInlineCompositionProperty.md +docs/components/schema/ObjectWithInvalidNamedRefedProperties.md +docs/components/schema/ObjectWithOptionalTestProp.md +docs/components/schema/ObjectWithValidations.md +docs/components/schema/Order.md +docs/components/schema/ParentPet.md +docs/components/schema/Pet.md +docs/components/schema/Pig.md +docs/components/schema/Player.md +docs/components/schema/Quadrilateral.md +docs/components/schema/QuadrilateralInterface.md +docs/components/schema/ReadOnlyFirst.md +docs/components/schema/ScaleneTriangle.md +docs/components/schema/Shape.md +docs/components/schema/ShapeOrNull.md +docs/components/schema/SimpleQuadrilateral.md +docs/components/schema/SomeObject.md +docs/components/schema/SpecialModelName.md +docs/components/schema/String.md +docs/components/schema/StringBooleanMap.md +docs/components/schema/StringEnum.md +docs/components/schema/StringEnumWithDefaultValue.md +docs/components/schema/StringWithValidation.md +docs/components/schema/Tag.md +docs/components/schema/Triangle.md +docs/components/schema/TriangleInterface.md +docs/components/schema/UUIDString.md +docs/components/schema/User.md +docs/components/schema/Whale.md +docs/components/schema/Zebra.md git_push.sh petstore_api/__init__.py petstore_api/api_client.py @@ -141,252 +141,253 @@ petstore_api/apis/tags/fake_classname_tags123_api.py petstore_api/apis/tags/pet_api.py petstore_api/apis/tags/store_api.py petstore_api/apis/tags/user_api.py +petstore_api/components.schema/additional_properties_class.py +petstore_api/components.schema/additional_properties_class.pyi +petstore_api/components.schema/additional_properties_validator.py +petstore_api/components.schema/additional_properties_validator.pyi +petstore_api/components.schema/additional_properties_with_array_of_enums.py +petstore_api/components.schema/additional_properties_with_array_of_enums.pyi +petstore_api/components.schema/address.py +petstore_api/components.schema/address.pyi +petstore_api/components.schema/animal.py +petstore_api/components.schema/animal.pyi +petstore_api/components.schema/animal_farm.py +petstore_api/components.schema/animal_farm.pyi +petstore_api/components.schema/any_type_and_format.py +petstore_api/components.schema/any_type_and_format.pyi +petstore_api/components.schema/any_type_not_string.py +petstore_api/components.schema/any_type_not_string.pyi +petstore_api/components.schema/api_response.py +petstore_api/components.schema/api_response.pyi +petstore_api/components.schema/apple.py +petstore_api/components.schema/apple.pyi +petstore_api/components.schema/apple_req.py +petstore_api/components.schema/apple_req.pyi +petstore_api/components.schema/array_holding_any_type.py +petstore_api/components.schema/array_holding_any_type.pyi +petstore_api/components.schema/array_of_array_of_number_only.py +petstore_api/components.schema/array_of_array_of_number_only.pyi +petstore_api/components.schema/array_of_enums.py +petstore_api/components.schema/array_of_enums.pyi +petstore_api/components.schema/array_of_number_only.py +petstore_api/components.schema/array_of_number_only.pyi +petstore_api/components.schema/array_test.py +petstore_api/components.schema/array_test.pyi +petstore_api/components.schema/array_with_validations_in_items.py +petstore_api/components.schema/array_with_validations_in_items.pyi +petstore_api/components.schema/banana.py +petstore_api/components.schema/banana.pyi +petstore_api/components.schema/banana_req.py +petstore_api/components.schema/banana_req.pyi +petstore_api/components.schema/bar.py +petstore_api/components.schema/bar.pyi +petstore_api/components.schema/basque_pig.py +petstore_api/components.schema/basque_pig.pyi +petstore_api/components.schema/boolean.py +petstore_api/components.schema/boolean.pyi +petstore_api/components.schema/boolean_enum.py +petstore_api/components.schema/boolean_enum.pyi +petstore_api/components.schema/capitalization.py +petstore_api/components.schema/capitalization.pyi +petstore_api/components.schema/cat.py +petstore_api/components.schema/cat.pyi +petstore_api/components.schema/category.py +petstore_api/components.schema/category.pyi +petstore_api/components.schema/child_cat.py +petstore_api/components.schema/child_cat.pyi +petstore_api/components.schema/class_model.py +petstore_api/components.schema/class_model.pyi +petstore_api/components.schema/client.py +petstore_api/components.schema/client.pyi +petstore_api/components.schema/complex_quadrilateral.py +petstore_api/components.schema/complex_quadrilateral.pyi +petstore_api/components.schema/composed_any_of_different_types_no_validations.py +petstore_api/components.schema/composed_any_of_different_types_no_validations.pyi +petstore_api/components.schema/composed_array.py +petstore_api/components.schema/composed_array.pyi +petstore_api/components.schema/composed_bool.py +petstore_api/components.schema/composed_bool.pyi +petstore_api/components.schema/composed_none.py +petstore_api/components.schema/composed_none.pyi +petstore_api/components.schema/composed_number.py +petstore_api/components.schema/composed_number.pyi +petstore_api/components.schema/composed_object.py +petstore_api/components.schema/composed_object.pyi +petstore_api/components.schema/composed_one_of_different_types.py +petstore_api/components.schema/composed_one_of_different_types.pyi +petstore_api/components.schema/composed_string.py +petstore_api/components.schema/composed_string.pyi +petstore_api/components.schema/currency.py +petstore_api/components.schema/currency.pyi +petstore_api/components.schema/danish_pig.py +petstore_api/components.schema/danish_pig.pyi +petstore_api/components.schema/date_time_test.py +petstore_api/components.schema/date_time_test.pyi +petstore_api/components.schema/date_time_with_validations.py +petstore_api/components.schema/date_time_with_validations.pyi +petstore_api/components.schema/date_with_validations.py +petstore_api/components.schema/date_with_validations.pyi +petstore_api/components.schema/decimal_payload.py +petstore_api/components.schema/decimal_payload.pyi +petstore_api/components.schema/dog.py +petstore_api/components.schema/dog.pyi +petstore_api/components.schema/drawing.py +petstore_api/components.schema/drawing.pyi +petstore_api/components.schema/enum_arrays.py +petstore_api/components.schema/enum_arrays.pyi +petstore_api/components.schema/enum_class.py +petstore_api/components.schema/enum_class.pyi +petstore_api/components.schema/enum_test.py +petstore_api/components.schema/enum_test.pyi +petstore_api/components.schema/equilateral_triangle.py +petstore_api/components.schema/equilateral_triangle.pyi +petstore_api/components.schema/file.py +petstore_api/components.schema/file.pyi +petstore_api/components.schema/file_schema_test_class.py +petstore_api/components.schema/file_schema_test_class.pyi +petstore_api/components.schema/foo.py +petstore_api/components.schema/foo.pyi +petstore_api/components.schema/format_test.py +petstore_api/components.schema/format_test.pyi +petstore_api/components.schema/from_schema.py +petstore_api/components.schema/from_schema.pyi +petstore_api/components.schema/fruit.py +petstore_api/components.schema/fruit.pyi +petstore_api/components.schema/fruit_req.py +petstore_api/components.schema/fruit_req.pyi +petstore_api/components.schema/gm_fruit.py +petstore_api/components.schema/gm_fruit.pyi +petstore_api/components.schema/grandparent_animal.py +petstore_api/components.schema/grandparent_animal.pyi +petstore_api/components.schema/has_only_read_only.py +petstore_api/components.schema/has_only_read_only.pyi +petstore_api/components.schema/health_check_result.py +petstore_api/components.schema/health_check_result.pyi +petstore_api/components.schema/integer_enum.py +petstore_api/components.schema/integer_enum.pyi +petstore_api/components.schema/integer_enum_big.py +petstore_api/components.schema/integer_enum_big.pyi +petstore_api/components.schema/integer_enum_one_value.py +petstore_api/components.schema/integer_enum_one_value.pyi +petstore_api/components.schema/integer_enum_with_default_value.py +petstore_api/components.schema/integer_enum_with_default_value.pyi +petstore_api/components.schema/integer_max10.py +petstore_api/components.schema/integer_max10.pyi +petstore_api/components.schema/integer_min15.py +petstore_api/components.schema/integer_min15.pyi +petstore_api/components.schema/isosceles_triangle.py +petstore_api/components.schema/isosceles_triangle.pyi +petstore_api/components.schema/json_patch_request.py +petstore_api/components.schema/json_patch_request.pyi +petstore_api/components.schema/json_patch_request_add_replace_test.py +petstore_api/components.schema/json_patch_request_add_replace_test.pyi +petstore_api/components.schema/json_patch_request_move_copy.py +petstore_api/components.schema/json_patch_request_move_copy.pyi +petstore_api/components.schema/json_patch_request_remove.py +petstore_api/components.schema/json_patch_request_remove.pyi +petstore_api/components.schema/mammal.py +petstore_api/components.schema/mammal.pyi +petstore_api/components.schema/map_test.py +petstore_api/components.schema/map_test.pyi +petstore_api/components.schema/mixed_properties_and_additional_properties_class.py +petstore_api/components.schema/mixed_properties_and_additional_properties_class.pyi +petstore_api/components.schema/model200_response.py +petstore_api/components.schema/model200_response.pyi +petstore_api/components.schema/model_return.py +petstore_api/components.schema/model_return.pyi +petstore_api/components.schema/money.py +petstore_api/components.schema/money.pyi +petstore_api/components.schema/name.py +petstore_api/components.schema/name.pyi +petstore_api/components.schema/no_additional_properties.py +petstore_api/components.schema/no_additional_properties.pyi +petstore_api/components.schema/nullable_class.py +petstore_api/components.schema/nullable_class.pyi +petstore_api/components.schema/nullable_shape.py +petstore_api/components.schema/nullable_shape.pyi +petstore_api/components.schema/nullable_string.py +petstore_api/components.schema/nullable_string.pyi +petstore_api/components.schema/number.py +petstore_api/components.schema/number.pyi +petstore_api/components.schema/number_only.py +petstore_api/components.schema/number_only.pyi +petstore_api/components.schema/number_with_validations.py +petstore_api/components.schema/number_with_validations.pyi +petstore_api/components.schema/object_interface.py +petstore_api/components.schema/object_interface.pyi +petstore_api/components.schema/object_model_with_ref_props.py +petstore_api/components.schema/object_model_with_ref_props.pyi +petstore_api/components.schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py +petstore_api/components.schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi +petstore_api/components.schema/object_with_decimal_properties.py +petstore_api/components.schema/object_with_decimal_properties.pyi +petstore_api/components.schema/object_with_difficultly_named_props.py +petstore_api/components.schema/object_with_difficultly_named_props.pyi +petstore_api/components.schema/object_with_inline_composition_property.py +petstore_api/components.schema/object_with_inline_composition_property.pyi +petstore_api/components.schema/object_with_invalid_named_refed_properties.py +petstore_api/components.schema/object_with_invalid_named_refed_properties.pyi +petstore_api/components.schema/object_with_optional_test_prop.py +petstore_api/components.schema/object_with_optional_test_prop.pyi +petstore_api/components.schema/object_with_validations.py +petstore_api/components.schema/object_with_validations.pyi +petstore_api/components.schema/order.py +petstore_api/components.schema/order.pyi +petstore_api/components.schema/parent_pet.py +petstore_api/components.schema/parent_pet.pyi +petstore_api/components.schema/pet.py +petstore_api/components.schema/pet.pyi +petstore_api/components.schema/pig.py +petstore_api/components.schema/pig.pyi +petstore_api/components.schema/player.py +petstore_api/components.schema/player.pyi +petstore_api/components.schema/quadrilateral.py +petstore_api/components.schema/quadrilateral.pyi +petstore_api/components.schema/quadrilateral_interface.py +petstore_api/components.schema/quadrilateral_interface.pyi +petstore_api/components.schema/read_only_first.py +petstore_api/components.schema/read_only_first.pyi +petstore_api/components.schema/scalene_triangle.py +petstore_api/components.schema/scalene_triangle.pyi +petstore_api/components.schema/shape.py +petstore_api/components.schema/shape.pyi +petstore_api/components.schema/shape_or_null.py +petstore_api/components.schema/shape_or_null.pyi +petstore_api/components.schema/simple_quadrilateral.py +petstore_api/components.schema/simple_quadrilateral.pyi +petstore_api/components.schema/some_object.py +petstore_api/components.schema/some_object.pyi +petstore_api/components.schema/special_model_name.py +petstore_api/components.schema/special_model_name.pyi +petstore_api/components.schema/string.py +petstore_api/components.schema/string.pyi +petstore_api/components.schema/string_boolean_map.py +petstore_api/components.schema/string_boolean_map.pyi +petstore_api/components.schema/string_enum.py +petstore_api/components.schema/string_enum.pyi +petstore_api/components.schema/string_enum_with_default_value.py +petstore_api/components.schema/string_enum_with_default_value.pyi +petstore_api/components.schema/string_with_validation.py +petstore_api/components.schema/string_with_validation.pyi +petstore_api/components.schema/tag.py +petstore_api/components.schema/tag.pyi +petstore_api/components.schema/triangle.py +petstore_api/components.schema/triangle.pyi +petstore_api/components.schema/triangle_interface.py +petstore_api/components.schema/triangle_interface.pyi +petstore_api/components.schema/user.py +petstore_api/components.schema/user.pyi +petstore_api/components.schema/uuid_string.py +petstore_api/components.schema/uuid_string.pyi +petstore_api/components.schema/whale.py +petstore_api/components.schema/whale.pyi +petstore_api/components.schema/zebra.py +petstore_api/components.schema/zebra.pyi +petstore_api/components/__init__.py +petstore_api/components/schema/__init__.py +petstore_api/components/schemas/__init__.py petstore_api/configuration.py petstore_api/exceptions.py -petstore_api/model/__init__.py -petstore_api/model/additional_properties_class.py -petstore_api/model/additional_properties_class.pyi -petstore_api/model/additional_properties_validator.py -petstore_api/model/additional_properties_validator.pyi -petstore_api/model/additional_properties_with_array_of_enums.py -petstore_api/model/additional_properties_with_array_of_enums.pyi -petstore_api/model/address.py -petstore_api/model/address.pyi -petstore_api/model/animal.py -petstore_api/model/animal.pyi -petstore_api/model/animal_farm.py -petstore_api/model/animal_farm.pyi -petstore_api/model/any_type_and_format.py -petstore_api/model/any_type_and_format.pyi -petstore_api/model/any_type_not_string.py -petstore_api/model/any_type_not_string.pyi -petstore_api/model/api_response.py -petstore_api/model/api_response.pyi -petstore_api/model/apple.py -petstore_api/model/apple.pyi -petstore_api/model/apple_req.py -petstore_api/model/apple_req.pyi -petstore_api/model/array_holding_any_type.py -petstore_api/model/array_holding_any_type.pyi -petstore_api/model/array_of_array_of_number_only.py -petstore_api/model/array_of_array_of_number_only.pyi -petstore_api/model/array_of_enums.py -petstore_api/model/array_of_enums.pyi -petstore_api/model/array_of_number_only.py -petstore_api/model/array_of_number_only.pyi -petstore_api/model/array_test.py -petstore_api/model/array_test.pyi -petstore_api/model/array_with_validations_in_items.py -petstore_api/model/array_with_validations_in_items.pyi -petstore_api/model/banana.py -petstore_api/model/banana.pyi -petstore_api/model/banana_req.py -petstore_api/model/banana_req.pyi -petstore_api/model/bar.py -petstore_api/model/bar.pyi -petstore_api/model/basque_pig.py -petstore_api/model/basque_pig.pyi -petstore_api/model/boolean.py -petstore_api/model/boolean.pyi -petstore_api/model/boolean_enum.py -petstore_api/model/boolean_enum.pyi -petstore_api/model/capitalization.py -petstore_api/model/capitalization.pyi -petstore_api/model/cat.py -petstore_api/model/cat.pyi -petstore_api/model/category.py -petstore_api/model/category.pyi -petstore_api/model/child_cat.py -petstore_api/model/child_cat.pyi -petstore_api/model/class_model.py -petstore_api/model/class_model.pyi -petstore_api/model/client.py -petstore_api/model/client.pyi -petstore_api/model/complex_quadrilateral.py -petstore_api/model/complex_quadrilateral.pyi -petstore_api/model/composed_any_of_different_types_no_validations.py -petstore_api/model/composed_any_of_different_types_no_validations.pyi -petstore_api/model/composed_array.py -petstore_api/model/composed_array.pyi -petstore_api/model/composed_bool.py -petstore_api/model/composed_bool.pyi -petstore_api/model/composed_none.py -petstore_api/model/composed_none.pyi -petstore_api/model/composed_number.py -petstore_api/model/composed_number.pyi -petstore_api/model/composed_object.py -petstore_api/model/composed_object.pyi -petstore_api/model/composed_one_of_different_types.py -petstore_api/model/composed_one_of_different_types.pyi -petstore_api/model/composed_string.py -petstore_api/model/composed_string.pyi -petstore_api/model/currency.py -petstore_api/model/currency.pyi -petstore_api/model/danish_pig.py -petstore_api/model/danish_pig.pyi -petstore_api/model/date_time_test.py -petstore_api/model/date_time_test.pyi -petstore_api/model/date_time_with_validations.py -petstore_api/model/date_time_with_validations.pyi -petstore_api/model/date_with_validations.py -petstore_api/model/date_with_validations.pyi -petstore_api/model/decimal_payload.py -petstore_api/model/decimal_payload.pyi -petstore_api/model/dog.py -petstore_api/model/dog.pyi -petstore_api/model/drawing.py -petstore_api/model/drawing.pyi -petstore_api/model/enum_arrays.py -petstore_api/model/enum_arrays.pyi -petstore_api/model/enum_class.py -petstore_api/model/enum_class.pyi -petstore_api/model/enum_test.py -petstore_api/model/enum_test.pyi -petstore_api/model/equilateral_triangle.py -petstore_api/model/equilateral_triangle.pyi -petstore_api/model/file.py -petstore_api/model/file.pyi -petstore_api/model/file_schema_test_class.py -petstore_api/model/file_schema_test_class.pyi -petstore_api/model/foo.py -petstore_api/model/foo.pyi -petstore_api/model/format_test.py -petstore_api/model/format_test.pyi -petstore_api/model/from_schema.py -petstore_api/model/from_schema.pyi -petstore_api/model/fruit.py -petstore_api/model/fruit.pyi -petstore_api/model/fruit_req.py -petstore_api/model/fruit_req.pyi -petstore_api/model/gm_fruit.py -petstore_api/model/gm_fruit.pyi -petstore_api/model/grandparent_animal.py -petstore_api/model/grandparent_animal.pyi -petstore_api/model/has_only_read_only.py -petstore_api/model/has_only_read_only.pyi -petstore_api/model/health_check_result.py -petstore_api/model/health_check_result.pyi -petstore_api/model/integer_enum.py -petstore_api/model/integer_enum.pyi -petstore_api/model/integer_enum_big.py -petstore_api/model/integer_enum_big.pyi -petstore_api/model/integer_enum_one_value.py -petstore_api/model/integer_enum_one_value.pyi -petstore_api/model/integer_enum_with_default_value.py -petstore_api/model/integer_enum_with_default_value.pyi -petstore_api/model/integer_max10.py -petstore_api/model/integer_max10.pyi -petstore_api/model/integer_min15.py -petstore_api/model/integer_min15.pyi -petstore_api/model/isosceles_triangle.py -petstore_api/model/isosceles_triangle.pyi -petstore_api/model/json_patch_request.py -petstore_api/model/json_patch_request.pyi -petstore_api/model/json_patch_request_add_replace_test.py -petstore_api/model/json_patch_request_add_replace_test.pyi -petstore_api/model/json_patch_request_move_copy.py -petstore_api/model/json_patch_request_move_copy.pyi -petstore_api/model/json_patch_request_remove.py -petstore_api/model/json_patch_request_remove.pyi -petstore_api/model/mammal.py -petstore_api/model/mammal.pyi -petstore_api/model/map_test.py -petstore_api/model/map_test.pyi -petstore_api/model/mixed_properties_and_additional_properties_class.py -petstore_api/model/mixed_properties_and_additional_properties_class.pyi -petstore_api/model/model200_response.py -petstore_api/model/model200_response.pyi -petstore_api/model/model_return.py -petstore_api/model/model_return.pyi -petstore_api/model/money.py -petstore_api/model/money.pyi -petstore_api/model/name.py -petstore_api/model/name.pyi -petstore_api/model/no_additional_properties.py -petstore_api/model/no_additional_properties.pyi -petstore_api/model/nullable_class.py -petstore_api/model/nullable_class.pyi -petstore_api/model/nullable_shape.py -petstore_api/model/nullable_shape.pyi -petstore_api/model/nullable_string.py -petstore_api/model/nullable_string.pyi -petstore_api/model/number.py -petstore_api/model/number.pyi -petstore_api/model/number_only.py -petstore_api/model/number_only.pyi -petstore_api/model/number_with_validations.py -petstore_api/model/number_with_validations.pyi -petstore_api/model/object_interface.py -petstore_api/model/object_interface.pyi -petstore_api/model/object_model_with_ref_props.py -petstore_api/model/object_model_with_ref_props.pyi -petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.py -petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi -petstore_api/model/object_with_decimal_properties.py -petstore_api/model/object_with_decimal_properties.pyi -petstore_api/model/object_with_difficultly_named_props.py -petstore_api/model/object_with_difficultly_named_props.pyi -petstore_api/model/object_with_inline_composition_property.py -petstore_api/model/object_with_inline_composition_property.pyi -petstore_api/model/object_with_invalid_named_refed_properties.py -petstore_api/model/object_with_invalid_named_refed_properties.pyi -petstore_api/model/object_with_optional_test_prop.py -petstore_api/model/object_with_optional_test_prop.pyi -petstore_api/model/object_with_validations.py -petstore_api/model/object_with_validations.pyi -petstore_api/model/order.py -petstore_api/model/order.pyi -petstore_api/model/parent_pet.py -petstore_api/model/parent_pet.pyi -petstore_api/model/pet.py -petstore_api/model/pet.pyi -petstore_api/model/pig.py -petstore_api/model/pig.pyi -petstore_api/model/player.py -petstore_api/model/player.pyi -petstore_api/model/quadrilateral.py -petstore_api/model/quadrilateral.pyi -petstore_api/model/quadrilateral_interface.py -petstore_api/model/quadrilateral_interface.pyi -petstore_api/model/read_only_first.py -petstore_api/model/read_only_first.pyi -petstore_api/model/scalene_triangle.py -petstore_api/model/scalene_triangle.pyi -petstore_api/model/shape.py -petstore_api/model/shape.pyi -petstore_api/model/shape_or_null.py -petstore_api/model/shape_or_null.pyi -petstore_api/model/simple_quadrilateral.py -petstore_api/model/simple_quadrilateral.pyi -petstore_api/model/some_object.py -petstore_api/model/some_object.pyi -petstore_api/model/special_model_name.py -petstore_api/model/special_model_name.pyi -petstore_api/model/string.py -petstore_api/model/string.pyi -petstore_api/model/string_boolean_map.py -petstore_api/model/string_boolean_map.pyi -petstore_api/model/string_enum.py -petstore_api/model/string_enum.pyi -petstore_api/model/string_enum_with_default_value.py -petstore_api/model/string_enum_with_default_value.pyi -petstore_api/model/string_with_validation.py -petstore_api/model/string_with_validation.pyi -petstore_api/model/tag.py -petstore_api/model/tag.pyi -petstore_api/model/triangle.py -petstore_api/model/triangle.pyi -petstore_api/model/triangle_interface.py -petstore_api/model/triangle_interface.pyi -petstore_api/model/user.py -petstore_api/model/user.pyi -petstore_api/model/uuid_string.py -petstore_api/model/uuid_string.pyi -petstore_api/model/whale.py -petstore_api/model/whale.pyi -petstore_api/model/zebra.py -petstore_api/model/zebra.pyi -petstore_api/models/__init__.py petstore_api/rest.py petstore_api/schemas.py petstore_api/signing.py @@ -395,5 +396,5 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_models/__init__.py +test/components/schema/__init__.py tox.ini diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/VERSION b/samples/openapi3/client/petstore/python/.openapi-generator/VERSION index 227cea21564..717311e32e3 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/python/.openapi-generator/VERSION @@ -1 +1 @@ -2.0.0 +unset \ No newline at end of file diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index 170f3fbb643..bd1eb80b05f 100644 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -138,7 +138,7 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python import petstore_api from petstore_api.apis.tags import another_fake_api -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -231,127 +231,127 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AdditionalPropertiesClass](docs/models/AdditionalPropertiesClass.md) - - [AdditionalPropertiesValidator](docs/models/AdditionalPropertiesValidator.md) - - [AdditionalPropertiesWithArrayOfEnums](docs/models/AdditionalPropertiesWithArrayOfEnums.md) - - [Address](docs/models/Address.md) - - [Animal](docs/models/Animal.md) - - [AnimalFarm](docs/models/AnimalFarm.md) - - [AnyTypeAndFormat](docs/models/AnyTypeAndFormat.md) - - [AnyTypeNotString](docs/models/AnyTypeNotString.md) - - [ApiResponse](docs/models/ApiResponse.md) - - [Apple](docs/models/Apple.md) - - [AppleReq](docs/models/AppleReq.md) - - [ArrayHoldingAnyType](docs/models/ArrayHoldingAnyType.md) - - [ArrayOfArrayOfNumberOnly](docs/models/ArrayOfArrayOfNumberOnly.md) - - [ArrayOfEnums](docs/models/ArrayOfEnums.md) - - [ArrayOfNumberOnly](docs/models/ArrayOfNumberOnly.md) - - [ArrayTest](docs/models/ArrayTest.md) - - [ArrayWithValidationsInItems](docs/models/ArrayWithValidationsInItems.md) - - [Banana](docs/models/Banana.md) - - [BananaReq](docs/models/BananaReq.md) - - [Bar](docs/models/Bar.md) - - [BasquePig](docs/models/BasquePig.md) - - [Boolean](docs/models/Boolean.md) - - [BooleanEnum](docs/models/BooleanEnum.md) - - [Capitalization](docs/models/Capitalization.md) - - [Cat](docs/models/Cat.md) - - [Category](docs/models/Category.md) - - [ChildCat](docs/models/ChildCat.md) - - [ClassModel](docs/models/ClassModel.md) - - [Client](docs/models/Client.md) - - [ComplexQuadrilateral](docs/models/ComplexQuadrilateral.md) - - [ComposedAnyOfDifferentTypesNoValidations](docs/models/ComposedAnyOfDifferentTypesNoValidations.md) - - [ComposedArray](docs/models/ComposedArray.md) - - [ComposedBool](docs/models/ComposedBool.md) - - [ComposedNone](docs/models/ComposedNone.md) - - [ComposedNumber](docs/models/ComposedNumber.md) - - [ComposedObject](docs/models/ComposedObject.md) - - [ComposedOneOfDifferentTypes](docs/models/ComposedOneOfDifferentTypes.md) - - [ComposedString](docs/models/ComposedString.md) - - [Currency](docs/models/Currency.md) - - [DanishPig](docs/models/DanishPig.md) - - [DateTimeTest](docs/models/DateTimeTest.md) - - [DateTimeWithValidations](docs/models/DateTimeWithValidations.md) - - [DateWithValidations](docs/models/DateWithValidations.md) - - [DecimalPayload](docs/models/DecimalPayload.md) - - [Dog](docs/models/Dog.md) - - [Drawing](docs/models/Drawing.md) - - [EnumArrays](docs/models/EnumArrays.md) - - [EnumClass](docs/models/EnumClass.md) - - [EnumTest](docs/models/EnumTest.md) - - [EquilateralTriangle](docs/models/EquilateralTriangle.md) - - [File](docs/models/File.md) - - [FileSchemaTestClass](docs/models/FileSchemaTestClass.md) - - [Foo](docs/models/Foo.md) - - [FormatTest](docs/models/FormatTest.md) - - [FromSchema](docs/models/FromSchema.md) - - [Fruit](docs/models/Fruit.md) - - [FruitReq](docs/models/FruitReq.md) - - [GmFruit](docs/models/GmFruit.md) - - [GrandparentAnimal](docs/models/GrandparentAnimal.md) - - [HasOnlyReadOnly](docs/models/HasOnlyReadOnly.md) - - [HealthCheckResult](docs/models/HealthCheckResult.md) - - [IntegerEnum](docs/models/IntegerEnum.md) - - [IntegerEnumBig](docs/models/IntegerEnumBig.md) - - [IntegerEnumOneValue](docs/models/IntegerEnumOneValue.md) - - [IntegerEnumWithDefaultValue](docs/models/IntegerEnumWithDefaultValue.md) - - [IntegerMax10](docs/models/IntegerMax10.md) - - [IntegerMin15](docs/models/IntegerMin15.md) - - [IsoscelesTriangle](docs/models/IsoscelesTriangle.md) - - [JSONPatchRequest](docs/models/JSONPatchRequest.md) - - [JSONPatchRequestAddReplaceTest](docs/models/JSONPatchRequestAddReplaceTest.md) - - [JSONPatchRequestMoveCopy](docs/models/JSONPatchRequestMoveCopy.md) - - [JSONPatchRequestRemove](docs/models/JSONPatchRequestRemove.md) - - [Mammal](docs/models/Mammal.md) - - [MapTest](docs/models/MapTest.md) - - [MixedPropertiesAndAdditionalPropertiesClass](docs/models/MixedPropertiesAndAdditionalPropertiesClass.md) - - [Model200Response](docs/models/Model200Response.md) - - [ModelReturn](docs/models/ModelReturn.md) - - [Money](docs/models/Money.md) - - [Name](docs/models/Name.md) - - [NoAdditionalProperties](docs/models/NoAdditionalProperties.md) - - [NullableClass](docs/models/NullableClass.md) - - [NullableShape](docs/models/NullableShape.md) - - [NullableString](docs/models/NullableString.md) - - [Number](docs/models/Number.md) - - [NumberOnly](docs/models/NumberOnly.md) - - [NumberWithValidations](docs/models/NumberWithValidations.md) - - [ObjectInterface](docs/models/ObjectInterface.md) - - [ObjectModelWithRefProps](docs/models/ObjectModelWithRefProps.md) - - [ObjectWithAllOfWithReqTestPropFromUnsetAddProp](docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md) - - [ObjectWithDecimalProperties](docs/models/ObjectWithDecimalProperties.md) - - [ObjectWithDifficultlyNamedProps](docs/models/ObjectWithDifficultlyNamedProps.md) - - [ObjectWithInlineCompositionProperty](docs/models/ObjectWithInlineCompositionProperty.md) - - [ObjectWithInvalidNamedRefedProperties](docs/models/ObjectWithInvalidNamedRefedProperties.md) - - [ObjectWithOptionalTestProp](docs/models/ObjectWithOptionalTestProp.md) - - [ObjectWithValidations](docs/models/ObjectWithValidations.md) - - [Order](docs/models/Order.md) - - [ParentPet](docs/models/ParentPet.md) - - [Pet](docs/models/Pet.md) - - [Pig](docs/models/Pig.md) - - [Player](docs/models/Player.md) - - [Quadrilateral](docs/models/Quadrilateral.md) - - [QuadrilateralInterface](docs/models/QuadrilateralInterface.md) - - [ReadOnlyFirst](docs/models/ReadOnlyFirst.md) - - [ScaleneTriangle](docs/models/ScaleneTriangle.md) - - [Shape](docs/models/Shape.md) - - [ShapeOrNull](docs/models/ShapeOrNull.md) - - [SimpleQuadrilateral](docs/models/SimpleQuadrilateral.md) - - [SomeObject](docs/models/SomeObject.md) - - [SpecialModelName](docs/models/SpecialModelName.md) - - [String](docs/models/String.md) - - [StringBooleanMap](docs/models/StringBooleanMap.md) - - [StringEnum](docs/models/StringEnum.md) - - [StringEnumWithDefaultValue](docs/models/StringEnumWithDefaultValue.md) - - [StringWithValidation](docs/models/StringWithValidation.md) - - [Tag](docs/models/Tag.md) - - [Triangle](docs/models/Triangle.md) - - [TriangleInterface](docs/models/TriangleInterface.md) - - [UUIDString](docs/models/UUIDString.md) - - [User](docs/models/User.md) - - [Whale](docs/models/Whale.md) - - [Zebra](docs/models/Zebra.md) + - [AdditionalPropertiesClass](docs/components/schema/AdditionalPropertiesClass.md) + - [AdditionalPropertiesValidator](docs/components/schema/AdditionalPropertiesValidator.md) + - [AdditionalPropertiesWithArrayOfEnums](docs/components/schema/AdditionalPropertiesWithArrayOfEnums.md) + - [Address](docs/components/schema/Address.md) + - [Animal](docs/components/schema/Animal.md) + - [AnimalFarm](docs/components/schema/AnimalFarm.md) + - [AnyTypeAndFormat](docs/components/schema/AnyTypeAndFormat.md) + - [AnyTypeNotString](docs/components/schema/AnyTypeNotString.md) + - [ApiResponse](docs/components/schema/ApiResponse.md) + - [Apple](docs/components/schema/Apple.md) + - [AppleReq](docs/components/schema/AppleReq.md) + - [ArrayHoldingAnyType](docs/components/schema/ArrayHoldingAnyType.md) + - [ArrayOfArrayOfNumberOnly](docs/components/schema/ArrayOfArrayOfNumberOnly.md) + - [ArrayOfEnums](docs/components/schema/ArrayOfEnums.md) + - [ArrayOfNumberOnly](docs/components/schema/ArrayOfNumberOnly.md) + - [ArrayTest](docs/components/schema/ArrayTest.md) + - [ArrayWithValidationsInItems](docs/components/schema/ArrayWithValidationsInItems.md) + - [Banana](docs/components/schema/Banana.md) + - [BananaReq](docs/components/schema/BananaReq.md) + - [Bar](docs/components/schema/Bar.md) + - [BasquePig](docs/components/schema/BasquePig.md) + - [Boolean](docs/components/schema/Boolean.md) + - [BooleanEnum](docs/components/schema/BooleanEnum.md) + - [Capitalization](docs/components/schema/Capitalization.md) + - [Cat](docs/components/schema/Cat.md) + - [Category](docs/components/schema/Category.md) + - [ChildCat](docs/components/schema/ChildCat.md) + - [ClassModel](docs/components/schema/ClassModel.md) + - [Client](docs/components/schema/Client.md) + - [ComplexQuadrilateral](docs/components/schema/ComplexQuadrilateral.md) + - [ComposedAnyOfDifferentTypesNoValidations](docs/components/schema/ComposedAnyOfDifferentTypesNoValidations.md) + - [ComposedArray](docs/components/schema/ComposedArray.md) + - [ComposedBool](docs/components/schema/ComposedBool.md) + - [ComposedNone](docs/components/schema/ComposedNone.md) + - [ComposedNumber](docs/components/schema/ComposedNumber.md) + - [ComposedObject](docs/components/schema/ComposedObject.md) + - [ComposedOneOfDifferentTypes](docs/components/schema/ComposedOneOfDifferentTypes.md) + - [ComposedString](docs/components/schema/ComposedString.md) + - [Currency](docs/components/schema/Currency.md) + - [DanishPig](docs/components/schema/DanishPig.md) + - [DateTimeTest](docs/components/schema/DateTimeTest.md) + - [DateTimeWithValidations](docs/components/schema/DateTimeWithValidations.md) + - [DateWithValidations](docs/components/schema/DateWithValidations.md) + - [DecimalPayload](docs/components/schema/DecimalPayload.md) + - [Dog](docs/components/schema/Dog.md) + - [Drawing](docs/components/schema/Drawing.md) + - [EnumArrays](docs/components/schema/EnumArrays.md) + - [EnumClass](docs/components/schema/EnumClass.md) + - [EnumTest](docs/components/schema/EnumTest.md) + - [EquilateralTriangle](docs/components/schema/EquilateralTriangle.md) + - [File](docs/components/schema/File.md) + - [FileSchemaTestClass](docs/components/schema/FileSchemaTestClass.md) + - [Foo](docs/components/schema/Foo.md) + - [FormatTest](docs/components/schema/FormatTest.md) + - [FromSchema](docs/components/schema/FromSchema.md) + - [Fruit](docs/components/schema/Fruit.md) + - [FruitReq](docs/components/schema/FruitReq.md) + - [GmFruit](docs/components/schema/GmFruit.md) + - [GrandparentAnimal](docs/components/schema/GrandparentAnimal.md) + - [HasOnlyReadOnly](docs/components/schema/HasOnlyReadOnly.md) + - [HealthCheckResult](docs/components/schema/HealthCheckResult.md) + - [IntegerEnum](docs/components/schema/IntegerEnum.md) + - [IntegerEnumBig](docs/components/schema/IntegerEnumBig.md) + - [IntegerEnumOneValue](docs/components/schema/IntegerEnumOneValue.md) + - [IntegerEnumWithDefaultValue](docs/components/schema/IntegerEnumWithDefaultValue.md) + - [IntegerMax10](docs/components/schema/IntegerMax10.md) + - [IntegerMin15](docs/components/schema/IntegerMin15.md) + - [IsoscelesTriangle](docs/components/schema/IsoscelesTriangle.md) + - [JSONPatchRequest](docs/components/schema/JSONPatchRequest.md) + - [JSONPatchRequestAddReplaceTest](docs/components/schema/JSONPatchRequestAddReplaceTest.md) + - [JSONPatchRequestMoveCopy](docs/components/schema/JSONPatchRequestMoveCopy.md) + - [JSONPatchRequestRemove](docs/components/schema/JSONPatchRequestRemove.md) + - [Mammal](docs/components/schema/Mammal.md) + - [MapTest](docs/components/schema/MapTest.md) + - [MixedPropertiesAndAdditionalPropertiesClass](docs/components/schema/MixedPropertiesAndAdditionalPropertiesClass.md) + - [Model200Response](docs/components/schema/Model200Response.md) + - [ModelReturn](docs/components/schema/ModelReturn.md) + - [Money](docs/components/schema/Money.md) + - [Name](docs/components/schema/Name.md) + - [NoAdditionalProperties](docs/components/schema/NoAdditionalProperties.md) + - [NullableClass](docs/components/schema/NullableClass.md) + - [NullableShape](docs/components/schema/NullableShape.md) + - [NullableString](docs/components/schema/NullableString.md) + - [Number](docs/components/schema/Number.md) + - [NumberOnly](docs/components/schema/NumberOnly.md) + - [NumberWithValidations](docs/components/schema/NumberWithValidations.md) + - [ObjectInterface](docs/components/schema/ObjectInterface.md) + - [ObjectModelWithRefProps](docs/components/schema/ObjectModelWithRefProps.md) + - [ObjectWithAllOfWithReqTestPropFromUnsetAddProp](docs/components/schema/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md) + - [ObjectWithDecimalProperties](docs/components/schema/ObjectWithDecimalProperties.md) + - [ObjectWithDifficultlyNamedProps](docs/components/schema/ObjectWithDifficultlyNamedProps.md) + - [ObjectWithInlineCompositionProperty](docs/components/schema/ObjectWithInlineCompositionProperty.md) + - [ObjectWithInvalidNamedRefedProperties](docs/components/schema/ObjectWithInvalidNamedRefedProperties.md) + - [ObjectWithOptionalTestProp](docs/components/schema/ObjectWithOptionalTestProp.md) + - [ObjectWithValidations](docs/components/schema/ObjectWithValidations.md) + - [Order](docs/components/schema/Order.md) + - [ParentPet](docs/components/schema/ParentPet.md) + - [Pet](docs/components/schema/Pet.md) + - [Pig](docs/components/schema/Pig.md) + - [Player](docs/components/schema/Player.md) + - [Quadrilateral](docs/components/schema/Quadrilateral.md) + - [QuadrilateralInterface](docs/components/schema/QuadrilateralInterface.md) + - [ReadOnlyFirst](docs/components/schema/ReadOnlyFirst.md) + - [ScaleneTriangle](docs/components/schema/ScaleneTriangle.md) + - [Shape](docs/components/schema/Shape.md) + - [ShapeOrNull](docs/components/schema/ShapeOrNull.md) + - [SimpleQuadrilateral](docs/components/schema/SimpleQuadrilateral.md) + - [SomeObject](docs/components/schema/SomeObject.md) + - [SpecialModelName](docs/components/schema/SpecialModelName.md) + - [String](docs/components/schema/String.md) + - [StringBooleanMap](docs/components/schema/StringBooleanMap.md) + - [StringEnum](docs/components/schema/StringEnum.md) + - [StringEnumWithDefaultValue](docs/components/schema/StringEnumWithDefaultValue.md) + - [StringWithValidation](docs/components/schema/StringWithValidation.md) + - [Tag](docs/components/schema/Tag.md) + - [Triangle](docs/components/schema/Triangle.md) + - [TriangleInterface](docs/components/schema/TriangleInterface.md) + - [UUIDString](docs/components/schema/UUIDString.md) + - [User](docs/components/schema/User.md) + - [Whale](docs/components/schema/Whale.md) + - [Zebra](docs/components/schema/Zebra.md) ## Documentation For Authorization @@ -412,7 +412,7 @@ RecursionError indicating the maximum recursion limit has been exceeded. In that Solution 1: Use specific imports for apis and models like: - `from petstore_api.apis.default_api import DefaultApi` -- `from petstore_api.model.pet import Pet` +- `from petstore_api.components.schema.pet import Pet` Solution 1: Before importing the package, adjust the maximum recursion limit as shown below: diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md index 19f16b8c318..4919c43e0a7 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md @@ -19,7 +19,7 @@ To test special tags and operation ID starting with number ```python import petstore_api from petstore_api.apis.tags import another_fake_api -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md index b760aa861c1..06b2f8e9ec2 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md @@ -49,7 +49,7 @@ Additional Properties with Array of Enums ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -133,7 +133,7 @@ Test serialization of ArrayModel ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.animal_farm import AnimalFarm +from petstore_api.components.schema.animal_farm import AnimalFarm from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -213,7 +213,7 @@ Array of Enums ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_enums import ArrayOfEnums from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -295,7 +295,7 @@ For this test, the body for this request much reference a schema named `File`. ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.file_schema_test_class import FileSchemaTestClass +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -371,7 +371,7 @@ No authorization required ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -476,7 +476,7 @@ Test serialization of outer boolean types ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.boolean import Boolean +from petstore_api.components.schema.boolean import Boolean from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -652,7 +652,7 @@ To test \"client\" model ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -734,7 +734,7 @@ Test serialization of object with $refed properties ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -1845,7 +1845,7 @@ json patch route with a requestBody ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.json_patch_request import JSONPatchRequest +from petstore_api.components.schema.json_patch_request import JSONPatchRequest from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -1999,7 +1999,7 @@ Test serialization of mammals ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -2082,7 +2082,7 @@ Test serialization of outer number types ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -2247,7 +2247,7 @@ Test serialization of object with $refed properties ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -2728,7 +2728,7 @@ To test the collection format in query parameters ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -2885,7 +2885,7 @@ user list ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.foo import Foo +from petstore_api.components.schema.foo import Foo from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -3018,7 +3018,7 @@ Test serialization of outer string types ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.string import String +from petstore_api.components.schema.string import String from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -3097,7 +3097,7 @@ Test serialization of outer enum ```python import petstore_api from petstore_api.apis.tags import fake_api -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md index d30402fa79b..0d2883fc2ea 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md @@ -20,7 +20,7 @@ To test class name in snake case ```python import petstore_api from petstore_api.apis.tags import fake_classname_tags123_api -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md index be13b967fd8..5cb5c1d29e6 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md @@ -28,7 +28,7 @@ Add a new pet to the store ```python import petstore_api from petstore_api.apis.tags import pet_api -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -828,7 +828,7 @@ Update an existing pet ```python import petstore_api from petstore_api.apis.tags import pet_api -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md index e90ac70ae30..e93efb8de1a 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md @@ -294,7 +294,7 @@ Place an order for a pet ```python import petstore_api from petstore_api.apis.tags import store_api -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md index 3ac31e2d25e..9b4be7094e8 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md @@ -26,7 +26,7 @@ This can only be done by the logged in user. ```python import petstore_api from petstore_api.apis.tags import user_api -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -111,7 +111,7 @@ Creates list of users with given input array ```python import petstore_api from petstore_api.apis.tags import user_api -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -204,7 +204,7 @@ Creates list of users with given input array ```python import petstore_api from petstore_api.apis.tags import user_api -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. @@ -676,7 +676,7 @@ This can only be done by the logged in user. ```python import petstore_api from petstore_api.apis.tags import user_api -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from pprint import pprint # Defining the host is optional and defaults to http://petstore.swagger.io:80/v2 # See configuration.py for a list of all supported configuration parameters. diff --git a/samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesClass.md similarity index 95% rename from samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesClass.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesClass.md index 80e4e770991..33662e992fa 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesClass.md @@ -1,4 +1,4 @@ -# petstore_api.model.additional_properties_class.AdditionalPropertiesClass +# petstore_api.components.schema.additional_properties_class.AdditionalPropertiesClass ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -105,5 +105,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | str, | str, | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesValidator.md b/samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesValidator.md similarity index 90% rename from samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesValidator.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesValidator.md index 4a386a3864c..16fa87a29d9 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesValidator.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesValidator.md @@ -1,4 +1,4 @@ -# petstore_api.model.additional_properties_validator.AdditionalPropertiesValidator +# petstore_api.components.schema.additional_properties_validator.AdditionalPropertiesValidator ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -49,5 +49,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesWithArrayOfEnums.md b/samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesWithArrayOfEnums.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesWithArrayOfEnums.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesWithArrayOfEnums.md index 22dd693183c..ff34e22f1fb 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AdditionalPropertiesWithArrayOfEnums.md @@ -1,4 +1,4 @@ -# petstore_api.model.additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums +# petstore_api.components.schema.additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -22,5 +22,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**EnumClass**](EnumClass.md) | [**EnumClass**](EnumClass.md) | [**EnumClass**](EnumClass.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Address.md b/samples/openapi3/client/petstore/python/docs/components/schema/Address.md similarity index 68% rename from samples/openapi3/client/petstore/python/docs/models/Address.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Address.md index 1ec43dfd0bc..a04ebd9b13a 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Address.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Address.md @@ -1,4 +1,4 @@ -# petstore_api.model.address.Address +# petstore_api.components.schema.address.Address ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | decimal.Decimal, int, | decimal.Decimal, | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Animal.md b/samples/openapi3/client/petstore/python/docs/components/schema/Animal.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/Animal.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Animal.md index bf064d289ed..416e48dae47 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Animal.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Animal.md @@ -1,4 +1,4 @@ -# petstore_api.model.animal.Animal +# petstore_api.components.schema.animal.Animal ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **color** | str, | str, | | [optional] if omitted the server will use the default value of "red" **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/AnimalFarm.md b/samples/openapi3/client/petstore/python/docs/components/schema/AnimalFarm.md similarity index 62% rename from samples/openapi3/client/petstore/python/docs/models/AnimalFarm.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AnimalFarm.md index f1b1468e77e..4b6c2c7fbaf 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AnimalFarm.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AnimalFarm.md @@ -1,4 +1,4 @@ -# petstore_api.model.animal_farm.AnimalFarm +# petstore_api.components.schema.animal_farm.AnimalFarm ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**Animal**](Animal.md) | [**Animal**](Animal.md) | [**Animal**](Animal.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/AnyTypeAndFormat.md b/samples/openapi3/client/petstore/python/docs/components/schema/AnyTypeAndFormat.md similarity index 93% rename from samples/openapi3/client/petstore/python/docs/models/AnyTypeAndFormat.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AnyTypeAndFormat.md index 812e5c6a1ee..376b9aa0052 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AnyTypeAndFormat.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AnyTypeAndFormat.md @@ -1,4 +1,4 @@ -# petstore_api.model.any_type_and_format.AnyTypeAndFormat +# petstore_api.components.schema.any_type_and_format.AnyTypeAndFormat ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -19,5 +19,5 @@ Key | Input Type | Accessed Type | Description | Notes **float** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] value must be a 32 bit float **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/AnyTypeNotString.md b/samples/openapi3/client/petstore/python/docs/components/schema/AnyTypeNotString.md similarity index 75% rename from samples/openapi3/client/petstore/python/docs/models/AnyTypeNotString.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AnyTypeNotString.md index ff57ed8d213..898f3cdd35c 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AnyTypeNotString.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AnyTypeNotString.md @@ -1,4 +1,4 @@ -# petstore_api.model.any_type_not_string.AnyTypeNotString +# petstore_api.components.schema.any_type_not_string.AnyTypeNotString ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- str, | str, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ApiResponse.md b/samples/openapi3/client/petstore/python/docs/components/schema/ApiResponse.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/ApiResponse.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ApiResponse.md index 578aa06cb50..93c139540ab 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ApiResponse.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ApiResponse.md @@ -1,4 +1,4 @@ -# petstore_api.model.api_response.ApiResponse +# petstore_api.components.schema.api_response.ApiResponse ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **message** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Apple.md b/samples/openapi3/client/petstore/python/docs/components/schema/Apple.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/Apple.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Apple.md index 84c3ab8da58..f80d9c93da8 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Apple.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Apple.md @@ -1,4 +1,4 @@ -# petstore_api.model.apple.Apple +# petstore_api.components.schema.apple.Apple ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **origin** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/AppleReq.md b/samples/openapi3/client/petstore/python/docs/components/schema/AppleReq.md similarity index 65% rename from samples/openapi3/client/petstore/python/docs/models/AppleReq.md rename to samples/openapi3/client/petstore/python/docs/components/schema/AppleReq.md index 59e2c1b00c8..152e442d13d 100644 --- a/samples/openapi3/client/petstore/python/docs/models/AppleReq.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/AppleReq.md @@ -1,4 +1,4 @@ -# petstore_api.model.apple_req.AppleReq +# petstore_api.components.schema.apple_req.AppleReq ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **cultivar** | str, | str, | | **mealy** | bool, | BoolClass, | | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ArrayHoldingAnyType.md b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayHoldingAnyType.md similarity index 70% rename from samples/openapi3/client/petstore/python/docs/models/ArrayHoldingAnyType.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ArrayHoldingAnyType.md index 7dc14c3018e..fe83564becc 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ArrayHoldingAnyType.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayHoldingAnyType.md @@ -1,4 +1,4 @@ -# petstore_api.model.array_holding_any_type.ArrayHoldingAnyType +# petstore_api.components.schema.array_holding_any_type.ArrayHoldingAnyType ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | any type can be stored here | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfArrayOfNumberOnly.md similarity index 85% rename from samples/openapi3/client/petstore/python/docs/models/ArrayOfArrayOfNumberOnly.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfArrayOfNumberOnly.md index b3e7a281e0a..df7c62ba825 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfArrayOfNumberOnly.md @@ -1,4 +1,4 @@ -# petstore_api.model.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly +# petstore_api.components.schema.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -35,5 +35,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | decimal.Decimal, int, float, | decimal.Decimal, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ArrayOfEnums.md b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfEnums.md similarity index 63% rename from samples/openapi3/client/petstore/python/docs/models/ArrayOfEnums.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfEnums.md index dca614b9ae6..721dd9ab680 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ArrayOfEnums.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfEnums.md @@ -1,4 +1,4 @@ -# petstore_api.model.array_of_enums.ArrayOfEnums +# petstore_api.components.schema.array_of_enums.ArrayOfEnums ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**StringEnum**](StringEnum.md) | [**StringEnum**](StringEnum.md) | [**StringEnum**](StringEnum.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfNumberOnly.md similarity index 82% rename from samples/openapi3/client/petstore/python/docs/models/ArrayOfNumberOnly.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfNumberOnly.md index 271dff52fd0..d7bfbce1ed1 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayOfNumberOnly.md @@ -1,4 +1,4 @@ -# petstore_api.model.array_of_number_only.ArrayOfNumberOnly +# petstore_api.components.schema.array_of_number_only.ArrayOfNumberOnly ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -23,5 +23,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | decimal.Decimal, int, float, | decimal.Decimal, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ArrayTest.md b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayTest.md similarity index 92% rename from samples/openapi3/client/petstore/python/docs/models/ArrayTest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ArrayTest.md index 657329575ee..eda5ab6f5ed 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ArrayTest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayTest.md @@ -1,4 +1,4 @@ -# petstore_api.model.array_test.ArrayTest +# petstore_api.components.schema.array_test.ArrayTest ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -73,5 +73,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**ReadOnlyFirst**](ReadOnlyFirst.md) | [**ReadOnlyFirst**](ReadOnlyFirst.md) | [**ReadOnlyFirst**](ReadOnlyFirst.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ArrayWithValidationsInItems.md b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayWithValidationsInItems.md similarity index 59% rename from samples/openapi3/client/petstore/python/docs/models/ArrayWithValidationsInItems.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ArrayWithValidationsInItems.md index b81ab8cd5d6..fa99c210a79 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ArrayWithValidationsInItems.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ArrayWithValidationsInItems.md @@ -1,4 +1,4 @@ -# petstore_api.model.array_with_validations_in_items.ArrayWithValidationsInItems +# petstore_api.components.schema.array_with_validations_in_items.ArrayWithValidationsInItems ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Banana.md b/samples/openapi3/client/petstore/python/docs/components/schema/Banana.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/Banana.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Banana.md index 034c7f77709..61ad1924375 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Banana.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Banana.md @@ -1,4 +1,4 @@ -# petstore_api.model.banana.Banana +# petstore_api.components.schema.banana.Banana ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **lengthCm** | decimal.Decimal, int, float, | decimal.Decimal, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/BananaReq.md b/samples/openapi3/client/petstore/python/docs/components/schema/BananaReq.md similarity index 66% rename from samples/openapi3/client/petstore/python/docs/models/BananaReq.md rename to samples/openapi3/client/petstore/python/docs/components/schema/BananaReq.md index ae53efbfe95..fce44c93426 100644 --- a/samples/openapi3/client/petstore/python/docs/models/BananaReq.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/BananaReq.md @@ -1,4 +1,4 @@ -# petstore_api.model.banana_req.BananaReq +# petstore_api.components.schema.banana_req.BananaReq ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **lengthCm** | decimal.Decimal, int, float, | decimal.Decimal, | | **sweet** | bool, | BoolClass, | | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/Bar.md b/samples/openapi3/client/petstore/python/docs/components/schema/Bar.md new file mode 100644 index 00000000000..a35bd5ed73b --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Bar.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.bar.Bar + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | if omitted the server will use the default value of "bar" + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/BasquePig.md b/samples/openapi3/client/petstore/python/docs/components/schema/BasquePig.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/BasquePig.md rename to samples/openapi3/client/petstore/python/docs/components/schema/BasquePig.md index b0860be169a..ef3b32e3a50 100644 --- a/samples/openapi3/client/petstore/python/docs/models/BasquePig.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/BasquePig.md @@ -1,4 +1,4 @@ -# petstore_api.model.basque_pig.BasquePig +# petstore_api.components.schema.basque_pig.BasquePig ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **className** | str, | str, | | must be one of ["BasquePig", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/Boolean.md b/samples/openapi3/client/petstore/python/docs/components/schema/Boolean.md new file mode 100644 index 00000000000..f16da18879c --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Boolean.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.boolean.Boolean + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +bool, | BoolClass, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/BooleanEnum.md b/samples/openapi3/client/petstore/python/docs/components/schema/BooleanEnum.md new file mode 100644 index 00000000000..1508a34c557 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/BooleanEnum.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.boolean_enum.BooleanEnum + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +bool, | BoolClass, | | must be one of [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) + diff --git a/samples/openapi3/client/petstore/python/docs/models/Capitalization.md b/samples/openapi3/client/petstore/python/docs/components/schema/Capitalization.md similarity index 80% rename from samples/openapi3/client/petstore/python/docs/models/Capitalization.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Capitalization.md index cc39af70e1e..5de9a73c726 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Capitalization.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Capitalization.md @@ -1,4 +1,4 @@ -# petstore_api.model.capitalization.Capitalization +# petstore_api.components.schema.capitalization.Capitalization ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -16,5 +16,5 @@ Key | Input Type | Accessed Type | Description | Notes **ATT_NAME** | str, | str, | Name of the pet | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Cat.md b/samples/openapi3/client/petstore/python/docs/components/schema/Cat.md similarity index 87% rename from samples/openapi3/client/petstore/python/docs/models/Cat.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Cat.md index b5e0986f57b..5bab8483850 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Cat.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Cat.md @@ -1,4 +1,4 @@ -# petstore_api.model.cat.Cat +# petstore_api.components.schema.cat.Cat ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **declawed** | bool, | BoolClass, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Category.md b/samples/openapi3/client/petstore/python/docs/components/schema/Category.md similarity index 79% rename from samples/openapi3/client/petstore/python/docs/models/Category.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Category.md index 0087571a3a6..0ddf27faf74 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Category.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Category.md @@ -1,4 +1,4 @@ -# petstore_api.model.category.Category +# petstore_api.components.schema.category.Category ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **id** | decimal.Decimal, int, | decimal.Decimal, | | [optional] value must be a 64 bit integer **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ChildCat.md b/samples/openapi3/client/petstore/python/docs/components/schema/ChildCat.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/ChildCat.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ChildCat.md index 645ea5062dd..62eb8ab4cbe 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ChildCat.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ChildCat.md @@ -1,4 +1,4 @@ -# petstore_api.model.child_cat.ChildCat +# petstore_api.components.schema.child_cat.ChildCat ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **name** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ClassModel.md b/samples/openapi3/client/petstore/python/docs/components/schema/ClassModel.md similarity index 81% rename from samples/openapi3/client/petstore/python/docs/models/ClassModel.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ClassModel.md index b1686ebb799..022789eb200 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ClassModel.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ClassModel.md @@ -1,4 +1,4 @@ -# petstore_api.model.class_model.ClassModel +# petstore_api.components.schema.class_model.ClassModel Model for testing model with \"_class\" property @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **_class** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Client.md b/samples/openapi3/client/petstore/python/docs/components/schema/Client.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/Client.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Client.md index e94c360dd28..426e8d178e4 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Client.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Client.md @@ -1,4 +1,4 @@ -# petstore_api.model.client.Client +# petstore_api.components.schema.client.Client ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **client** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComplexQuadrilateral.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComplexQuadrilateral.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/ComplexQuadrilateral.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComplexQuadrilateral.md index a00ac0d9da6..2339b3abe8e 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComplexQuadrilateral.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComplexQuadrilateral.md @@ -1,4 +1,4 @@ -# petstore_api.model.complex_quadrilateral.ComplexQuadrilateral +# petstore_api.components.schema.complex_quadrilateral.ComplexQuadrilateral ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **quadrilateralType** | str, | str, | | [optional] must be one of ["ComplexQuadrilateral", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedAnyOfDifferentTypesNoValidations.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedAnyOfDifferentTypesNoValidations.md similarity index 94% rename from samples/openapi3/client/petstore/python/docs/models/ComposedAnyOfDifferentTypesNoValidations.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedAnyOfDifferentTypesNoValidations.md index f4389c50eb2..508cc049d99 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedAnyOfDifferentTypesNoValidations.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_any_of_different_types_no_validations.ComposedAnyOfDifferentTypesNoValidations +# petstore_api.components.schema.composed_any_of_different_types_no_validations.ComposedAnyOfDifferentTypesNoValidations ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -143,5 +143,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedArray.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedArray.md similarity index 70% rename from samples/openapi3/client/petstore/python/docs/models/ComposedArray.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedArray.md index bc506aa5f8a..6f107e52c1e 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedArray.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedArray.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_array.ComposedArray +# petstore_api.components.schema.composed_array.ComposedArray ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedBool.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedBool.md similarity index 80% rename from samples/openapi3/client/petstore/python/docs/models/ComposedBool.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedBool.md index 29ed69f72f1..4335d9198a0 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedBool.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedBool.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_bool.ComposedBool +# petstore_api.components.schema.composed_bool.ComposedBool ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedNone.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedNone.md similarity index 80% rename from samples/openapi3/client/petstore/python/docs/models/ComposedNone.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedNone.md index df4ec85f2cc..49449f6039e 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedNone.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedNone.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_none.ComposedNone +# petstore_api.components.schema.composed_none.ComposedNone ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedNumber.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedNumber.md similarity index 81% rename from samples/openapi3/client/petstore/python/docs/models/ComposedNumber.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedNumber.md index fa1f87c730c..c967dddb1d7 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedNumber.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedNumber.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_number.ComposedNumber +# petstore_api.components.schema.composed_number.ComposedNumber ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedObject.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedObject.md similarity index 81% rename from samples/openapi3/client/petstore/python/docs/models/ComposedObject.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedObject.md index ebbbaede6b7..b16f75df0ce 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedObject.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedObject.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_object.ComposedObject +# petstore_api.components.schema.composed_object.ComposedObject ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedOneOfDifferentTypes.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedOneOfDifferentTypes.md similarity index 90% rename from samples/openapi3/client/petstore/python/docs/models/ComposedOneOfDifferentTypes.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedOneOfDifferentTypes.md index 0094f7e44c5..1001d53880d 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedOneOfDifferentTypes.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedOneOfDifferentTypes.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_one_of_different_types.ComposedOneOfDifferentTypes +# petstore_api.components.schema.composed_one_of_different_types.ComposedOneOfDifferentTypes this is a model that allows payloads of type object or number @@ -59,5 +59,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- str, datetime, | str, | | value must conform to RFC-3339 date-time -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ComposedString.md b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedString.md similarity index 80% rename from samples/openapi3/client/petstore/python/docs/models/ComposedString.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ComposedString.md index 235511b37a2..23ff3074d1b 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ComposedString.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ComposedString.md @@ -1,4 +1,4 @@ -# petstore_api.model.composed_string.ComposedString +# petstore_api.components.schema.composed_string.ComposedString ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/Currency.md b/samples/openapi3/client/petstore/python/docs/components/schema/Currency.md new file mode 100644 index 00000000000..5db0680b39b --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Currency.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.currency.Currency + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | must be one of ["eur", "usd", ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/DanishPig.md b/samples/openapi3/client/petstore/python/docs/components/schema/DanishPig.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/DanishPig.md rename to samples/openapi3/client/petstore/python/docs/components/schema/DanishPig.md index 15917a42ef8..b0f6d120144 100644 --- a/samples/openapi3/client/petstore/python/docs/models/DanishPig.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/DanishPig.md @@ -1,4 +1,4 @@ -# petstore_api.model.danish_pig.DanishPig +# petstore_api.components.schema.danish_pig.DanishPig ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **className** | str, | str, | | must be one of ["DanishPig", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/DateTimeTest.md b/samples/openapi3/client/petstore/python/docs/components/schema/DateTimeTest.md similarity index 54% rename from samples/openapi3/client/petstore/python/docs/models/DateTimeTest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/DateTimeTest.md index ccfc8df5936..aa619e3e5dc 100644 --- a/samples/openapi3/client/petstore/python/docs/models/DateTimeTest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/DateTimeTest.md @@ -1,9 +1,9 @@ -# petstore_api.model.date_time_test.DateTimeTest +# petstore_api.components.schema.date_time_test.DateTimeTest ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- str, datetime, | str, | | if omitted the server will use the default value of 2010-01-01T10:10:10.000111+01:00value must conform to RFC-3339 date-time -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/DateTimeWithValidations.md b/samples/openapi3/client/petstore/python/docs/components/schema/DateTimeWithValidations.md new file mode 100644 index 00000000000..b3aa92e4f2c --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/DateTimeWithValidations.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.date_time_with_validations.DateTimeWithValidations + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, datetime, | str, | | value must conform to RFC-3339 date-time + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/DateWithValidations.md b/samples/openapi3/client/petstore/python/docs/components/schema/DateWithValidations.md new file mode 100644 index 00000000000..171c7bb7310 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/DateWithValidations.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.date_with_validations.DateWithValidations + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, date, | str, | | value must conform to RFC-3339 full-date YYYY-MM-DD + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/DecimalPayload.md b/samples/openapi3/client/petstore/python/docs/components/schema/DecimalPayload.md new file mode 100644 index 00000000000..4bae4553619 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/DecimalPayload.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.decimal_payload.DecimalPayload + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | value must be numeric and storable in decimal.Decimal + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/Dog.md b/samples/openapi3/client/petstore/python/docs/components/schema/Dog.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/Dog.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Dog.md index 08201e4423b..aa9d229416b 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Dog.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Dog.md @@ -1,4 +1,4 @@ -# petstore_api.model.dog.Dog +# petstore_api.components.schema.dog.Dog ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **breed** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Drawing.md b/samples/openapi3/client/petstore/python/docs/components/schema/Drawing.md similarity index 84% rename from samples/openapi3/client/petstore/python/docs/models/Drawing.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Drawing.md index dce65cbb0b5..2d05a7e046f 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Drawing.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Drawing.md @@ -1,4 +1,4 @@ -# petstore_api.model.drawing.Drawing +# petstore_api.components.schema.drawing.Drawing ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**Shape**](Shape.md) | [**Shape**](Shape.md) | [**Shape**](Shape.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/EnumArrays.md b/samples/openapi3/client/petstore/python/docs/components/schema/EnumArrays.md similarity index 83% rename from samples/openapi3/client/petstore/python/docs/models/EnumArrays.md rename to samples/openapi3/client/petstore/python/docs/components/schema/EnumArrays.md index cfff6ea29bd..1e4f78dde56 100644 --- a/samples/openapi3/client/petstore/python/docs/models/EnumArrays.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/EnumArrays.md @@ -1,4 +1,4 @@ -# petstore_api.model.enum_arrays.EnumArrays +# petstore_api.components.schema.enum_arrays.EnumArrays ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -24,5 +24,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | str, | str, | | must be one of ["fish", "crab", ] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/EnumClass.md b/samples/openapi3/client/petstore/python/docs/components/schema/EnumClass.md similarity index 54% rename from samples/openapi3/client/petstore/python/docs/models/EnumClass.md rename to samples/openapi3/client/petstore/python/docs/components/schema/EnumClass.md index 9e08aab1455..00947844f36 100644 --- a/samples/openapi3/client/petstore/python/docs/models/EnumClass.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/EnumClass.md @@ -1,9 +1,9 @@ -# petstore_api.model.enum_class.EnumClass +# petstore_api.components.schema.enum_class.EnumClass ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- str, | str, | | must be one of ["_abc", "-efg", "(xyz)", "COUNT_1M", "COUNT_50M", ] if omitted the server will use the default value of "-efg" -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/EnumTest.md b/samples/openapi3/client/petstore/python/docs/components/schema/EnumTest.md similarity index 88% rename from samples/openapi3/client/petstore/python/docs/models/EnumTest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/EnumTest.md index 02c3b08a201..0b107170e3d 100644 --- a/samples/openapi3/client/petstore/python/docs/models/EnumTest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/EnumTest.md @@ -1,4 +1,4 @@ -# petstore_api.model.enum_test.EnumTest +# petstore_api.components.schema.enum_test.EnumTest ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -19,5 +19,5 @@ Key | Input Type | Accessed Type | Description | Notes **IntegerEnumOneValue** | [**IntegerEnumOneValue**](IntegerEnumOneValue.md) | [**IntegerEnumOneValue**](IntegerEnumOneValue.md) | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/EquilateralTriangle.md b/samples/openapi3/client/petstore/python/docs/components/schema/EquilateralTriangle.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/EquilateralTriangle.md rename to samples/openapi3/client/petstore/python/docs/components/schema/EquilateralTriangle.md index 96971a1c0c6..f5282cfa240 100644 --- a/samples/openapi3/client/petstore/python/docs/models/EquilateralTriangle.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/EquilateralTriangle.md @@ -1,4 +1,4 @@ -# petstore_api.model.equilateral_triangle.EquilateralTriangle +# petstore_api.components.schema.equilateral_triangle.EquilateralTriangle ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **triangleType** | str, | str, | | [optional] must be one of ["EquilateralTriangle", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/File.md b/samples/openapi3/client/petstore/python/docs/components/schema/File.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/File.md rename to samples/openapi3/client/petstore/python/docs/components/schema/File.md index d85669c84f5..e090b01f25b 100644 --- a/samples/openapi3/client/petstore/python/docs/models/File.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/File.md @@ -1,4 +1,4 @@ -# petstore_api.model.file.File +# petstore_api.components.schema.file.File Must be named `File` for test. @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **sourceURI** | str, | str, | Test capitalization | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/FileSchemaTestClass.md b/samples/openapi3/client/petstore/python/docs/components/schema/FileSchemaTestClass.md similarity index 82% rename from samples/openapi3/client/petstore/python/docs/models/FileSchemaTestClass.md rename to samples/openapi3/client/petstore/python/docs/components/schema/FileSchemaTestClass.md index 35dcfdca4ec..9d1688a8b64 100644 --- a/samples/openapi3/client/petstore/python/docs/models/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/FileSchemaTestClass.md @@ -1,4 +1,4 @@ -# petstore_api.model.file_schema_test_class.FileSchemaTestClass +# petstore_api.components.schema.file_schema_test_class.FileSchemaTestClass ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -24,5 +24,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**File**](File.md) | [**File**](File.md) | [**File**](File.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Foo.md b/samples/openapi3/client/petstore/python/docs/components/schema/Foo.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/Foo.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Foo.md index a7accdf8874..9dc36b516f7 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Foo.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Foo.md @@ -1,4 +1,4 @@ -# petstore_api.model.foo.Foo +# petstore_api.components.schema.foo.Foo ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **bar** | [**Bar**](Bar.md) | [**Bar**](Bar.md) | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/FormatTest.md b/samples/openapi3/client/petstore/python/docs/components/schema/FormatTest.md similarity index 92% rename from samples/openapi3/client/petstore/python/docs/models/FormatTest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/FormatTest.md index 55ca4583a1b..bbbc7f93c6f 100644 --- a/samples/openapi3/client/petstore/python/docs/models/FormatTest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/FormatTest.md @@ -1,4 +1,4 @@ -# petstore_api.model.format_test.FormatTest +# petstore_api.components.schema.format_test.FormatTest ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -43,5 +43,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | decimal.Decimal, int, float, | decimal.Decimal, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/FromSchema.md b/samples/openapi3/client/petstore/python/docs/components/schema/FromSchema.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/FromSchema.md rename to samples/openapi3/client/petstore/python/docs/components/schema/FromSchema.md index c11c63adb63..128a459ed7a 100644 --- a/samples/openapi3/client/petstore/python/docs/models/FromSchema.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/FromSchema.md @@ -1,4 +1,4 @@ -# petstore_api.model.from_schema.FromSchema +# petstore_api.components.schema.from_schema.FromSchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **id** | decimal.Decimal, int, | decimal.Decimal, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Fruit.md b/samples/openapi3/client/petstore/python/docs/components/schema/Fruit.md similarity index 84% rename from samples/openapi3/client/petstore/python/docs/models/Fruit.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Fruit.md index 44d670623fe..2362f653149 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Fruit.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Fruit.md @@ -1,4 +1,4 @@ -# petstore_api.model.fruit.Fruit +# petstore_api.components.schema.fruit.Fruit ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [Apple](Apple.md) | [**Apple**](Apple.md) | [**Apple**](Apple.md) | | [Banana](Banana.md) | [**Banana**](Banana.md) | [**Banana**](Banana.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/FruitReq.md b/samples/openapi3/client/petstore/python/docs/components/schema/FruitReq.md similarity index 80% rename from samples/openapi3/client/petstore/python/docs/models/FruitReq.md rename to samples/openapi3/client/petstore/python/docs/components/schema/FruitReq.md index c4c18e3e4c9..01522740311 100644 --- a/samples/openapi3/client/petstore/python/docs/models/FruitReq.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/FruitReq.md @@ -1,4 +1,4 @@ -# petstore_api.model.fruit_req.FruitReq +# petstore_api.components.schema.fruit_req.FruitReq ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -20,5 +20,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/GmFruit.md b/samples/openapi3/client/petstore/python/docs/components/schema/GmFruit.md similarity index 84% rename from samples/openapi3/client/petstore/python/docs/models/GmFruit.md rename to samples/openapi3/client/petstore/python/docs/components/schema/GmFruit.md index 6515df977c9..16c5958adb9 100644 --- a/samples/openapi3/client/petstore/python/docs/models/GmFruit.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/GmFruit.md @@ -1,4 +1,4 @@ -# petstore_api.model.gm_fruit.GmFruit +# petstore_api.components.schema.gm_fruit.GmFruit ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [Apple](Apple.md) | [**Apple**](Apple.md) | [**Apple**](Apple.md) | | [Banana](Banana.md) | [**Banana**](Banana.md) | [**Banana**](Banana.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/GrandparentAnimal.md b/samples/openapi3/client/petstore/python/docs/components/schema/GrandparentAnimal.md similarity index 74% rename from samples/openapi3/client/petstore/python/docs/models/GrandparentAnimal.md rename to samples/openapi3/client/petstore/python/docs/components/schema/GrandparentAnimal.md index 813fe61b95a..be80f7525f5 100644 --- a/samples/openapi3/client/petstore/python/docs/models/GrandparentAnimal.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/GrandparentAnimal.md @@ -1,4 +1,4 @@ -# petstore_api.model.grandparent_animal.GrandparentAnimal +# petstore_api.components.schema.grandparent_animal.GrandparentAnimal ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **pet_type** | str, | str, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/python/docs/components/schema/HasOnlyReadOnly.md similarity index 75% rename from samples/openapi3/client/petstore/python/docs/models/HasOnlyReadOnly.md rename to samples/openapi3/client/petstore/python/docs/components/schema/HasOnlyReadOnly.md index d9de17196fa..43e235c0dab 100644 --- a/samples/openapi3/client/petstore/python/docs/models/HasOnlyReadOnly.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/HasOnlyReadOnly.md @@ -1,4 +1,4 @@ -# petstore_api.model.has_only_read_only.HasOnlyReadOnly +# petstore_api.components.schema.has_only_read_only.HasOnlyReadOnly ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/HealthCheckResult.md b/samples/openapi3/client/petstore/python/docs/components/schema/HealthCheckResult.md similarity index 79% rename from samples/openapi3/client/petstore/python/docs/models/HealthCheckResult.md rename to samples/openapi3/client/petstore/python/docs/components/schema/HealthCheckResult.md index 0985cffd05e..9125a98114e 100644 --- a/samples/openapi3/client/petstore/python/docs/models/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/HealthCheckResult.md @@ -1,4 +1,4 @@ -# petstore_api.model.health_check_result.HealthCheckResult +# petstore_api.components.schema.health_check_result.HealthCheckResult Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **NullableMessage** | None, str, | NoneClass, str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnum.md b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnum.md new file mode 100644 index 00000000000..6e7d0d4d8b5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnum.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.integer_enum.IntegerEnum + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | must be one of [0, 1, 2, ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumBig.md b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumBig.md new file mode 100644 index 00000000000..d789c42cc8e --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumBig.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.integer_enum_big.IntegerEnumBig + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | must be one of [10, 11, 12, ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumOneValue.md b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumOneValue.md new file mode 100644 index 00000000000..aa93644ea0a --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumOneValue.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.integer_enum_one_value.IntegerEnumOneValue + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | must be one of [0, ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumWithDefaultValue.md b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumWithDefaultValue.md new file mode 100644 index 00000000000..aad73d3158c --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerEnumWithDefaultValue.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.integer_enum_with_default_value.IntegerEnumWithDefaultValue + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | must be one of [0, 1, 2, ] if omitted the server will use the default value of 0 + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/IntegerMax10.md b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerMax10.md new file mode 100644 index 00000000000..b35c091f6e6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerMax10.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.integer_max10.IntegerMax10 + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/IntegerMin15.md b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerMin15.md new file mode 100644 index 00000000000..936a27e2e2b --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IntegerMin15.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.integer_min15.IntegerMin15 + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/IsoscelesTriangle.md b/samples/openapi3/client/petstore/python/docs/components/schema/IsoscelesTriangle.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/IsoscelesTriangle.md rename to samples/openapi3/client/petstore/python/docs/components/schema/IsoscelesTriangle.md index 3a05686f411..a0de41e76d3 100644 --- a/samples/openapi3/client/petstore/python/docs/models/IsoscelesTriangle.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/IsoscelesTriangle.md @@ -1,4 +1,4 @@ -# petstore_api.model.isosceles_triangle.IsoscelesTriangle +# petstore_api.components.schema.isosceles_triangle.IsoscelesTriangle ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **triangleType** | str, | str, | | [optional] must be one of ["IsoscelesTriangle", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequest.md b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequest.md similarity index 87% rename from samples/openapi3/client/petstore/python/docs/models/JSONPatchRequest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequest.md index fbc12502927..dcb8b99656c 100644 --- a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequest.md @@ -1,4 +1,4 @@ -# petstore_api.model.json_patch_request.JSONPatchRequest +# petstore_api.components.schema.json_patch_request.JSONPatchRequest ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [JSONPatchRequestRemove](JSONPatchRequestRemove.md) | [**JSONPatchRequestRemove**](JSONPatchRequestRemove.md) | [**JSONPatchRequestRemove**](JSONPatchRequestRemove.md) | | [JSONPatchRequestMoveCopy](JSONPatchRequestMoveCopy.md) | [**JSONPatchRequestMoveCopy**](JSONPatchRequestMoveCopy.md) | [**JSONPatchRequestMoveCopy**](JSONPatchRequestMoveCopy.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestAddReplaceTest.md b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestAddReplaceTest.md similarity index 73% rename from samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestAddReplaceTest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestAddReplaceTest.md index a95e8f95743..398728421d9 100644 --- a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestAddReplaceTest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestAddReplaceTest.md @@ -1,4 +1,4 @@ -# petstore_api.model.json_patch_request_add_replace_test.JSONPatchRequestAddReplaceTest +# petstore_api.components.schema.json_patch_request_add_replace_test.JSONPatchRequestAddReplaceTest ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **path** | str, | str, | A JSON Pointer path. | **value** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | The value to add, replace or test. | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestMoveCopy.md b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestMoveCopy.md similarity index 66% rename from samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestMoveCopy.md rename to samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestMoveCopy.md index 56c8fac4b77..d96ac2b8ef9 100644 --- a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestMoveCopy.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestMoveCopy.md @@ -1,4 +1,4 @@ -# petstore_api.model.json_patch_request_move_copy.JSONPatchRequestMoveCopy +# petstore_api.components.schema.json_patch_request_move_copy.JSONPatchRequestMoveCopy ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **path** | str, | str, | A JSON Pointer path. | **from** | str, | str, | A JSON Pointer path. | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestRemove.md b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestRemove.md similarity index 64% rename from samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestRemove.md rename to samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestRemove.md index a57981c57c9..d96fe20420f 100644 --- a/samples/openapi3/client/petstore/python/docs/models/JSONPatchRequestRemove.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/JSONPatchRequestRemove.md @@ -1,4 +1,4 @@ -# petstore_api.model.json_patch_request_remove.JSONPatchRequestRemove +# petstore_api.components.schema.json_patch_request_remove.JSONPatchRequestRemove ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **op** | str, | str, | The operation to perform. | must be one of ["remove", ] **path** | str, | str, | A JSON Pointer path. | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Mammal.md b/samples/openapi3/client/petstore/python/docs/components/schema/Mammal.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/Mammal.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Mammal.md index 12ac20a8200..5e3c786455e 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Mammal.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Mammal.md @@ -1,4 +1,4 @@ -# petstore_api.model.mammal.Mammal +# petstore_api.components.schema.mammal.Mammal ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -13,5 +13,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [Zebra](Zebra.md) | [**Zebra**](Zebra.md) | [**Zebra**](Zebra.md) | | [Pig](Pig.md) | [**Pig**](Pig.md) | [**Pig**](Pig.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/MapTest.md b/samples/openapi3/client/petstore/python/docs/components/schema/MapTest.md similarity index 93% rename from samples/openapi3/client/petstore/python/docs/models/MapTest.md rename to samples/openapi3/client/petstore/python/docs/components/schema/MapTest.md index 68c8d882955..ce5d7c54f17 100644 --- a/samples/openapi3/client/petstore/python/docs/models/MapTest.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/MapTest.md @@ -1,4 +1,4 @@ -# petstore_api.model.map_test.MapTest +# petstore_api.components.schema.map_test.MapTest ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -62,5 +62,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | bool, | BoolClass, | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/python/docs/components/schema/MixedPropertiesAndAdditionalPropertiesClass.md similarity index 82% rename from samples/openapi3/client/petstore/python/docs/models/MixedPropertiesAndAdditionalPropertiesClass.md rename to samples/openapi3/client/petstore/python/docs/components/schema/MixedPropertiesAndAdditionalPropertiesClass.md index f85a43f4c7d..b6795682546 100644 --- a/samples/openapi3/client/petstore/python/docs/models/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/MixedPropertiesAndAdditionalPropertiesClass.md @@ -1,4 +1,4 @@ -# petstore_api.model.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass +# petstore_api.components.schema.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | [**Animal**](Animal.md) | [**Animal**](Animal.md) | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Model200Response.md b/samples/openapi3/client/petstore/python/docs/components/schema/Model200Response.md similarity index 82% rename from samples/openapi3/client/petstore/python/docs/models/Model200Response.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Model200Response.md index 90e17dd402b..40d1c5743ef 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Model200Response.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Model200Response.md @@ -1,4 +1,4 @@ -# petstore_api.model.model200_response.Model200Response +# petstore_api.components.schema.model200_response.Model200Response model with an invalid class name for python, starts with a number @@ -14,5 +14,5 @@ Key | Input Type | Accessed Type | Description | Notes **class** | str, | str, | this is a reserved python keyword | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ModelReturn.md b/samples/openapi3/client/petstore/python/docs/components/schema/ModelReturn.md similarity index 81% rename from samples/openapi3/client/petstore/python/docs/models/ModelReturn.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ModelReturn.md index d896e1fbacb..7771fc9f72f 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ModelReturn.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ModelReturn.md @@ -1,4 +1,4 @@ -# petstore_api.model.model_return.ModelReturn +# petstore_api.components.schema.model_return.ModelReturn Model for testing reserved words @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **return** | decimal.Decimal, int, | decimal.Decimal, | this is a reserved python keyword | [optional] value must be a 32 bit integer **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Money.md b/samples/openapi3/client/petstore/python/docs/components/schema/Money.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/Money.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Money.md index f6e182a846d..72c8d4b6e7a 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Money.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Money.md @@ -1,4 +1,4 @@ -# petstore_api.model.money.Money +# petstore_api.components.schema.money.Money ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **currency** | [**Currency**](Currency.md) | [**Currency**](Currency.md) | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Name.md b/samples/openapi3/client/petstore/python/docs/components/schema/Name.md similarity index 84% rename from samples/openapi3/client/petstore/python/docs/models/Name.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Name.md index 9e53cbabab1..20b8724b3c6 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Name.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Name.md @@ -1,4 +1,4 @@ -# petstore_api.model.name.Name +# petstore_api.components.schema.name.Name Model for testing model name same as property name @@ -15,5 +15,5 @@ Key | Input Type | Accessed Type | Description | Notes **property** | str, | str, | this is a reserved python keyword | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/NoAdditionalProperties.md b/samples/openapi3/client/petstore/python/docs/components/schema/NoAdditionalProperties.md similarity index 67% rename from samples/openapi3/client/petstore/python/docs/models/NoAdditionalProperties.md rename to samples/openapi3/client/petstore/python/docs/components/schema/NoAdditionalProperties.md index 70e6c8c1205..a990ea8cb47 100644 --- a/samples/openapi3/client/petstore/python/docs/models/NoAdditionalProperties.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/NoAdditionalProperties.md @@ -1,4 +1,4 @@ -# petstore_api.model.no_additional_properties.NoAdditionalProperties +# petstore_api.components.schema.no_additional_properties.NoAdditionalProperties ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **id** | decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer **petId** | decimal.Decimal, int, | decimal.Decimal, | | [optional] value must be a 64 bit integer -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/NullableClass.md b/samples/openapi3/client/petstore/python/docs/components/schema/NullableClass.md similarity index 96% rename from samples/openapi3/client/petstore/python/docs/models/NullableClass.md rename to samples/openapi3/client/petstore/python/docs/components/schema/NullableClass.md index d9ad1059145..076c411f5bb 100644 --- a/samples/openapi3/client/petstore/python/docs/models/NullableClass.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/NullableClass.md @@ -1,4 +1,4 @@ -# petstore_api.model.nullable_class.NullableClass +# petstore_api.components.schema.nullable_class.NullableClass ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -143,5 +143,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, None, | frozendict.frozendict, NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/NullableShape.md b/samples/openapi3/client/petstore/python/docs/components/schema/NullableShape.md similarity index 85% rename from samples/openapi3/client/petstore/python/docs/models/NullableShape.md rename to samples/openapi3/client/petstore/python/docs/components/schema/NullableShape.md index 9871dfe1e10..cc4c79ec7b2 100644 --- a/samples/openapi3/client/petstore/python/docs/models/NullableShape.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/NullableShape.md @@ -1,4 +1,4 @@ -# petstore_api.model.nullable_shape.NullableShape +# petstore_api.components.schema.nullable_shape.NullableShape The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) @@ -22,5 +22,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/NullableString.md b/samples/openapi3/client/petstore/python/docs/components/schema/NullableString.md new file mode 100644 index 00000000000..907ea98a02e --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/NullableString.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.nullable_string.NullableString + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +None, str, | NoneClass, str, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/Number.md b/samples/openapi3/client/petstore/python/docs/components/schema/Number.md new file mode 100644 index 00000000000..3bcdd6a356f --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Number.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.number.Number + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, float, | decimal.Decimal, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/NumberOnly.md b/samples/openapi3/client/petstore/python/docs/components/schema/NumberOnly.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/NumberOnly.md rename to samples/openapi3/client/petstore/python/docs/components/schema/NumberOnly.md index 42996c4e4cd..6013aad72b5 100644 --- a/samples/openapi3/client/petstore/python/docs/models/NumberOnly.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/NumberOnly.md @@ -1,4 +1,4 @@ -# petstore_api.model.number_only.NumberOnly +# petstore_api.components.schema.number_only.NumberOnly ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **JustNumber** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/NumberWithValidations.md b/samples/openapi3/client/petstore/python/docs/components/schema/NumberWithValidations.md new file mode 100644 index 00000000000..4aeef70157d --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/NumberWithValidations.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.number_with_validations.NumberWithValidations + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, float, | decimal.Decimal, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/ObjectInterface.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectInterface.md new file mode 100644 index 00000000000..84030d18534 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectInterface.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.object_interface.ObjectInterface + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +dict, frozendict.frozendict, | frozendict.frozendict, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectModelWithRefProps.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectModelWithRefProps.md similarity index 82% rename from samples/openapi3/client/petstore/python/docs/models/ObjectModelWithRefProps.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectModelWithRefProps.md index 6fe20b1c886..a6aed6086b4 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectModelWithRefProps.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectModelWithRefProps.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_model_with_ref_props.ObjectModelWithRefProps +# petstore_api.components.schema.object_model_with_ref_props.ObjectModelWithRefProps a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations @@ -15,5 +15,5 @@ Key | Input Type | Accessed Type | Description | Notes **myBoolean** | [**Boolean**](Boolean.md) | [**Boolean**](Boolean.md) | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md similarity index 85% rename from samples/openapi3/client/petstore/python/docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index 6c4f1033e0e..0bc7bdc91a9 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop.ObjectWithAllOfWithReqTestPropFromUnsetAddProp +# petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop.ObjectWithAllOfWithReqTestPropFromUnsetAddProp ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Key | Input Type | Accessed Type | Description | Notes **name** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithDecimalProperties.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithDecimalProperties.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/ObjectWithDecimalProperties.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithDecimalProperties.md index dc1e9cd6d53..5cea4c194df 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithDecimalProperties.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithDecimalProperties.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_with_decimal_properties.ObjectWithDecimalProperties +# petstore_api.components.schema.object_with_decimal_properties.ObjectWithDecimalProperties ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **cost** | [**Money**](Money.md) | [**Money**](Money.md) | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithDifficultlyNamedProps.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithDifficultlyNamedProps.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/ObjectWithDifficultlyNamedProps.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithDifficultlyNamedProps.md index 13ca7fa1458..bde5660e4f5 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithDifficultlyNamedProps.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithDifficultlyNamedProps.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_with_difficultly_named_props.ObjectWithDifficultlyNamedProps +# petstore_api.components.schema.object_with_difficultly_named_props.ObjectWithDifficultlyNamedProps model with properties that have invalid names for python @@ -15,5 +15,5 @@ Key | Input Type | Accessed Type | Description | Notes **123Number** | decimal.Decimal, int, | decimal.Decimal, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithInlineCompositionProperty.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithInlineCompositionProperty.md similarity index 85% rename from samples/openapi3/client/petstore/python/docs/models/ObjectWithInlineCompositionProperty.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithInlineCompositionProperty.md index ddf1df42175..0ca05ed56b8 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithInlineCompositionProperty.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithInlineCompositionProperty.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_with_inline_composition_property.ObjectWithInlineCompositionProperty +# petstore_api.components.schema.object_with_inline_composition_property.ObjectWithInlineCompositionProperty ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -31,5 +31,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- str, | str, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithInvalidNamedRefedProperties.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithInvalidNamedRefedProperties.md similarity index 75% rename from samples/openapi3/client/petstore/python/docs/models/ObjectWithInvalidNamedRefedProperties.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithInvalidNamedRefedProperties.md index d3762cc45cc..68e796671de 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithInvalidNamedRefedProperties.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_with_invalid_named_refed_properties.ObjectWithInvalidNamedRefedProperties +# petstore_api.components.schema.object_with_invalid_named_refed_properties.ObjectWithInvalidNamedRefedProperties ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **from** | [**FromSchema**](FromSchema.md) | [**FromSchema**](FromSchema.md) | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithOptionalTestProp.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithOptionalTestProp.md similarity index 72% rename from samples/openapi3/client/petstore/python/docs/models/ObjectWithOptionalTestProp.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithOptionalTestProp.md index 2f437c22d07..210633c0777 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithOptionalTestProp.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithOptionalTestProp.md @@ -1,4 +1,4 @@ -# petstore_api.model.object_with_optional_test_prop.ObjectWithOptionalTestProp +# petstore_api.components.schema.object_with_optional_test_prop.ObjectWithOptionalTestProp ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **test** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithValidations.md b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithValidations.md new file mode 100644 index 00000000000..539be2ad1fc --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ObjectWithValidations.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.object_with_validations.ObjectWithValidations + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +dict, frozendict.frozendict, | frozendict.frozendict, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/Order.md b/samples/openapi3/client/petstore/python/docs/components/schema/Order.md similarity index 85% rename from samples/openapi3/client/petstore/python/docs/models/Order.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Order.md index 0007dc9178d..12cbc162339 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Order.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Order.md @@ -1,4 +1,4 @@ -# petstore_api.model.order.Order +# petstore_api.components.schema.order.Order ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -16,5 +16,5 @@ Key | Input Type | Accessed Type | Description | Notes **complete** | bool, | BoolClass, | | [optional] if omitted the server will use the default value of False **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ParentPet.md b/samples/openapi3/client/petstore/python/docs/components/schema/ParentPet.md similarity index 69% rename from samples/openapi3/client/petstore/python/docs/models/ParentPet.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ParentPet.md index 1baad19537f..473416ed6a7 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ParentPet.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ParentPet.md @@ -1,4 +1,4 @@ -# petstore_api.model.parent_pet.ParentPet +# petstore_api.components.schema.parent_pet.ParentPet ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [GrandparentAnimal](GrandparentAnimal.md) | [**GrandparentAnimal**](GrandparentAnimal.md) | [**GrandparentAnimal**](GrandparentAnimal.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Pet.md b/samples/openapi3/client/petstore/python/docs/components/schema/Pet.md similarity index 89% rename from samples/openapi3/client/petstore/python/docs/models/Pet.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Pet.md index eacf6aa431d..e238c27eaab 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Pet.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Pet.md @@ -1,4 +1,4 @@ -# petstore_api.model.pet.Pet +# petstore_api.components.schema.pet.Pet Pet object that needs to be added to the store @@ -42,5 +42,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**Tag**](Tag.md) | [**Tag**](Tag.md) | [**Tag**](Tag.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Pig.md b/samples/openapi3/client/petstore/python/docs/components/schema/Pig.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/Pig.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Pig.md index 33a8aca85ea..8b78add082a 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Pig.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Pig.md @@ -1,4 +1,4 @@ -# petstore_api.model.pig.Pig +# petstore_api.components.schema.pig.Pig ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [BasquePig](BasquePig.md) | [**BasquePig**](BasquePig.md) | [**BasquePig**](BasquePig.md) | | [DanishPig](DanishPig.md) | [**DanishPig**](DanishPig.md) | [**DanishPig**](DanishPig.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Player.md b/samples/openapi3/client/petstore/python/docs/components/schema/Player.md similarity index 84% rename from samples/openapi3/client/petstore/python/docs/models/Player.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Player.md index 98ec6b5d152..d8cbd34f16d 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Player.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Player.md @@ -1,4 +1,4 @@ -# petstore_api.model.player.Player +# petstore_api.components.schema.player.Player a model that includes a self reference this forces properties and additionalProperties to be lazy loaded in python models because the Player class has not fully loaded when defining properties @@ -14,5 +14,5 @@ Key | Input Type | Accessed Type | Description | Notes **enemyPlayer** | [**Player**](Player.md) | [**Player**](Player.md) | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Quadrilateral.md b/samples/openapi3/client/petstore/python/docs/components/schema/Quadrilateral.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/Quadrilateral.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Quadrilateral.md index 55f18627244..ca3ceb351e1 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Quadrilateral.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Quadrilateral.md @@ -1,4 +1,4 @@ -# petstore_api.model.quadrilateral.Quadrilateral +# petstore_api.components.schema.quadrilateral.Quadrilateral ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [SimpleQuadrilateral](SimpleQuadrilateral.md) | [**SimpleQuadrilateral**](SimpleQuadrilateral.md) | [**SimpleQuadrilateral**](SimpleQuadrilateral.md) | | [ComplexQuadrilateral](ComplexQuadrilateral.md) | [**ComplexQuadrilateral**](ComplexQuadrilateral.md) | [**ComplexQuadrilateral**](ComplexQuadrilateral.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/QuadrilateralInterface.md b/samples/openapi3/client/petstore/python/docs/components/schema/QuadrilateralInterface.md similarity index 79% rename from samples/openapi3/client/petstore/python/docs/models/QuadrilateralInterface.md rename to samples/openapi3/client/petstore/python/docs/components/schema/QuadrilateralInterface.md index 8344d0ffbaf..fec8652404b 100644 --- a/samples/openapi3/client/petstore/python/docs/models/QuadrilateralInterface.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/QuadrilateralInterface.md @@ -1,4 +1,4 @@ -# petstore_api.model.quadrilateral_interface.QuadrilateralInterface +# petstore_api.components.schema.quadrilateral_interface.QuadrilateralInterface ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **quadrilateralType** | str, | str, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ReadOnlyFirst.md b/samples/openapi3/client/petstore/python/docs/components/schema/ReadOnlyFirst.md similarity index 75% rename from samples/openapi3/client/petstore/python/docs/models/ReadOnlyFirst.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ReadOnlyFirst.md index a8f4053a418..2a94f1a7674 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ReadOnlyFirst.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ReadOnlyFirst.md @@ -1,4 +1,4 @@ -# petstore_api.model.read_only_first.ReadOnlyFirst +# petstore_api.components.schema.read_only_first.ReadOnlyFirst ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **baz** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ScaleneTriangle.md b/samples/openapi3/client/petstore/python/docs/components/schema/ScaleneTriangle.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/ScaleneTriangle.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ScaleneTriangle.md index dde662e47e2..23b904e8d99 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ScaleneTriangle.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ScaleneTriangle.md @@ -1,4 +1,4 @@ -# petstore_api.model.scalene_triangle.ScaleneTriangle +# petstore_api.components.schema.scalene_triangle.ScaleneTriangle ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **triangleType** | str, | str, | | [optional] must be one of ["ScaleneTriangle", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Shape.md b/samples/openapi3/client/petstore/python/docs/components/schema/Shape.md similarity index 77% rename from samples/openapi3/client/petstore/python/docs/models/Shape.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Shape.md index f8bec209ec2..5f8d5d853e5 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Shape.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Shape.md @@ -1,4 +1,4 @@ -# petstore_api.model.shape.Shape +# petstore_api.components.schema.shape.Shape ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [Triangle](Triangle.md) | [**Triangle**](Triangle.md) | [**Triangle**](Triangle.md) | | [Quadrilateral](Quadrilateral.md) | [**Quadrilateral**](Quadrilateral.md) | [**Quadrilateral**](Quadrilateral.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/ShapeOrNull.md b/samples/openapi3/client/petstore/python/docs/components/schema/ShapeOrNull.md similarity index 83% rename from samples/openapi3/client/petstore/python/docs/models/ShapeOrNull.md rename to samples/openapi3/client/petstore/python/docs/components/schema/ShapeOrNull.md index 908b69e0587..27c1652cda5 100644 --- a/samples/openapi3/client/petstore/python/docs/models/ShapeOrNull.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/ShapeOrNull.md @@ -1,4 +1,4 @@ -# petstore_api.model.shape_or_null.ShapeOrNull +# petstore_api.components.schema.shape_or_null.ShapeOrNull The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. @@ -22,5 +22,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/SimpleQuadrilateral.md b/samples/openapi3/client/petstore/python/docs/components/schema/SimpleQuadrilateral.md similarity index 86% rename from samples/openapi3/client/petstore/python/docs/models/SimpleQuadrilateral.md rename to samples/openapi3/client/petstore/python/docs/components/schema/SimpleQuadrilateral.md index 288684f5dcc..2cc1f17ba45 100644 --- a/samples/openapi3/client/petstore/python/docs/models/SimpleQuadrilateral.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/SimpleQuadrilateral.md @@ -1,4 +1,4 @@ -# petstore_api.model.simple_quadrilateral.SimpleQuadrilateral +# petstore_api.components.schema.simple_quadrilateral.SimpleQuadrilateral ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -25,5 +25,5 @@ Key | Input Type | Accessed Type | Description | Notes **quadrilateralType** | str, | str, | | [optional] must be one of ["SimpleQuadrilateral", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/SomeObject.md b/samples/openapi3/client/petstore/python/docs/components/schema/SomeObject.md similarity index 75% rename from samples/openapi3/client/petstore/python/docs/models/SomeObject.md rename to samples/openapi3/client/petstore/python/docs/components/schema/SomeObject.md index 7599329a36d..ddfdff88f58 100644 --- a/samples/openapi3/client/petstore/python/docs/models/SomeObject.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/SomeObject.md @@ -1,4 +1,4 @@ -# petstore_api.model.some_object.SomeObject +# petstore_api.components.schema.some_object.SomeObject ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [ObjectInterface](ObjectInterface.md) | [**ObjectInterface**](ObjectInterface.md) | [**ObjectInterface**](ObjectInterface.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/SpecialModelName.md b/samples/openapi3/client/petstore/python/docs/components/schema/SpecialModelName.md similarity index 76% rename from samples/openapi3/client/petstore/python/docs/models/SpecialModelName.md rename to samples/openapi3/client/petstore/python/docs/components/schema/SpecialModelName.md index f40d98660aa..8b2463f8a88 100644 --- a/samples/openapi3/client/petstore/python/docs/models/SpecialModelName.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/SpecialModelName.md @@ -1,4 +1,4 @@ -# petstore_api.model.special_model_name.SpecialModelName +# petstore_api.components.schema.special_model_name.SpecialModelName model with an invalid class name for python @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **a** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/String.md b/samples/openapi3/client/petstore/python/docs/components/schema/String.md new file mode 100644 index 00000000000..a5d522d07b8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/String.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.string.String + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/StringBooleanMap.md b/samples/openapi3/client/petstore/python/docs/components/schema/StringBooleanMap.md similarity index 65% rename from samples/openapi3/client/petstore/python/docs/models/StringBooleanMap.md rename to samples/openapi3/client/petstore/python/docs/components/schema/StringBooleanMap.md index 48f1fe881e2..e2062d7f64e 100644 --- a/samples/openapi3/client/petstore/python/docs/models/StringBooleanMap.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/StringBooleanMap.md @@ -1,4 +1,4 @@ -# petstore_api.model.string_boolean_map.StringBooleanMap +# petstore_api.components.schema.string_boolean_map.StringBooleanMap ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | bool, | BoolClass, | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/StringEnum.md b/samples/openapi3/client/petstore/python/docs/components/schema/StringEnum.md similarity index 55% rename from samples/openapi3/client/petstore/python/docs/models/StringEnum.md rename to samples/openapi3/client/petstore/python/docs/components/schema/StringEnum.md index 06c26a7a1ac..546b38cca2b 100644 --- a/samples/openapi3/client/petstore/python/docs/models/StringEnum.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/StringEnum.md @@ -1,9 +1,9 @@ -# petstore_api.model.string_enum.StringEnum +# petstore_api.components.schema.string_enum.StringEnum ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, str, | NoneClass, str, | | must be one of ["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline", None, ] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/StringEnumWithDefaultValue.md b/samples/openapi3/client/petstore/python/docs/components/schema/StringEnumWithDefaultValue.md new file mode 100644 index 00000000000..1559c46968a --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/StringEnumWithDefaultValue.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.string_enum_with_default_value.StringEnumWithDefaultValue + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | must be one of ["placed", "approved", "delivered", ] if omitted the server will use the default value of "placed" + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/StringWithValidation.md b/samples/openapi3/client/petstore/python/docs/components/schema/StringWithValidation.md new file mode 100644 index 00000000000..1d5c712df16 --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/StringWithValidation.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.string_with_validation.StringWithValidation + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/Tag.md b/samples/openapi3/client/petstore/python/docs/components/schema/Tag.md similarity index 78% rename from samples/openapi3/client/petstore/python/docs/models/Tag.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Tag.md index 7e61a1fffa9..1e7534a61c2 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Tag.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Tag.md @@ -1,4 +1,4 @@ -# petstore_api.model.tag.Tag +# petstore_api.components.schema.tag.Tag ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **name** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Triangle.md b/samples/openapi3/client/petstore/python/docs/components/schema/Triangle.md similarity index 81% rename from samples/openapi3/client/petstore/python/docs/models/Triangle.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Triangle.md index c89258b99fe..0a278109d09 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Triangle.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Triangle.md @@ -1,4 +1,4 @@ -# petstore_api.model.triangle.Triangle +# petstore_api.components.schema.triangle.Triangle ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -13,5 +13,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [IsoscelesTriangle](IsoscelesTriangle.md) | [**IsoscelesTriangle**](IsoscelesTriangle.md) | [**IsoscelesTriangle**](IsoscelesTriangle.md) | | [ScaleneTriangle](ScaleneTriangle.md) | [**ScaleneTriangle**](ScaleneTriangle.md) | [**ScaleneTriangle**](ScaleneTriangle.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/TriangleInterface.md b/samples/openapi3/client/petstore/python/docs/components/schema/TriangleInterface.md similarity index 79% rename from samples/openapi3/client/petstore/python/docs/models/TriangleInterface.md rename to samples/openapi3/client/petstore/python/docs/components/schema/TriangleInterface.md index 259594c7880..762f8a7ab5d 100644 --- a/samples/openapi3/client/petstore/python/docs/models/TriangleInterface.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/TriangleInterface.md @@ -1,4 +1,4 @@ -# petstore_api.model.triangle_interface.TriangleInterface +# petstore_api.components.schema.triangle_interface.TriangleInterface ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **triangleType** | str, | str, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/components/schema/UUIDString.md b/samples/openapi3/client/petstore/python/docs/components/schema/UUIDString.md new file mode 100644 index 00000000000..f4187aeda3d --- /dev/null +++ b/samples/openapi3/client/petstore/python/docs/components/schema/UUIDString.md @@ -0,0 +1,9 @@ +# petstore_api.components.schema.uuid_string.UUIDString + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, uuid.UUID, | str, | | value must be a uuid + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/petstore/python/docs/models/User.md b/samples/openapi3/client/petstore/python/docs/components/schema/User.md similarity index 96% rename from samples/openapi3/client/petstore/python/docs/models/User.md rename to samples/openapi3/client/petstore/python/docs/components/schema/User.md index 11da137c640..45a006b4fcc 100644 --- a/samples/openapi3/client/petstore/python/docs/models/User.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/User.md @@ -1,4 +1,4 @@ -# petstore_api.model.user.User +# petstore_api.components.schema.user.User ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -63,5 +63,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Whale.md b/samples/openapi3/client/petstore/python/docs/components/schema/Whale.md similarity index 79% rename from samples/openapi3/client/petstore/python/docs/models/Whale.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Whale.md index bd92a1048d4..76c6f21d84d 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Whale.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Whale.md @@ -1,4 +1,4 @@ -# petstore_api.model.whale.Whale +# petstore_api.components.schema.whale.Whale ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -13,5 +13,5 @@ Key | Input Type | Accessed Type | Description | Notes **hasTeeth** | bool, | BoolClass, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Zebra.md b/samples/openapi3/client/petstore/python/docs/components/schema/Zebra.md similarity index 79% rename from samples/openapi3/client/petstore/python/docs/models/Zebra.md rename to samples/openapi3/client/petstore/python/docs/components/schema/Zebra.md index c710364ef8c..6eb11652560 100644 --- a/samples/openapi3/client/petstore/python/docs/models/Zebra.md +++ b/samples/openapi3/client/petstore/python/docs/components/schema/Zebra.md @@ -1,4 +1,4 @@ -# petstore_api.model.zebra.Zebra +# petstore_api.components.schema.zebra.Zebra ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **type** | str, | str, | | [optional] must be one of ["plains", "mountain", "grevys", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/petstore/python/docs/models/Bar.md b/samples/openapi3/client/petstore/python/docs/models/Bar.md deleted file mode 100644 index 55aa05fa180..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/Bar.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.bar.Bar - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | if omitted the server will use the default value of "bar" - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/Boolean.md b/samples/openapi3/client/petstore/python/docs/models/Boolean.md deleted file mode 100644 index c2e0e952aca..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/Boolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.boolean.Boolean - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/BooleanEnum.md b/samples/openapi3/client/petstore/python/docs/models/BooleanEnum.md deleted file mode 100644 index a84330415cb..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/BooleanEnum.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.boolean_enum.BooleanEnum - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | must be one of [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) - diff --git a/samples/openapi3/client/petstore/python/docs/models/Currency.md b/samples/openapi3/client/petstore/python/docs/models/Currency.md deleted file mode 100644 index eeb1c6a47db..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/Currency.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.currency.Currency - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["eur", "usd", ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/DateTimeWithValidations.md b/samples/openapi3/client/petstore/python/docs/models/DateTimeWithValidations.md deleted file mode 100644 index ed7dfc06d13..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/DateTimeWithValidations.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.date_time_with_validations.DateTimeWithValidations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime, | str, | | value must conform to RFC-3339 date-time - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/DateWithValidations.md b/samples/openapi3/client/petstore/python/docs/models/DateWithValidations.md deleted file mode 100644 index 97901a33f55..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/DateWithValidations.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.date_with_validations.DateWithValidations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, date, | str, | | value must conform to RFC-3339 full-date YYYY-MM-DD - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/DecimalPayload.md b/samples/openapi3/client/petstore/python/docs/models/DecimalPayload.md deleted file mode 100644 index 26ef601ff9f..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/DecimalPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.decimal_payload.DecimalPayload - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | value must be numeric and storable in decimal.Decimal - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/IntegerEnum.md b/samples/openapi3/client/petstore/python/docs/models/IntegerEnum.md deleted file mode 100644 index 59dd6239f78..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/IntegerEnum.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.integer_enum.IntegerEnum - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | must be one of [0, 1, 2, ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/IntegerEnumBig.md b/samples/openapi3/client/petstore/python/docs/models/IntegerEnumBig.md deleted file mode 100644 index d4891543c05..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/IntegerEnumBig.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.integer_enum_big.IntegerEnumBig - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | must be one of [10, 11, 12, ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/IntegerEnumOneValue.md b/samples/openapi3/client/petstore/python/docs/models/IntegerEnumOneValue.md deleted file mode 100644 index c2dd787bc57..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/IntegerEnumOneValue.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.integer_enum_one_value.IntegerEnumOneValue - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | must be one of [0, ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/IntegerEnumWithDefaultValue.md b/samples/openapi3/client/petstore/python/docs/models/IntegerEnumWithDefaultValue.md deleted file mode 100644 index 4eef737f884..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/IntegerEnumWithDefaultValue.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.integer_enum_with_default_value.IntegerEnumWithDefaultValue - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | must be one of [0, 1, 2, ] if omitted the server will use the default value of 0 - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/IntegerMax10.md b/samples/openapi3/client/petstore/python/docs/models/IntegerMax10.md deleted file mode 100644 index 93f3c282521..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/IntegerMax10.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.integer_max10.IntegerMax10 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/IntegerMin15.md b/samples/openapi3/client/petstore/python/docs/models/IntegerMin15.md deleted file mode 100644 index 1a900cf7b43..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/IntegerMin15.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.integer_min15.IntegerMin15 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | value must be a 64 bit integer - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/NullableString.md b/samples/openapi3/client/petstore/python/docs/models/NullableString.md deleted file mode 100644 index 60b4aba3168..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/NullableString.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.nullable_string.NullableString - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, str, | NoneClass, str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/Number.md b/samples/openapi3/client/petstore/python/docs/models/Number.md deleted file mode 100644 index b1172e284fc..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/Number.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.number.Number - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/NumberWithValidations.md b/samples/openapi3/client/petstore/python/docs/models/NumberWithValidations.md deleted file mode 100644 index fac4f59efe7..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/NumberWithValidations.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.number_with_validations.NumberWithValidations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectInterface.md b/samples/openapi3/client/petstore/python/docs/models/ObjectInterface.md deleted file mode 100644 index e818da00c6f..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectInterface.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.object_interface.ObjectInterface - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/ObjectWithValidations.md b/samples/openapi3/client/petstore/python/docs/models/ObjectWithValidations.md deleted file mode 100644 index be9d36e49b6..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/ObjectWithValidations.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.object_with_validations.ObjectWithValidations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/String.md b/samples/openapi3/client/petstore/python/docs/models/String.md deleted file mode 100644 index 75fc685c2ca..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/String.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.string.String - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/StringEnumWithDefaultValue.md b/samples/openapi3/client/petstore/python/docs/models/StringEnumWithDefaultValue.md deleted file mode 100644 index 028f1b3733c..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/StringEnumWithDefaultValue.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.string_enum_with_default_value.StringEnumWithDefaultValue - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["placed", "approved", "delivered", ] if omitted the server will use the default value of "placed" - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/StringWithValidation.md b/samples/openapi3/client/petstore/python/docs/models/StringWithValidation.md deleted file mode 100644 index 3effe032b8c..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/StringWithValidation.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.string_with_validation.StringWithValidation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/docs/models/UUIDString.md b/samples/openapi3/client/petstore/python/docs/models/UUIDString.md deleted file mode 100644 index 020676d5843..00000000000 --- a/samples/openapi3/client/petstore/python/docs/models/UUIDString.md +++ /dev/null @@ -1,9 +0,0 @@ -# petstore_api.model.uuid_string.UUIDString - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, uuid.UUID, | str, | | value must be a uuid - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py deleted file mode 100644 index 79ca58cf230..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/components.schema/additional_properties_class.py +++ /dev/null @@ -1,307 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class map_property( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_property': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class map_of_map_property( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'map_of_map_property': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anytype_1 = schemas.AnyTypeSchema - map_with_undeclared_properties_anytype_1 = schemas.DictSchema - map_with_undeclared_properties_anytype_2 = schemas.DictSchema - - - class map_with_undeclared_properties_anytype_3( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.AnyTypeSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'map_with_undeclared_properties_anytype_3': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class empty_map( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.NotAnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'empty_map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class map_with_undeclared_properties_string( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_with_undeclared_properties_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "map_property": map_property, - "map_of_map_property": map_of_map_property, - "anytype_1": anytype_1, - "map_with_undeclared_properties_anytype_1": map_with_undeclared_properties_anytype_1, - "map_with_undeclared_properties_anytype_2": map_with_undeclared_properties_anytype_2, - "map_with_undeclared_properties_anytype_3": map_with_undeclared_properties_anytype_3, - "empty_map": empty_map, - "map_with_undeclared_properties_string": map_with_undeclared_properties_string, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - map_property: typing.Union[MetaOapg.properties.map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_of_map_property: typing.Union[MetaOapg.properties.map_of_map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - anytype_1: typing.Union[MetaOapg.properties.anytype_1, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_1: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_2: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_3: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - empty_map: typing.Union[MetaOapg.properties.empty_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_string: typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalPropertiesClass': - return super().__new__( - cls, - *args, - map_property=map_property, - map_of_map_property=map_of_map_property, - anytype_1=anytype_1, - map_with_undeclared_properties_anytype_1=map_with_undeclared_properties_anytype_1, - map_with_undeclared_properties_anytype_2=map_with_undeclared_properties_anytype_2, - map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3, - empty_map=empty_map, - map_with_undeclared_properties_string=map_with_undeclared_properties_string, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/components/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/__init__.py similarity index 100% rename from samples/openapi3/client/petstore/python/petstore_api/model/__init__.py rename to samples/openapi3/client/petstore/python/petstore_api/components/schema/__init__.py diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schemas/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/components/schemas/__init__.py new file mode 100644 index 00000000000..e0863ab0234 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schemas/__init__.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +# flake8: noqa + +# import all models into this package +# if you have many models here with many references from one model to another this may +# raise a RecursionError +# to avoid this, import only the models that you directly need like: +# from from petstore_api.components.schema.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from petstore_api.components.schema.additional_properties_class import AdditionalPropertiesClass +from petstore_api.components.schema.additional_properties_validator import AdditionalPropertiesValidator +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.address import Address +from petstore_api.components.schema.animal import Animal +from petstore_api.components.schema.animal_farm import AnimalFarm +from petstore_api.components.schema.any_type_and_format import AnyTypeAndFormat +from petstore_api.components.schema.any_type_not_string import AnyTypeNotString +from petstore_api.components.schema.api_response import ApiResponse +from petstore_api.components.schema.apple import Apple +from petstore_api.components.schema.apple_req import AppleReq +from petstore_api.components.schema.array_holding_any_type import ArrayHoldingAnyType +from petstore_api.components.schema.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly +from petstore_api.components.schema.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_number_only import ArrayOfNumberOnly +from petstore_api.components.schema.array_test import ArrayTest +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api.components.schema.banana import Banana +from petstore_api.components.schema.banana_req import BananaReq +from petstore_api.components.schema.bar import Bar +from petstore_api.components.schema.basque_pig import BasquePig +from petstore_api.components.schema.boolean import Boolean +from petstore_api.components.schema.boolean_enum import BooleanEnum +from petstore_api.components.schema.capitalization import Capitalization +from petstore_api.components.schema.cat import Cat +from petstore_api.components.schema.category import Category +from petstore_api.components.schema.child_cat import ChildCat +from petstore_api.components.schema.class_model import ClassModel +from petstore_api.components.schema.client import Client +from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral +from petstore_api.components.schema.composed_any_of_different_types_no_validations import ComposedAnyOfDifferentTypesNoValidations +from petstore_api.components.schema.composed_array import ComposedArray +from petstore_api.components.schema.composed_bool import ComposedBool +from petstore_api.components.schema.composed_none import ComposedNone +from petstore_api.components.schema.composed_number import ComposedNumber +from petstore_api.components.schema.composed_object import ComposedObject +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_string import ComposedString +from petstore_api.components.schema.currency import Currency +from petstore_api.components.schema.danish_pig import DanishPig +from petstore_api.components.schema.date_time_test import DateTimeTest +from petstore_api.components.schema.date_time_with_validations import DateTimeWithValidations +from petstore_api.components.schema.date_with_validations import DateWithValidations +from petstore_api.components.schema.decimal_payload import DecimalPayload +from petstore_api.components.schema.dog import Dog +from petstore_api.components.schema.drawing import Drawing +from petstore_api.components.schema.enum_arrays import EnumArrays +from petstore_api.components.schema.enum_class import EnumClass +from petstore_api.components.schema.enum_test import EnumTest +from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle +from petstore_api.components.schema.file import File +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass +from petstore_api.components.schema.foo import Foo +from petstore_api.components.schema.format_test import FormatTest +from petstore_api.components.schema.from_schema import FromSchema +from petstore_api.components.schema.fruit import Fruit +from petstore_api.components.schema.fruit_req import FruitReq +from petstore_api.components.schema.gm_fruit import GmFruit +from petstore_api.components.schema.grandparent_animal import GrandparentAnimal +from petstore_api.components.schema.has_only_read_only import HasOnlyReadOnly +from petstore_api.components.schema.health_check_result import HealthCheckResult +from petstore_api.components.schema.integer_enum import IntegerEnum +from petstore_api.components.schema.integer_enum_big import IntegerEnumBig +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue +from petstore_api.components.schema.integer_enum_with_default_value import IntegerEnumWithDefaultValue +from petstore_api.components.schema.integer_max10 import IntegerMax10 +from petstore_api.components.schema.integer_min15 import IntegerMin15 +from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle +from petstore_api.components.schema.json_patch_request import JSONPatchRequest +from petstore_api.components.schema.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest +from petstore_api.components.schema.json_patch_request_move_copy import JSONPatchRequestMoveCopy +from petstore_api.components.schema.json_patch_request_remove import JSONPatchRequestRemove +from petstore_api.components.schema.mammal import Mammal +from petstore_api.components.schema.map_test import MapTest +from petstore_api.components.schema.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass +from petstore_api.components.schema.model200_response import Model200Response +from petstore_api.components.schema.model_return import ModelReturn +from petstore_api.components.schema.money import Money +from petstore_api.components.schema.name import Name +from petstore_api.components.schema.no_additional_properties import NoAdditionalProperties +from petstore_api.components.schema.nullable_class import NullableClass +from petstore_api.components.schema.nullable_shape import NullableShape +from petstore_api.components.schema.nullable_string import NullableString +from petstore_api.components.schema.number import Number +from petstore_api.components.schema.number_only import NumberOnly +from petstore_api.components.schema.number_with_validations import NumberWithValidations +from petstore_api.components.schema.object_interface import ObjectInterface +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp +from petstore_api.components.schema.object_with_decimal_properties import ObjectWithDecimalProperties +from petstore_api.components.schema.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps +from petstore_api.components.schema.object_with_inline_composition_property import ObjectWithInlineCompositionProperty +from petstore_api.components.schema.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties +from petstore_api.components.schema.object_with_optional_test_prop import ObjectWithOptionalTestProp +from petstore_api.components.schema.object_with_validations import ObjectWithValidations +from petstore_api.components.schema.order import Order +from petstore_api.components.schema.parent_pet import ParentPet +from petstore_api.components.schema.pet import Pet +from petstore_api.components.schema.pig import Pig +from petstore_api.components.schema.player import Player +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface +from petstore_api.components.schema.read_only_first import ReadOnlyFirst +from petstore_api.components.schema.scalene_triangle import ScaleneTriangle +from petstore_api.components.schema.shape import Shape +from petstore_api.components.schema.shape_or_null import ShapeOrNull +from petstore_api.components.schema.simple_quadrilateral import SimpleQuadrilateral +from petstore_api.components.schema.some_object import SomeObject +from petstore_api.components.schema.special_model_name import SpecialModelName +from petstore_api.components.schema.string import String +from petstore_api.components.schema.string_boolean_map import StringBooleanMap +from petstore_api.components.schema.string_enum import StringEnum +from petstore_api.components.schema.string_enum_with_default_value import StringEnumWithDefaultValue +from petstore_api.components.schema.string_with_validation import StringWithValidation +from petstore_api.components.schema.tag import Tag +from petstore_api.components.schema.triangle import Triangle +from petstore_api.components.schema.triangle_interface import TriangleInterface +from petstore_api.components.schema.uuid_string import UUIDString +from petstore_api.components.schema.user import User +from petstore_api.components.schema.whale import Whale +from petstore_api.components.schema.zebra import Zebra diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py deleted file mode 100644 index 79ca58cf230..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py +++ /dev/null @@ -1,307 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class map_property( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_property': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class map_of_map_property( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'map_of_map_property': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anytype_1 = schemas.AnyTypeSchema - map_with_undeclared_properties_anytype_1 = schemas.DictSchema - map_with_undeclared_properties_anytype_2 = schemas.DictSchema - - - class map_with_undeclared_properties_anytype_3( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.AnyTypeSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'map_with_undeclared_properties_anytype_3': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class empty_map( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.NotAnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'empty_map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class map_with_undeclared_properties_string( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_with_undeclared_properties_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "map_property": map_property, - "map_of_map_property": map_of_map_property, - "anytype_1": anytype_1, - "map_with_undeclared_properties_anytype_1": map_with_undeclared_properties_anytype_1, - "map_with_undeclared_properties_anytype_2": map_with_undeclared_properties_anytype_2, - "map_with_undeclared_properties_anytype_3": map_with_undeclared_properties_anytype_3, - "empty_map": empty_map, - "map_with_undeclared_properties_string": map_with_undeclared_properties_string, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - map_property: typing.Union[MetaOapg.properties.map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_of_map_property: typing.Union[MetaOapg.properties.map_of_map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - anytype_1: typing.Union[MetaOapg.properties.anytype_1, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_1: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_2: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_3: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - empty_map: typing.Union[MetaOapg.properties.empty_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_string: typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalPropertiesClass': - return super().__new__( - cls, - *args, - map_property=map_property, - map_of_map_property=map_of_map_property, - anytype_1=anytype_1, - map_with_undeclared_properties_anytype_1=map_with_undeclared_properties_anytype_1, - map_with_undeclared_properties_anytype_2=map_with_undeclared_properties_anytype_2, - map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3, - empty_map=empty_map, - map_with_undeclared_properties_string=map_with_undeclared_properties_string, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.pyi deleted file mode 100644 index 79ca58cf230..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.pyi +++ /dev/null @@ -1,307 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class map_property( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_property': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class map_of_map_property( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'map_of_map_property': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anytype_1 = schemas.AnyTypeSchema - map_with_undeclared_properties_anytype_1 = schemas.DictSchema - map_with_undeclared_properties_anytype_2 = schemas.DictSchema - - - class map_with_undeclared_properties_anytype_3( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.AnyTypeSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'map_with_undeclared_properties_anytype_3': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class empty_map( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.NotAnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'empty_map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class map_with_undeclared_properties_string( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_with_undeclared_properties_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "map_property": map_property, - "map_of_map_property": map_of_map_property, - "anytype_1": anytype_1, - "map_with_undeclared_properties_anytype_1": map_with_undeclared_properties_anytype_1, - "map_with_undeclared_properties_anytype_2": map_with_undeclared_properties_anytype_2, - "map_with_undeclared_properties_anytype_3": map_with_undeclared_properties_anytype_3, - "empty_map": empty_map, - "map_with_undeclared_properties_string": map_with_undeclared_properties_string, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - map_property: typing.Union[MetaOapg.properties.map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_of_map_property: typing.Union[MetaOapg.properties.map_of_map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - anytype_1: typing.Union[MetaOapg.properties.anytype_1, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_1: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_2: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_anytype_3: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - empty_map: typing.Union[MetaOapg.properties.empty_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_with_undeclared_properties_string: typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalPropertiesClass': - return super().__new__( - cls, - *args, - map_property=map_property, - map_of_map_property=map_of_map_property, - anytype_1=anytype_1, - map_with_undeclared_properties_anytype_1=map_with_undeclared_properties_anytype_1, - map_with_undeclared_properties_anytype_2=map_with_undeclared_properties_anytype_2, - map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3, - empty_map=empty_map, - map_with_undeclared_properties_string=map_with_undeclared_properties_string, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.py b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.py deleted file mode 100644 index e139b252699..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesValidator( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.AnyTypeSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - min_length = 3 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_2( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - max_length = 5 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'all_of_2': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - cls.all_of_2, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalPropertiesValidator': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.pyi deleted file mode 100644 index aa4a7355b2e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_validator.pyi +++ /dev/null @@ -1,196 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesValidator( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.AnyTypeSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_2( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'all_of_2': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - cls.all_of_2, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalPropertiesValidator': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py deleted file mode 100644 index 2a0bbc30313..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesWithArrayOfEnums( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class additional_properties( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['EnumClass']: - return EnumClass - - def __new__( - cls, - arg: typing.Union[typing.Tuple['EnumClass'], typing.List['EnumClass']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'additional_properties': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'EnumClass': - return super().__getitem__(i) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, list, tuple, ], - ) -> 'AdditionalPropertiesWithArrayOfEnums': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.enum_class import EnumClass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.pyi deleted file mode 100644 index 2a0bbc30313..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AdditionalPropertiesWithArrayOfEnums( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class additional_properties( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['EnumClass']: - return EnumClass - - def __new__( - cls, - arg: typing.Union[typing.Tuple['EnumClass'], typing.List['EnumClass']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'additional_properties': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'EnumClass': - return super().__getitem__(i) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, list, tuple, ], - ) -> 'AdditionalPropertiesWithArrayOfEnums': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.enum_class import EnumClass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/address.py b/samples/openapi3/client/petstore/python/petstore_api/model/address.py deleted file mode 100644 index 64fb96cfb9f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/address.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Address( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.IntSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, decimal.Decimal, int, ], - ) -> 'Address': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/address.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/address.pyi deleted file mode 100644 index 64fb96cfb9f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/address.pyi +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Address( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.IntSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, decimal.Decimal, int, ], - ) -> 'Address': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/animal.py b/samples/openapi3/client/petstore/python/petstore_api/model/animal.py deleted file mode 100644 index 06d7246fa33..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/animal.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Animal( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - @staticmethod - def discriminator(): - return { - 'className': { - 'Cat': Cat, - 'Dog': Dog, - } - } - - class properties: - className = schemas.StrSchema - color = schemas.StrSchema - __annotations__ = { - "className": className, - "color": color, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Animal': - return super().__new__( - cls, - *args, - className=className, - color=color, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.cat import Cat -from petstore_api.model.dog import Dog diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/animal.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/animal.pyi deleted file mode 100644 index 06d7246fa33..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/animal.pyi +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Animal( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - @staticmethod - def discriminator(): - return { - 'className': { - 'Cat': Cat, - 'Dog': Dog, - } - } - - class properties: - className = schemas.StrSchema - color = schemas.StrSchema - __annotations__ = { - "className": className, - "color": color, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Animal': - return super().__new__( - cls, - *args, - className=className, - color=color, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.cat import Cat -from petstore_api.model.dog import Dog diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py b/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py deleted file mode 100644 index 082a4988ce7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AnimalFarm( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Animal']: - return Animal - - def __new__( - cls, - arg: typing.Union[typing.Tuple['Animal'], typing.List['Animal']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AnimalFarm': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Animal': - return super().__getitem__(i) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.pyi deleted file mode 100644 index 082a4988ce7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.pyi +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AnimalFarm( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Animal']: - return Animal - - def __new__( - cls, - arg: typing.Union[typing.Tuple['Animal'], typing.List['Animal']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AnimalFarm': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Animal': - return super().__getitem__(i) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.py b/samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.py deleted file mode 100644 index 7bccdfa4161..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.py +++ /dev/null @@ -1,361 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AnyTypeAndFormat( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class uuid( - schemas.UUIDBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'uuid' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'uuid': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class date( - schemas.DateBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'date' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'date': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class date_time( - schemas.DateTimeBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'date-time' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'date_time': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class number( - schemas.DecimalBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'number' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'number': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class binary( - schemas.BinaryBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'binary' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'binary': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class int32( - schemas.Int32Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'int32' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'int32': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class int64( - schemas.Int64Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'int64' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'int64': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class double( - schemas.Float64Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'double' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'double': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class _float( - schemas.Float32Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'float' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> '_float': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "uuid": uuid, - "date": date, - "date-time": date_time, - "number": number, - "binary": binary, - "int32": int32, - "int64": int64, - "double": double, - "float": _float, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date-time"]) -> MetaOapg.properties.date_time: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - uuid: typing.Union[MetaOapg.properties.uuid, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - date: typing.Union[MetaOapg.properties.date, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - number: typing.Union[MetaOapg.properties.number, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - binary: typing.Union[MetaOapg.properties.binary, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - int32: typing.Union[MetaOapg.properties.int32, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - int64: typing.Union[MetaOapg.properties.int64, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - double: typing.Union[MetaOapg.properties.double, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyTypeAndFormat': - return super().__new__( - cls, - *args, - uuid=uuid, - date=date, - number=number, - binary=binary, - int32=int32, - int64=int64, - double=double, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.pyi deleted file mode 100644 index 7bccdfa4161..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_and_format.pyi +++ /dev/null @@ -1,361 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AnyTypeAndFormat( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class uuid( - schemas.UUIDBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'uuid' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'uuid': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class date( - schemas.DateBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'date' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'date': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class date_time( - schemas.DateTimeBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'date-time' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'date_time': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class number( - schemas.DecimalBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'number' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'number': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class binary( - schemas.BinaryBase, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'binary' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'binary': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class int32( - schemas.Int32Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'int32' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'int32': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class int64( - schemas.Int64Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'int64' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'int64': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class double( - schemas.Float64Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'double' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'double': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class _float( - schemas.Float32Base, - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - format = 'float' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> '_float': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "uuid": uuid, - "date": date, - "date-time": date_time, - "number": number, - "binary": binary, - "int32": int32, - "int64": int64, - "double": double, - "float": _float, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date-time"]) -> MetaOapg.properties.date_time: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - uuid: typing.Union[MetaOapg.properties.uuid, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - date: typing.Union[MetaOapg.properties.date, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - number: typing.Union[MetaOapg.properties.number, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - binary: typing.Union[MetaOapg.properties.binary, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - int32: typing.Union[MetaOapg.properties.int32, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - int64: typing.Union[MetaOapg.properties.int64, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - double: typing.Union[MetaOapg.properties.double, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyTypeAndFormat': - return super().__new__( - cls, - *args, - uuid=uuid, - date=date, - number=number, - binary=binary, - int32=int32, - int64=int64, - double=double, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.py b/samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.py deleted file mode 100644 index 993207a77f4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AnyTypeNotString( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - not_schema = schemas.StrSchema - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyTypeNotString': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.pyi deleted file mode 100644 index 993207a77f4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/any_type_not_string.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AnyTypeNotString( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - not_schema = schemas.StrSchema - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyTypeNotString': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py b/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py deleted file mode 100644 index 236e29d4e78..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ApiResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.Int32Schema - type = schemas.StrSchema - message = schemas.StrSchema - __annotations__ = { - "code": code, - "type": type, - "message": message, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponse': - return super().__new__( - cls, - *args, - code=code, - type=type, - message=message, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/api_response.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/api_response.pyi deleted file mode 100644 index 236e29d4e78..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/api_response.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ApiResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.Int32Schema - type = schemas.StrSchema - message = schemas.StrSchema - __annotations__ = { - "code": code, - "type": type, - "message": message, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ApiResponse': - return super().__new__( - cls, - *args, - code=code, - type=type, - message=message, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/apple.py b/samples/openapi3/client/petstore/python/petstore_api/model/apple.py deleted file mode 100644 index 638edc274dc..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/apple.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Apple( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "cultivar", - } - - class properties: - - - class cultivar( - schemas.StrSchema - ): - - - class MetaOapg: - regex=[{ - 'pattern': r'^[a-zA-Z\s]*$', # noqa: E501 - }] - - - class origin( - schemas.StrSchema - ): - - - class MetaOapg: - regex=[{ - 'pattern': r'^[A-Z\s]*$', # noqa: E501 - 'flags': ( - re.IGNORECASE - ) - }] - __annotations__ = { - "cultivar": cultivar, - "origin": origin, - } - - - cultivar: MetaOapg.properties.cultivar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - origin: typing.Union[MetaOapg.properties.origin, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Apple': - return super().__new__( - cls, - *args, - origin=origin, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/apple.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/apple.pyi deleted file mode 100644 index 95bd5e3a90a..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/apple.pyi +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Apple( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "cultivar", - } - - class properties: - - - class cultivar( - schemas.StrSchema - ): - pass - - - class origin( - schemas.StrSchema - ): - pass - __annotations__ = { - "cultivar": cultivar, - "origin": origin, - } - - - cultivar: MetaOapg.properties.cultivar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - origin: typing.Union[MetaOapg.properties.origin, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Apple': - return super().__new__( - cls, - *args, - origin=origin, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py deleted file mode 100644 index 03d83c22cff..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AppleReq( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "cultivar", - } - - class properties: - cultivar = schemas.StrSchema - mealy = schemas.BoolSchema - __annotations__ = { - "cultivar": cultivar, - "mealy": mealy, - } - additional_properties = schemas.NotAnyTypeSchema - - cultivar: MetaOapg.properties.cultivar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mealy"]) -> MetaOapg.properties.mealy: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - cultivar: typing.Union[MetaOapg.properties.cultivar, str, ], - mealy: typing.Union[MetaOapg.properties.mealy, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AppleReq': - return super().__new__( - cls, - *args, - cultivar=cultivar, - mealy=mealy, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.pyi deleted file mode 100644 index 03d83c22cff..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class AppleReq( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "cultivar", - } - - class properties: - cultivar = schemas.StrSchema - mealy = schemas.BoolSchema - __annotations__ = { - "cultivar": cultivar, - "mealy": mealy, - } - additional_properties = schemas.NotAnyTypeSchema - - cultivar: MetaOapg.properties.cultivar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mealy"]) -> MetaOapg.properties.mealy: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - cultivar: typing.Union[MetaOapg.properties.cultivar, str, ], - mealy: typing.Union[MetaOapg.properties.mealy, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AppleReq': - return super().__new__( - cls, - *args, - cultivar=cultivar, - mealy=mealy, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.py deleted file mode 100644 index 19b1c0e1a63..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayHoldingAnyType( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayHoldingAnyType': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.pyi deleted file mode 100644 index 19b1c0e1a63..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_holding_any_type.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayHoldingAnyType( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayHoldingAnyType': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py deleted file mode 100644 index 5237741d838..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayOfArrayOfNumberOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class ArrayArrayNumber( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayArrayNumber': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ArrayArrayNumber": ArrayArrayNumber, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ArrayArrayNumber: typing.Union[MetaOapg.properties.ArrayArrayNumber, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ArrayOfArrayOfNumberOnly': - return super().__new__( - cls, - *args, - ArrayArrayNumber=ArrayArrayNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.pyi deleted file mode 100644 index 5237741d838..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.pyi +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayOfArrayOfNumberOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class ArrayArrayNumber( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayArrayNumber': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ArrayArrayNumber": ArrayArrayNumber, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ArrayArrayNumber: typing.Union[MetaOapg.properties.ArrayArrayNumber, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ArrayOfArrayOfNumberOnly': - return super().__new__( - cls, - *args, - ArrayArrayNumber=ArrayArrayNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py deleted file mode 100644 index d7eb9d4838d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayOfEnums( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['StringEnum']: - return StringEnum - - def __new__( - cls, - arg: typing.Union[typing.Tuple['StringEnum'], typing.List['StringEnum']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayOfEnums': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'StringEnum': - return super().__getitem__(i) - -from petstore_api.model.string_enum import StringEnum diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.pyi deleted file mode 100644 index d7eb9d4838d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.pyi +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayOfEnums( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['StringEnum']: - return StringEnum - - def __new__( - cls, - arg: typing.Union[typing.Tuple['StringEnum'], typing.List['StringEnum']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayOfEnums': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'StringEnum': - return super().__getitem__(i) - -from petstore_api.model.string_enum import StringEnum diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py deleted file mode 100644 index 9c5a9b55d24..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayOfNumberOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class ArrayNumber( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayNumber': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ArrayNumber": ArrayNumber, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ArrayNumber: typing.Union[MetaOapg.properties.ArrayNumber, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ArrayOfNumberOnly': - return super().__new__( - cls, - *args, - ArrayNumber=ArrayNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.pyi deleted file mode 100644 index 9c5a9b55d24..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.pyi +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayOfNumberOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class ArrayNumber( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayNumber': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "ArrayNumber": ArrayNumber, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - ArrayNumber: typing.Union[MetaOapg.properties.ArrayNumber, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ArrayOfNumberOnly': - return super().__new__( - cls, - *args, - ArrayNumber=ArrayNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py deleted file mode 100644 index d53b0df62d3..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class array_of_string( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_of_string': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class array_array_of_integer( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.Int64Schema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_array_of_integer': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class array_array_of_model( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ReadOnlyFirst']: - return ReadOnlyFirst - - def __new__( - cls, - arg: typing.Union[typing.Tuple['ReadOnlyFirst'], typing.List['ReadOnlyFirst']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ReadOnlyFirst': - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_array_of_model': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "array_of_string": array_of_string, - "array_array_of_integer": array_array_of_integer, - "array_array_of_model": array_array_of_model, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - array_of_string: typing.Union[MetaOapg.properties.array_of_string, list, tuple, schemas.Unset] = schemas.unset, - array_array_of_integer: typing.Union[MetaOapg.properties.array_array_of_integer, list, tuple, schemas.Unset] = schemas.unset, - array_array_of_model: typing.Union[MetaOapg.properties.array_array_of_model, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ArrayTest': - return super().__new__( - cls, - *args, - array_of_string=array_of_string, - array_array_of_integer=array_array_of_integer, - array_array_of_model=array_array_of_model, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.read_only_first import ReadOnlyFirst diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/array_test.pyi deleted file mode 100644 index d53b0df62d3..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_test.pyi +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class array_of_string( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_of_string': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class array_array_of_integer( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.Int64Schema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_array_of_integer': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class array_array_of_model( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ReadOnlyFirst']: - return ReadOnlyFirst - - def __new__( - cls, - arg: typing.Union[typing.Tuple['ReadOnlyFirst'], typing.List['ReadOnlyFirst']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ReadOnlyFirst': - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_array_of_model': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "array_of_string": array_of_string, - "array_array_of_integer": array_array_of_integer, - "array_array_of_model": array_array_of_model, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - array_of_string: typing.Union[MetaOapg.properties.array_of_string, list, tuple, schemas.Unset] = schemas.unset, - array_array_of_integer: typing.Union[MetaOapg.properties.array_array_of_integer, list, tuple, schemas.Unset] = schemas.unset, - array_array_of_model: typing.Union[MetaOapg.properties.array_array_of_model, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ArrayTest': - return super().__new__( - cls, - *args, - array_of_string=array_of_string, - array_array_of_integer=array_array_of_integer, - array_array_of_model=array_array_of_model, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.read_only_first import ReadOnlyFirst diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.py deleted file mode 100644 index f68cb1a4c27..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayWithValidationsInItems( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - max_items = 2 - - - class items( - schemas.Int64Schema - ): - - - class MetaOapg: - format = 'int64' - inclusive_maximum = 7 - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayWithValidationsInItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.pyi deleted file mode 100644 index 2f1d07e3287..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_with_validations_in_items.pyi +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ArrayWithValidationsInItems( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class items( - schemas.Int64Schema - ): - pass - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayWithValidationsInItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/banana.py b/samples/openapi3/client/petstore/python/petstore_api/model/banana.py deleted file mode 100644 index b3d1c7d792d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/banana.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Banana( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "lengthCm", - } - - class properties: - lengthCm = schemas.NumberSchema - __annotations__ = { - "lengthCm": lengthCm, - } - - lengthCm: MetaOapg.properties.lengthCm - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Banana': - return super().__new__( - cls, - *args, - lengthCm=lengthCm, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/banana.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/banana.pyi deleted file mode 100644 index b3d1c7d792d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/banana.pyi +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Banana( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "lengthCm", - } - - class properties: - lengthCm = schemas.NumberSchema - __annotations__ = { - "lengthCm": lengthCm, - } - - lengthCm: MetaOapg.properties.lengthCm - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Banana': - return super().__new__( - cls, - *args, - lengthCm=lengthCm, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py deleted file mode 100644 index 1fdfa7d34ac..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class BananaReq( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "lengthCm", - } - - class properties: - lengthCm = schemas.NumberSchema - sweet = schemas.BoolSchema - __annotations__ = { - "lengthCm": lengthCm, - "sweet": sweet, - } - additional_properties = schemas.NotAnyTypeSchema - - lengthCm: MetaOapg.properties.lengthCm - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sweet"]) -> MetaOapg.properties.sweet: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], - sweet: typing.Union[MetaOapg.properties.sweet, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'BananaReq': - return super().__new__( - cls, - *args, - lengthCm=lengthCm, - sweet=sweet, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.pyi deleted file mode 100644 index 1fdfa7d34ac..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class BananaReq( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "lengthCm", - } - - class properties: - lengthCm = schemas.NumberSchema - sweet = schemas.BoolSchema - __annotations__ = { - "lengthCm": lengthCm, - "sweet": sweet, - } - additional_properties = schemas.NotAnyTypeSchema - - lengthCm: MetaOapg.properties.lengthCm - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sweet"]) -> MetaOapg.properties.sweet: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], - sweet: typing.Union[MetaOapg.properties.sweet, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'BananaReq': - return super().__new__( - cls, - *args, - lengthCm=lengthCm, - sweet=sweet, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/bar.py b/samples/openapi3/client/petstore/python/petstore_api/model/bar.py deleted file mode 100644 index d100ad83c56..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/bar.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -Bar = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/bar.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/bar.pyi deleted file mode 100644 index d100ad83c56..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/bar.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -Bar = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py deleted file mode 100644 index 528cfa498b0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class BasquePig( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "BasquePig": "BASQUE_PIG", - } - - @schemas.classproperty - def BASQUE_PIG(cls): - return cls("BasquePig") - __annotations__ = { - "className": className, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'BasquePig': - return super().__new__( - cls, - *args, - className=className, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.pyi deleted file mode 100644 index 8b36451f849..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.pyi +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class BasquePig( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def BASQUE_PIG(cls): - return cls("BasquePig") - __annotations__ = { - "className": className, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'BasquePig': - return super().__new__( - cls, - *args, - className=className, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/boolean.py b/samples/openapi3/client/petstore/python/petstore_api/model/boolean.py deleted file mode 100644 index 6f667d4c0b4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/boolean.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -Boolean = schemas.BoolSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/boolean.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/boolean.pyi deleted file mode 100644 index 6f667d4c0b4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/boolean.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -Boolean = schemas.BoolSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py b/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py deleted file mode 100644 index 66d5be71312..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class BooleanEnum( - schemas.EnumBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - schemas.BoolClass.TRUE: "TRUE", - } - - @schemas.classproperty - def TRUE(cls): - return cls(True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.pyi deleted file mode 100644 index 69fe2e6af4e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class BooleanEnum( - schemas.EnumBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def TRUE(cls): - return cls(True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py deleted file mode 100644 index 3dc195865d4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Capitalization( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - smallCamel = schemas.StrSchema - CapitalCamel = schemas.StrSchema - small_Snake = schemas.StrSchema - Capital_Snake = schemas.StrSchema - SCA_ETH_Flow_Points = schemas.StrSchema - ATT_NAME = schemas.StrSchema - __annotations__ = { - "smallCamel": smallCamel, - "CapitalCamel": CapitalCamel, - "small_Snake": small_Snake, - "Capital_Snake": Capital_Snake, - "SCA_ETH_Flow_Points": SCA_ETH_Flow_Points, - "ATT_NAME": ATT_NAME, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - smallCamel: typing.Union[MetaOapg.properties.smallCamel, str, schemas.Unset] = schemas.unset, - CapitalCamel: typing.Union[MetaOapg.properties.CapitalCamel, str, schemas.Unset] = schemas.unset, - small_Snake: typing.Union[MetaOapg.properties.small_Snake, str, schemas.Unset] = schemas.unset, - Capital_Snake: typing.Union[MetaOapg.properties.Capital_Snake, str, schemas.Unset] = schemas.unset, - SCA_ETH_Flow_Points: typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, str, schemas.Unset] = schemas.unset, - ATT_NAME: typing.Union[MetaOapg.properties.ATT_NAME, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Capitalization': - return super().__new__( - cls, - *args, - smallCamel=smallCamel, - CapitalCamel=CapitalCamel, - small_Snake=small_Snake, - Capital_Snake=Capital_Snake, - SCA_ETH_Flow_Points=SCA_ETH_Flow_Points, - ATT_NAME=ATT_NAME, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.pyi deleted file mode 100644 index 3dc195865d4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.pyi +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Capitalization( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - smallCamel = schemas.StrSchema - CapitalCamel = schemas.StrSchema - small_Snake = schemas.StrSchema - Capital_Snake = schemas.StrSchema - SCA_ETH_Flow_Points = schemas.StrSchema - ATT_NAME = schemas.StrSchema - __annotations__ = { - "smallCamel": smallCamel, - "CapitalCamel": CapitalCamel, - "small_Snake": small_Snake, - "Capital_Snake": Capital_Snake, - "SCA_ETH_Flow_Points": SCA_ETH_Flow_Points, - "ATT_NAME": ATT_NAME, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - smallCamel: typing.Union[MetaOapg.properties.smallCamel, str, schemas.Unset] = schemas.unset, - CapitalCamel: typing.Union[MetaOapg.properties.CapitalCamel, str, schemas.Unset] = schemas.unset, - small_Snake: typing.Union[MetaOapg.properties.small_Snake, str, schemas.Unset] = schemas.unset, - Capital_Snake: typing.Union[MetaOapg.properties.Capital_Snake, str, schemas.Unset] = schemas.unset, - SCA_ETH_Flow_Points: typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, str, schemas.Unset] = schemas.unset, - ATT_NAME: typing.Union[MetaOapg.properties.ATT_NAME, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Capitalization': - return super().__new__( - cls, - *args, - smallCamel=smallCamel, - CapitalCamel=CapitalCamel, - small_Snake=small_Snake, - Capital_Snake=Capital_Snake, - SCA_ETH_Flow_Points=SCA_ETH_Flow_Points, - ATT_NAME=ATT_NAME, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/cat.py b/samples/openapi3/client/petstore/python/petstore_api/model/cat.py deleted file mode 100644 index da07def367b..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/cat.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Cat( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - declawed = schemas.BoolSchema - __annotations__ = { - "declawed": declawed, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["declawed"]) -> MetaOapg.properties.declawed: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - declawed: typing.Union[MetaOapg.properties.declawed, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - declawed=declawed, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Animal, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Cat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/cat.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/cat.pyi deleted file mode 100644 index da07def367b..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/cat.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Cat( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - declawed = schemas.BoolSchema - __annotations__ = { - "declawed": declawed, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["declawed"]) -> MetaOapg.properties.declawed: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - declawed: typing.Union[MetaOapg.properties.declawed, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - declawed=declawed, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Animal, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Cat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/category.py b/samples/openapi3/client/petstore/python/petstore_api/model/category.py deleted file mode 100644 index 5537a4437bb..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/category.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Category( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - id = schemas.Int64Schema - __annotations__ = { - "name": name, - "id": id, - } - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Category': - return super().__new__( - cls, - *args, - name=name, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/category.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/category.pyi deleted file mode 100644 index 5537a4437bb..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/category.pyi +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Category( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - id = schemas.Int64Schema - __annotations__ = { - "name": name, - "id": id, - } - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Category': - return super().__new__( - cls, - *args, - name=name, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py deleted file mode 100644 index 32db862b8a7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ChildCat( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - ParentPet, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ChildCat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.pyi deleted file mode 100644 index 32db862b8a7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ChildCat( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - ParentPet, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ChildCat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py deleted file mode 100644 index 75d36e823c2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ClassModel( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Model for testing model with "_class" property - """ - - - class MetaOapg: - - class properties: - _class = schemas.StrSchema - __annotations__ = { - "_class": _class, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["_class"]) -> MetaOapg.properties._class: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _class: typing.Union[MetaOapg.properties._class, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ClassModel': - return super().__new__( - cls, - *args, - _class=_class, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/class_model.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/class_model.pyi deleted file mode 100644 index 75d36e823c2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/class_model.pyi +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ClassModel( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Model for testing model with "_class" property - """ - - - class MetaOapg: - - class properties: - _class = schemas.StrSchema - __annotations__ = { - "_class": _class, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["_class"]) -> MetaOapg.properties._class: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _class: typing.Union[MetaOapg.properties._class, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ClassModel': - return super().__new__( - cls, - *args, - _class=_class, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/client.py b/samples/openapi3/client/petstore/python/petstore_api/model/client.py deleted file mode 100644 index 4c7c16b564e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/client.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Client( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - client = schemas.StrSchema - __annotations__ = { - "client": client, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["client"]) -> MetaOapg.properties.client: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["client", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["client", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - client: typing.Union[MetaOapg.properties.client, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Client': - return super().__new__( - cls, - *args, - client=client, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/client.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/client.pyi deleted file mode 100644 index 4c7c16b564e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/client.pyi +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Client( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - client = schemas.StrSchema - __annotations__ = { - "client": client, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["client"]) -> MetaOapg.properties.client: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["client", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["client", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - client: typing.Union[MetaOapg.properties.client, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Client': - return super().__new__( - cls, - *args, - client=client, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py deleted file mode 100644 index 434c2c0c77a..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComplexQuadrilateral( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class quadrilateralType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ComplexQuadrilateral": "COMPLEX_QUADRILATERAL", - } - - @schemas.classproperty - def COMPLEX_QUADRILATERAL(cls): - return cls("ComplexQuadrilateral") - __annotations__ = { - "quadrilateralType": quadrilateralType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - quadrilateralType=quadrilateralType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - QuadrilateralInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComplexQuadrilateral': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.pyi deleted file mode 100644 index 43d8724caa8..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComplexQuadrilateral( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class quadrilateralType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def COMPLEX_QUADRILATERAL(cls): - return cls("ComplexQuadrilateral") - __annotations__ = { - "quadrilateralType": quadrilateralType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - quadrilateralType=quadrilateralType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - QuadrilateralInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComplexQuadrilateral': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.py deleted file mode 100644 index 9e077ff0db9..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedAnyOfDifferentTypesNoValidations( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - any_of_0 = schemas.DictSchema - any_of_1 = schemas.DateSchema - any_of_2 = schemas.DateTimeSchema - any_of_3 = schemas.BinarySchema - any_of_4 = schemas.StrSchema - any_of_5 = schemas.StrSchema - any_of_6 = schemas.DictSchema - any_of_7 = schemas.BoolSchema - any_of_8 = schemas.NoneSchema - - - class any_of_9( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'any_of_9': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - any_of_10 = schemas.NumberSchema - any_of_11 = schemas.Float32Schema - any_of_12 = schemas.Float64Schema - any_of_13 = schemas.IntSchema - any_of_14 = schemas.Int32Schema - any_of_15 = schemas.Int64Schema - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - cls.any_of_2, - cls.any_of_3, - cls.any_of_4, - cls.any_of_5, - cls.any_of_6, - cls.any_of_7, - cls.any_of_8, - cls.any_of_9, - cls.any_of_10, - cls.any_of_11, - cls.any_of_12, - cls.any_of_13, - cls.any_of_14, - cls.any_of_15, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComposedAnyOfDifferentTypesNoValidations': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.pyi deleted file mode 100644 index 9e077ff0db9..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_any_of_different_types_no_validations.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedAnyOfDifferentTypesNoValidations( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - any_of_0 = schemas.DictSchema - any_of_1 = schemas.DateSchema - any_of_2 = schemas.DateTimeSchema - any_of_3 = schemas.BinarySchema - any_of_4 = schemas.StrSchema - any_of_5 = schemas.StrSchema - any_of_6 = schemas.DictSchema - any_of_7 = schemas.BoolSchema - any_of_8 = schemas.NoneSchema - - - class any_of_9( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'any_of_9': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - any_of_10 = schemas.NumberSchema - any_of_11 = schemas.Float32Schema - any_of_12 = schemas.Float64Schema - any_of_13 = schemas.IntSchema - any_of_14 = schemas.Int32Schema - any_of_15 = schemas.Int64Schema - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - cls.any_of_2, - cls.any_of_3, - cls.any_of_4, - cls.any_of_5, - cls.any_of_6, - cls.any_of_7, - cls.any_of_8, - cls.any_of_9, - cls.any_of_10, - cls.any_of_11, - cls.any_of_12, - cls.any_of_13, - cls.any_of_14, - cls.any_of_15, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComposedAnyOfDifferentTypesNoValidations': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_array.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_array.py deleted file mode 100644 index 41e7107528e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_array.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedArray( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedArray': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_array.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_array.pyi deleted file mode 100644 index 41e7107528e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_array.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedArray( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedArray': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.py deleted file mode 100644 index 4a42a8626d4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedBool( - schemas.ComposedBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedBool': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.pyi deleted file mode 100644 index 4a42a8626d4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_bool.pyi +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedBool( - schemas.ComposedBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedBool': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_none.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_none.py deleted file mode 100644 index f442971abb0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_none.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedNone( - schemas.ComposedBase, - schemas.NoneSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedNone': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_none.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_none.pyi deleted file mode 100644 index f442971abb0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_none.pyi +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedNone( - schemas.ComposedBase, - schemas.NoneSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedNone': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_number.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_number.py deleted file mode 100644 index 36f53dbf211..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_number.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedNumber( - schemas.ComposedBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedNumber': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_number.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_number.pyi deleted file mode 100644 index 36f53dbf211..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_number.pyi +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedNumber( - schemas.ComposedBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedNumber': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_object.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_object.py deleted file mode 100644 index 44171746f14..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_object.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedObject( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComposedObject': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_object.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_object.pyi deleted file mode 100644 index 44171746f14..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_object.pyi +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedObject( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComposedObject': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.py deleted file mode 100644 index b3cf4aea1c4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedOneOfDifferentTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - this is a model that allows payloads of type object or number - """ - - - class MetaOapg: - one_of_2 = schemas.NoneSchema - one_of_3 = schemas.DateSchema - - - class one_of_4( - schemas.DictSchema - ): - - - class MetaOapg: - max_properties = 4 - min_properties = 4 - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_4': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_5( - schemas.ListSchema - ): - - - class MetaOapg: - max_items = 4 - min_items = 4 - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'one_of_5': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class one_of_6( - schemas.DateTimeSchema - ): - - - class MetaOapg: - format = 'date-time' - regex=[{ - 'pattern': r'^2020.*', # noqa: E501 - }] - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NumberWithValidations, - Animal, - cls.one_of_2, - cls.one_of_3, - cls.one_of_4, - cls.one_of_5, - cls.one_of_6, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComposedOneOfDifferentTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal -from petstore_api.model.number_with_validations import NumberWithValidations diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.pyi deleted file mode 100644 index 0fd6b4dd0f1..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_different_types.pyi +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedOneOfDifferentTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - this is a model that allows payloads of type object or number - """ - - - class MetaOapg: - one_of_2 = schemas.NoneSchema - one_of_3 = schemas.DateSchema - - - class one_of_4( - schemas.DictSchema - ): - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_4': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_5( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'one_of_5': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class one_of_6( - schemas.DateTimeSchema - ): - pass - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - NumberWithValidations, - Animal, - cls.one_of_2, - cls.one_of_3, - cls.one_of_4, - cls.one_of_5, - cls.one_of_6, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ComposedOneOfDifferentTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal -from petstore_api.model.number_with_validations import NumberWithValidations diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_string.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_string.py deleted file mode 100644 index 50d61de1698..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_string.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedString( - schemas.ComposedBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedString': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/composed_string.pyi deleted file mode 100644 index 50d61de1698..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_string.pyi +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ComposedString( - schemas.ComposedBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ComposedString': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/currency.py b/samples/openapi3/client/petstore/python/petstore_api/model/currency.py deleted file mode 100644 index 8714c9adcc7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/currency.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Currency( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "eur": "EUR", - "usd": "USD", - } - - @schemas.classproperty - def EUR(cls): - return cls("eur") - - @schemas.classproperty - def USD(cls): - return cls("usd") diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/currency.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/currency.pyi deleted file mode 100644 index 7706629add2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/currency.pyi +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Currency( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def EUR(cls): - return cls("eur") - - @schemas.classproperty - def USD(cls): - return cls("usd") diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py deleted file mode 100644 index bcffd8ff006..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class DanishPig( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "DanishPig": "DANISH_PIG", - } - - @schemas.classproperty - def DANISH_PIG(cls): - return cls("DanishPig") - __annotations__ = { - "className": className, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DanishPig': - return super().__new__( - cls, - *args, - className=className, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.pyi deleted file mode 100644 index 9f64db82744..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.pyi +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class DanishPig( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def DANISH_PIG(cls): - return cls("DanishPig") - __annotations__ = { - "className": className, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DanishPig': - return super().__new__( - cls, - *args, - className=className, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.py deleted file mode 100644 index 1a616cac271..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -DateTimeTest = schemas.DateTimeSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.pyi deleted file mode 100644 index 1a616cac271..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_test.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -DateTimeTest = schemas.DateTimeSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.py deleted file mode 100644 index a5a7858195a..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class DateTimeWithValidations( - schemas.DateTimeSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'date-time' - regex=[{ - 'pattern': r'^2020.*', # noqa: E501 - }] diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.pyi deleted file mode 100644 index 2898b619005..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/date_time_with_validations.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class DateTimeWithValidations( - schemas.DateTimeSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.py deleted file mode 100644 index 82d0122a279..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class DateWithValidations( - schemas.DateSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'date' - regex=[{ - 'pattern': r'^2020.*', # noqa: E501 - }] diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.pyi deleted file mode 100644 index 52770358d18..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/date_with_validations.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class DateWithValidations( - schemas.DateSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.py b/samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.py deleted file mode 100644 index 8e3b63175a4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -DecimalPayload = schemas.DecimalSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.pyi deleted file mode 100644 index 8e3b63175a4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/decimal_payload.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -DecimalPayload = schemas.DecimalSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/dog.py b/samples/openapi3/client/petstore/python/petstore_api/model/dog.py deleted file mode 100644 index a8dd43038d3..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/dog.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Dog( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - breed = schemas.StrSchema - __annotations__ = { - "breed": breed, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["breed"]) -> MetaOapg.properties.breed: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - breed: typing.Union[MetaOapg.properties.breed, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - breed=breed, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Animal, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Dog': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/dog.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/dog.pyi deleted file mode 100644 index a8dd43038d3..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/dog.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Dog( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - breed = schemas.StrSchema - __annotations__ = { - "breed": breed, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["breed"]) -> MetaOapg.properties.breed: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - breed: typing.Union[MetaOapg.properties.breed, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - breed=breed, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Animal, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Dog': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py b/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py deleted file mode 100644 index 9c7b54ae9cd..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Drawing( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def mainShape() -> typing.Type['Shape']: - return Shape - - @staticmethod - def shapeOrNull() -> typing.Type['ShapeOrNull']: - return ShapeOrNull - - @staticmethod - def nullableShape() -> typing.Type['NullableShape']: - return NullableShape - - - class shapes( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Shape']: - return Shape - - def __new__( - cls, - arg: typing.Union[typing.Tuple['Shape'], typing.List['Shape']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'shapes': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Shape': - return super().__getitem__(i) - __annotations__ = { - "mainShape": mainShape, - "shapeOrNull": shapeOrNull, - "nullableShape": nullableShape, - "shapes": shapes, - } - - @staticmethod - def additional_properties() -> typing.Type['Fruit']: - return Fruit - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mainShape"]) -> 'Shape': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapeOrNull"]) -> 'ShapeOrNull': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nullableShape"]) -> 'NullableShape': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapes"]) -> MetaOapg.properties.shapes: ... - - @typing.overload - def __getitem__(self, name: str) -> 'Fruit': ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - mainShape: typing.Union['Shape', schemas.Unset] = schemas.unset, - shapeOrNull: typing.Union['ShapeOrNull', schemas.Unset] = schemas.unset, - nullableShape: typing.Union['NullableShape', schemas.Unset] = schemas.unset, - shapes: typing.Union[MetaOapg.properties.shapes, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'Fruit', - ) -> 'Drawing': - return super().__new__( - cls, - *args, - mainShape=mainShape, - shapeOrNull=shapeOrNull, - nullableShape=nullableShape, - shapes=shapes, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.fruit import Fruit -from petstore_api.model.nullable_shape import NullableShape -from petstore_api.model.shape import Shape -from petstore_api.model.shape_or_null import ShapeOrNull diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/drawing.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/drawing.pyi deleted file mode 100644 index 9c7b54ae9cd..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/drawing.pyi +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Drawing( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def mainShape() -> typing.Type['Shape']: - return Shape - - @staticmethod - def shapeOrNull() -> typing.Type['ShapeOrNull']: - return ShapeOrNull - - @staticmethod - def nullableShape() -> typing.Type['NullableShape']: - return NullableShape - - - class shapes( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Shape']: - return Shape - - def __new__( - cls, - arg: typing.Union[typing.Tuple['Shape'], typing.List['Shape']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'shapes': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Shape': - return super().__getitem__(i) - __annotations__ = { - "mainShape": mainShape, - "shapeOrNull": shapeOrNull, - "nullableShape": nullableShape, - "shapes": shapes, - } - - @staticmethod - def additional_properties() -> typing.Type['Fruit']: - return Fruit - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["mainShape"]) -> 'Shape': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapeOrNull"]) -> 'ShapeOrNull': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["nullableShape"]) -> 'NullableShape': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapes"]) -> MetaOapg.properties.shapes: ... - - @typing.overload - def __getitem__(self, name: str) -> 'Fruit': ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - mainShape: typing.Union['Shape', schemas.Unset] = schemas.unset, - shapeOrNull: typing.Union['ShapeOrNull', schemas.Unset] = schemas.unset, - nullableShape: typing.Union['NullableShape', schemas.Unset] = schemas.unset, - shapes: typing.Union[MetaOapg.properties.shapes, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'Fruit', - ) -> 'Drawing': - return super().__new__( - cls, - *args, - mainShape=mainShape, - shapeOrNull=shapeOrNull, - nullableShape=nullableShape, - shapes=shapes, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.fruit import Fruit -from petstore_api.model.nullable_shape import NullableShape -from petstore_api.model.shape import Shape -from petstore_api.model.shape_or_null import ShapeOrNull diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py deleted file mode 100644 index 1e7e0843da1..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EnumArrays( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class just_symbol( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - ">=": "GREATER_THAN_EQUALS", - "$": "DOLLAR", - } - - @schemas.classproperty - def GREATER_THAN_EQUALS(cls): - return cls(">=") - - @schemas.classproperty - def DOLLAR(cls): - return cls("$") - - - class array_enum( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "fish": "FISH", - "crab": "CRAB", - } - - @schemas.classproperty - def FISH(cls): - return cls("fish") - - @schemas.classproperty - def CRAB(cls): - return cls("crab") - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_enum': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "just_symbol": just_symbol, - "array_enum": array_enum, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - just_symbol: typing.Union[MetaOapg.properties.just_symbol, str, schemas.Unset] = schemas.unset, - array_enum: typing.Union[MetaOapg.properties.array_enum, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EnumArrays': - return super().__new__( - cls, - *args, - just_symbol=just_symbol, - array_enum=array_enum, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.pyi deleted file mode 100644 index 31b854f7d16..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.pyi +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EnumArrays( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class just_symbol( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def GREATER_THAN_EQUALS(cls): - return cls(">=") - - @schemas.classproperty - def DOLLAR(cls): - return cls("$") - - - class array_enum( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def FISH(cls): - return cls("fish") - - @schemas.classproperty - def CRAB(cls): - return cls("crab") - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_enum': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "just_symbol": just_symbol, - "array_enum": array_enum, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - just_symbol: typing.Union[MetaOapg.properties.just_symbol, str, schemas.Unset] = schemas.unset, - array_enum: typing.Union[MetaOapg.properties.array_enum, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EnumArrays': - return super().__new__( - cls, - *args, - just_symbol=just_symbol, - array_enum=array_enum, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py deleted file mode 100644 index 27018e19a6d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EnumClass( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "_abc": "_ABC", - "-efg": "EFG", - "(xyz)": "XYZ", - "COUNT_1M": "COUNT_1M", - "COUNT_50M": "COUNT_50M", - } - - @schemas.classproperty - def _ABC(cls): - return cls("_abc") - - @schemas.classproperty - def EFG(cls): - return cls("-efg") - - @schemas.classproperty - def XYZ(cls): - return cls("(xyz)") - - @schemas.classproperty - def COUNT_1M(cls): - return cls("COUNT_1M") - - @schemas.classproperty - def COUNT_50M(cls): - return cls("COUNT_50M") diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.pyi deleted file mode 100644 index 7d43347fd84..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.pyi +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EnumClass( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def _ABC(cls): - return cls("_abc") - - @schemas.classproperty - def EFG(cls): - return cls("-efg") - - @schemas.classproperty - def XYZ(cls): - return cls("(xyz)") - - @schemas.classproperty - def COUNT_1M(cls): - return cls("COUNT_1M") - - @schemas.classproperty - def COUNT_50M(cls): - return cls("COUNT_50M") diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py deleted file mode 100644 index 094073cddc7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py +++ /dev/null @@ -1,276 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EnumTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "enum_string_required", - } - - class properties: - - - class enum_string_required( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "UPPER": "UPPER", - "lower": "LOWER", - "": "EMPTY", - } - - @schemas.classproperty - def UPPER(cls): - return cls("UPPER") - - @schemas.classproperty - def LOWER(cls): - return cls("lower") - - @schemas.classproperty - def EMPTY(cls): - return cls("") - - - class enum_string( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "UPPER": "UPPER", - "lower": "LOWER", - "": "EMPTY", - } - - @schemas.classproperty - def UPPER(cls): - return cls("UPPER") - - @schemas.classproperty - def LOWER(cls): - return cls("lower") - - @schemas.classproperty - def EMPTY(cls): - return cls("") - - - class enum_integer( - schemas.EnumBase, - schemas.Int32Schema - ): - - - class MetaOapg: - format = 'int32' - enum_value_to_name = { - 1: "POSITIVE_1", - -1: "NEGATIVE_1", - } - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def NEGATIVE_1(cls): - return cls(-1) - - - class enum_number( - schemas.EnumBase, - schemas.Float64Schema - ): - - - class MetaOapg: - format = 'double' - enum_value_to_name = { - 1.1: "POSITIVE_1_PT_1", - -1.2: "NEGATIVE_1_PT_2", - } - - @schemas.classproperty - def POSITIVE_1_PT_1(cls): - return cls(1.1) - - @schemas.classproperty - def NEGATIVE_1_PT_2(cls): - return cls(-1.2) - - @staticmethod - def stringEnum() -> typing.Type['StringEnum']: - return StringEnum - - @staticmethod - def IntegerEnum() -> typing.Type['IntegerEnum']: - return IntegerEnum - - @staticmethod - def StringEnumWithDefaultValue() -> typing.Type['StringEnumWithDefaultValue']: - return StringEnumWithDefaultValue - - @staticmethod - def IntegerEnumWithDefaultValue() -> typing.Type['IntegerEnumWithDefaultValue']: - return IntegerEnumWithDefaultValue - - @staticmethod - def IntegerEnumOneValue() -> typing.Type['IntegerEnumOneValue']: - return IntegerEnumOneValue - __annotations__ = { - "enum_string_required": enum_string_required, - "enum_string": enum_string, - "enum_integer": enum_integer, - "enum_number": enum_number, - "stringEnum": stringEnum, - "IntegerEnum": IntegerEnum, - "StringEnumWithDefaultValue": StringEnumWithDefaultValue, - "IntegerEnumWithDefaultValue": IntegerEnumWithDefaultValue, - "IntegerEnumOneValue": IntegerEnumOneValue, - } - - enum_string_required: MetaOapg.properties.enum_string_required - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stringEnum"]) -> 'StringEnum': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["IntegerEnum"]) -> 'IntegerEnum': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - enum_string_required: typing.Union[MetaOapg.properties.enum_string_required, str, ], - enum_string: typing.Union[MetaOapg.properties.enum_string, str, schemas.Unset] = schemas.unset, - enum_integer: typing.Union[MetaOapg.properties.enum_integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, - enum_number: typing.Union[MetaOapg.properties.enum_number, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - stringEnum: typing.Union['StringEnum', schemas.Unset] = schemas.unset, - IntegerEnum: typing.Union['IntegerEnum', schemas.Unset] = schemas.unset, - StringEnumWithDefaultValue: typing.Union['StringEnumWithDefaultValue', schemas.Unset] = schemas.unset, - IntegerEnumWithDefaultValue: typing.Union['IntegerEnumWithDefaultValue', schemas.Unset] = schemas.unset, - IntegerEnumOneValue: typing.Union['IntegerEnumOneValue', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EnumTest': - return super().__new__( - cls, - *args, - enum_string_required=enum_string_required, - enum_string=enum_string, - enum_integer=enum_integer, - enum_number=enum_number, - stringEnum=stringEnum, - IntegerEnum=IntegerEnum, - StringEnumWithDefaultValue=StringEnumWithDefaultValue, - IntegerEnumWithDefaultValue=IntegerEnumWithDefaultValue, - IntegerEnumOneValue=IntegerEnumOneValue, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.integer_enum import IntegerEnum -from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue -from petstore_api.model.integer_enum_with_default_value import IntegerEnumWithDefaultValue -from petstore_api.model.string_enum import StringEnum -from petstore_api.model.string_enum_with_default_value import StringEnumWithDefaultValue diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.pyi deleted file mode 100644 index 1f885dcf361..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.pyi +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EnumTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "enum_string_required", - } - - class properties: - - - class enum_string_required( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def UPPER(cls): - return cls("UPPER") - - @schemas.classproperty - def LOWER(cls): - return cls("lower") - - @schemas.classproperty - def EMPTY(cls): - return cls("") - - - class enum_string( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def UPPER(cls): - return cls("UPPER") - - @schemas.classproperty - def LOWER(cls): - return cls("lower") - - @schemas.classproperty - def EMPTY(cls): - return cls("") - - - class enum_integer( - schemas.EnumBase, - schemas.Int32Schema - ): - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def NEGATIVE_1(cls): - return cls(-1) - - - class enum_number( - schemas.EnumBase, - schemas.Float64Schema - ): - - @schemas.classproperty - def POSITIVE_1_PT_1(cls): - return cls(1.1) - - @schemas.classproperty - def NEGATIVE_1_PT_2(cls): - return cls(-1.2) - - @staticmethod - def stringEnum() -> typing.Type['StringEnum']: - return StringEnum - - @staticmethod - def IntegerEnum() -> typing.Type['IntegerEnum']: - return IntegerEnum - - @staticmethod - def StringEnumWithDefaultValue() -> typing.Type['StringEnumWithDefaultValue']: - return StringEnumWithDefaultValue - - @staticmethod - def IntegerEnumWithDefaultValue() -> typing.Type['IntegerEnumWithDefaultValue']: - return IntegerEnumWithDefaultValue - - @staticmethod - def IntegerEnumOneValue() -> typing.Type['IntegerEnumOneValue']: - return IntegerEnumOneValue - __annotations__ = { - "enum_string_required": enum_string_required, - "enum_string": enum_string, - "enum_integer": enum_integer, - "enum_number": enum_number, - "stringEnum": stringEnum, - "IntegerEnum": IntegerEnum, - "StringEnumWithDefaultValue": StringEnumWithDefaultValue, - "IntegerEnumWithDefaultValue": IntegerEnumWithDefaultValue, - "IntegerEnumOneValue": IntegerEnumOneValue, - } - - enum_string_required: MetaOapg.properties.enum_string_required - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["stringEnum"]) -> 'StringEnum': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["IntegerEnum"]) -> 'IntegerEnum': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - enum_string_required: typing.Union[MetaOapg.properties.enum_string_required, str, ], - enum_string: typing.Union[MetaOapg.properties.enum_string, str, schemas.Unset] = schemas.unset, - enum_integer: typing.Union[MetaOapg.properties.enum_integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, - enum_number: typing.Union[MetaOapg.properties.enum_number, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - stringEnum: typing.Union['StringEnum', schemas.Unset] = schemas.unset, - IntegerEnum: typing.Union['IntegerEnum', schemas.Unset] = schemas.unset, - StringEnumWithDefaultValue: typing.Union['StringEnumWithDefaultValue', schemas.Unset] = schemas.unset, - IntegerEnumWithDefaultValue: typing.Union['IntegerEnumWithDefaultValue', schemas.Unset] = schemas.unset, - IntegerEnumOneValue: typing.Union['IntegerEnumOneValue', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EnumTest': - return super().__new__( - cls, - *args, - enum_string_required=enum_string_required, - enum_string=enum_string, - enum_integer=enum_integer, - enum_number=enum_number, - stringEnum=stringEnum, - IntegerEnum=IntegerEnum, - StringEnumWithDefaultValue=StringEnumWithDefaultValue, - IntegerEnumWithDefaultValue=IntegerEnumWithDefaultValue, - IntegerEnumOneValue=IntegerEnumOneValue, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.integer_enum import IntegerEnum -from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue -from petstore_api.model.integer_enum_with_default_value import IntegerEnumWithDefaultValue -from petstore_api.model.string_enum import StringEnum -from petstore_api.model.string_enum_with_default_value import StringEnumWithDefaultValue diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py deleted file mode 100644 index a45ac99de80..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EquilateralTriangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class triangleType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "EquilateralTriangle": "EQUILATERAL_TRIANGLE", - } - - @schemas.classproperty - def EQUILATERAL_TRIANGLE(cls): - return cls("EquilateralTriangle") - __annotations__ = { - "triangleType": triangleType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TriangleInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EquilateralTriangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.pyi deleted file mode 100644 index 7e9d4d38025..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class EquilateralTriangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class triangleType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def EQUILATERAL_TRIANGLE(cls): - return cls("EquilateralTriangle") - __annotations__ = { - "triangleType": triangleType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TriangleInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EquilateralTriangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/file.py b/samples/openapi3/client/petstore/python/petstore_api/model/file.py deleted file mode 100644 index 886f7a62d34..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/file.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class File( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Must be named `File` for test. - """ - - - class MetaOapg: - - class properties: - sourceURI = schemas.StrSchema - __annotations__ = { - "sourceURI": sourceURI, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - sourceURI: typing.Union[MetaOapg.properties.sourceURI, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'File': - return super().__new__( - cls, - *args, - sourceURI=sourceURI, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/file.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/file.pyi deleted file mode 100644 index 886f7a62d34..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/file.pyi +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class File( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Must be named `File` for test. - """ - - - class MetaOapg: - - class properties: - sourceURI = schemas.StrSchema - __annotations__ = { - "sourceURI": sourceURI, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - sourceURI: typing.Union[MetaOapg.properties.sourceURI, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'File': - return super().__new__( - cls, - *args, - sourceURI=sourceURI, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py deleted file mode 100644 index e9320d9a0e7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FileSchemaTestClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def file() -> typing.Type['File']: - return File - - - class files( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['File']: - return File - - def __new__( - cls, - arg: typing.Union[typing.Tuple['File'], typing.List['File']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'files': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'File': - return super().__getitem__(i) - __annotations__ = { - "file": file, - "files": files, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["file"]) -> 'File': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union['File', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - file: typing.Union['File', schemas.Unset] = schemas.unset, - files: typing.Union[MetaOapg.properties.files, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FileSchemaTestClass': - return super().__new__( - cls, - *args, - file=file, - files=files, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.file import File diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.pyi deleted file mode 100644 index e9320d9a0e7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.pyi +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FileSchemaTestClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def file() -> typing.Type['File']: - return File - - - class files( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['File']: - return File - - def __new__( - cls, - arg: typing.Union[typing.Tuple['File'], typing.List['File']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'files': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'File': - return super().__getitem__(i) - __annotations__ = { - "file": file, - "files": files, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["file"]) -> 'File': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union['File', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - file: typing.Union['File', schemas.Unset] = schemas.unset, - files: typing.Union[MetaOapg.properties.files, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FileSchemaTestClass': - return super().__new__( - cls, - *args, - file=file, - files=files, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.file import File diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/foo.py b/samples/openapi3/client/petstore/python/petstore_api/model/foo.py deleted file mode 100644 index c8bc70e74ff..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/foo.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Foo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def bar() -> typing.Type['Bar']: - return Bar - __annotations__ = { - "bar": bar, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> 'Bar': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union['Bar', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union['Bar', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Foo': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.bar import Bar diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/foo.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/foo.pyi deleted file mode 100644 index c8bc70e74ff..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/foo.pyi +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Foo( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def bar() -> typing.Type['Bar']: - return Bar - __annotations__ = { - "bar": bar, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> 'Bar': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union['Bar', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union['Bar', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Foo': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.bar import Bar diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py deleted file mode 100644 index b16b10a0488..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py +++ /dev/null @@ -1,406 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FormatTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "date", - "number", - "password", - "byte", - } - - class properties: - - - class number( - schemas.NumberSchema - ): - - - class MetaOapg: - inclusive_maximum = 543.2 - inclusive_minimum = 32.1 - multiple_of = 32.5 - byte = schemas.StrSchema - date = schemas.DateSchema - - - class password( - schemas.StrSchema - ): - - - class MetaOapg: - format = 'password' - max_length = 64 - min_length = 10 - - - class integer( - schemas.IntSchema - ): - - - class MetaOapg: - inclusive_maximum = 100 - inclusive_minimum = 10 - multiple_of = 2 - int32 = schemas.Int32Schema - - - class int32withValidations( - schemas.Int32Schema - ): - - - class MetaOapg: - format = 'int32' - inclusive_maximum = 200 - inclusive_minimum = 20 - int64 = schemas.Int64Schema - - - class _float( - schemas.Float32Schema - ): - - - class MetaOapg: - format = 'float' - inclusive_maximum = 987.6 - inclusive_minimum = 54.3 - float32 = schemas.Float32Schema - - - class double( - schemas.Float64Schema - ): - - - class MetaOapg: - format = 'double' - inclusive_maximum = 123.4 - inclusive_minimum = 67.8 - float64 = schemas.Float64Schema - - - class arrayWithUniqueItems( - schemas.ListSchema - ): - - - class MetaOapg: - unique_items = True - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'arrayWithUniqueItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class string( - schemas.StrSchema - ): - - - class MetaOapg: - regex=[{ - 'pattern': r'[a-z]', # noqa: E501 - 'flags': ( - re.IGNORECASE - ) - }] - binary = schemas.BinarySchema - dateTime = schemas.DateTimeSchema - uuid = schemas.UUIDSchema - uuidNoExample = schemas.UUIDSchema - - - class pattern_with_digits( - schemas.StrSchema - ): - - - class MetaOapg: - regex=[{ - 'pattern': r'^\d{10}$', # noqa: E501 - }] - - - class pattern_with_digits_and_delimiter( - schemas.StrSchema - ): - - - class MetaOapg: - regex=[{ - 'pattern': r'^image_\d{1,3}$', # noqa: E501 - 'flags': ( - re.IGNORECASE - ) - }] - noneProp = schemas.NoneSchema - __annotations__ = { - "number": number, - "byte": byte, - "date": date, - "password": password, - "integer": integer, - "int32": int32, - "int32withValidations": int32withValidations, - "int64": int64, - "float": _float, - "float32": float32, - "double": double, - "float64": float64, - "arrayWithUniqueItems": arrayWithUniqueItems, - "string": string, - "binary": binary, - "dateTime": dateTime, - "uuid": uuid, - "uuidNoExample": uuidNoExample, - "pattern_with_digits": pattern_with_digits, - "pattern_with_digits_and_delimiter": pattern_with_digits_and_delimiter, - "noneProp": noneProp, - } - - date: MetaOapg.properties.date - number: MetaOapg.properties.number - password: MetaOapg.properties.password - byte: MetaOapg.properties.byte - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float32"]) -> MetaOapg.properties.float32: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float64"]) -> MetaOapg.properties.float64: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - date: typing.Union[MetaOapg.properties.date, str, date, ], - number: typing.Union[MetaOapg.properties.number, decimal.Decimal, int, float, ], - password: typing.Union[MetaOapg.properties.password, str, ], - byte: typing.Union[MetaOapg.properties.byte, str, ], - integer: typing.Union[MetaOapg.properties.integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, - int32: typing.Union[MetaOapg.properties.int32, decimal.Decimal, int, schemas.Unset] = schemas.unset, - int32withValidations: typing.Union[MetaOapg.properties.int32withValidations, decimal.Decimal, int, schemas.Unset] = schemas.unset, - int64: typing.Union[MetaOapg.properties.int64, decimal.Decimal, int, schemas.Unset] = schemas.unset, - float32: typing.Union[MetaOapg.properties.float32, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - double: typing.Union[MetaOapg.properties.double, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - float64: typing.Union[MetaOapg.properties.float64, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - arrayWithUniqueItems: typing.Union[MetaOapg.properties.arrayWithUniqueItems, list, tuple, schemas.Unset] = schemas.unset, - string: typing.Union[MetaOapg.properties.string, str, schemas.Unset] = schemas.unset, - binary: typing.Union[MetaOapg.properties.binary, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, - uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, - uuidNoExample: typing.Union[MetaOapg.properties.uuidNoExample, str, uuid.UUID, schemas.Unset] = schemas.unset, - pattern_with_digits: typing.Union[MetaOapg.properties.pattern_with_digits, str, schemas.Unset] = schemas.unset, - pattern_with_digits_and_delimiter: typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, str, schemas.Unset] = schemas.unset, - noneProp: typing.Union[MetaOapg.properties.noneProp, None, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FormatTest': - return super().__new__( - cls, - *args, - date=date, - number=number, - password=password, - byte=byte, - integer=integer, - int32=int32, - int32withValidations=int32withValidations, - int64=int64, - float32=float32, - double=double, - float64=float64, - arrayWithUniqueItems=arrayWithUniqueItems, - string=string, - binary=binary, - dateTime=dateTime, - uuid=uuid, - uuidNoExample=uuidNoExample, - pattern_with_digits=pattern_with_digits, - pattern_with_digits_and_delimiter=pattern_with_digits_and_delimiter, - noneProp=noneProp, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/format_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/format_test.pyi deleted file mode 100644 index dc49d47fd8d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/format_test.pyi +++ /dev/null @@ -1,354 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FormatTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "date", - "number", - "password", - "byte", - } - - class properties: - - - class number( - schemas.NumberSchema - ): - pass - byte = schemas.StrSchema - date = schemas.DateSchema - - - class password( - schemas.StrSchema - ): - pass - - - class integer( - schemas.IntSchema - ): - pass - int32 = schemas.Int32Schema - - - class int32withValidations( - schemas.Int32Schema - ): - pass - int64 = schemas.Int64Schema - - - class _float( - schemas.Float32Schema - ): - pass - float32 = schemas.Float32Schema - - - class double( - schemas.Float64Schema - ): - pass - float64 = schemas.Float64Schema - - - class arrayWithUniqueItems( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'arrayWithUniqueItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class string( - schemas.StrSchema - ): - pass - binary = schemas.BinarySchema - dateTime = schemas.DateTimeSchema - uuid = schemas.UUIDSchema - uuidNoExample = schemas.UUIDSchema - - - class pattern_with_digits( - schemas.StrSchema - ): - pass - - - class pattern_with_digits_and_delimiter( - schemas.StrSchema - ): - pass - noneProp = schemas.NoneSchema - __annotations__ = { - "number": number, - "byte": byte, - "date": date, - "password": password, - "integer": integer, - "int32": int32, - "int32withValidations": int32withValidations, - "int64": int64, - "float": _float, - "float32": float32, - "double": double, - "float64": float64, - "arrayWithUniqueItems": arrayWithUniqueItems, - "string": string, - "binary": binary, - "dateTime": dateTime, - "uuid": uuid, - "uuidNoExample": uuidNoExample, - "pattern_with_digits": pattern_with_digits, - "pattern_with_digits_and_delimiter": pattern_with_digits_and_delimiter, - "noneProp": noneProp, - } - - date: MetaOapg.properties.date - number: MetaOapg.properties.number - password: MetaOapg.properties.password - byte: MetaOapg.properties.byte - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float32"]) -> MetaOapg.properties.float32: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["float64"]) -> MetaOapg.properties.float64: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - date: typing.Union[MetaOapg.properties.date, str, date, ], - number: typing.Union[MetaOapg.properties.number, decimal.Decimal, int, float, ], - password: typing.Union[MetaOapg.properties.password, str, ], - byte: typing.Union[MetaOapg.properties.byte, str, ], - integer: typing.Union[MetaOapg.properties.integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, - int32: typing.Union[MetaOapg.properties.int32, decimal.Decimal, int, schemas.Unset] = schemas.unset, - int32withValidations: typing.Union[MetaOapg.properties.int32withValidations, decimal.Decimal, int, schemas.Unset] = schemas.unset, - int64: typing.Union[MetaOapg.properties.int64, decimal.Decimal, int, schemas.Unset] = schemas.unset, - float32: typing.Union[MetaOapg.properties.float32, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - double: typing.Union[MetaOapg.properties.double, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - float64: typing.Union[MetaOapg.properties.float64, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - arrayWithUniqueItems: typing.Union[MetaOapg.properties.arrayWithUniqueItems, list, tuple, schemas.Unset] = schemas.unset, - string: typing.Union[MetaOapg.properties.string, str, schemas.Unset] = schemas.unset, - binary: typing.Union[MetaOapg.properties.binary, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, - uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, - uuidNoExample: typing.Union[MetaOapg.properties.uuidNoExample, str, uuid.UUID, schemas.Unset] = schemas.unset, - pattern_with_digits: typing.Union[MetaOapg.properties.pattern_with_digits, str, schemas.Unset] = schemas.unset, - pattern_with_digits_and_delimiter: typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, str, schemas.Unset] = schemas.unset, - noneProp: typing.Union[MetaOapg.properties.noneProp, None, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FormatTest': - return super().__new__( - cls, - *args, - date=date, - number=number, - password=password, - byte=byte, - integer=integer, - int32=int32, - int32withValidations=int32withValidations, - int64=int64, - float32=float32, - double=double, - float64=float64, - arrayWithUniqueItems=arrayWithUniqueItems, - string=string, - binary=binary, - dateTime=dateTime, - uuid=uuid, - uuidNoExample=uuidNoExample, - pattern_with_digits=pattern_with_digits, - pattern_with_digits_and_delimiter=pattern_with_digits_and_delimiter, - noneProp=noneProp, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/from_schema.py b/samples/openapi3/client/petstore/python/petstore_api/model/from_schema.py deleted file mode 100644 index 556b85187cd..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/from_schema.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FromSchema( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - data = schemas.StrSchema - id = schemas.IntSchema - __annotations__ = { - "data": data, - "id": id, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - data: typing.Union[MetaOapg.properties.data, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FromSchema': - return super().__new__( - cls, - *args, - data=data, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/from_schema.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/from_schema.pyi deleted file mode 100644 index 556b85187cd..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/from_schema.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FromSchema( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - data = schemas.StrSchema - id = schemas.IntSchema - __annotations__ = { - "data": data, - "id": id, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - data: typing.Union[MetaOapg.properties.data, str, schemas.Unset] = schemas.unset, - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FromSchema': - return super().__new__( - cls, - *args, - data=data, - id=id, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py b/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py deleted file mode 100644 index 056b33f22f5..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Fruit( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - color = schemas.StrSchema - __annotations__ = { - "color": color, - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Apple, - Banana, - ] - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Fruit': - return super().__new__( - cls, - *args, - color=color, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.apple import Apple -from petstore_api.model.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/fruit.pyi deleted file mode 100644 index 056b33f22f5..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.pyi +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Fruit( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - color = schemas.StrSchema - __annotations__ = { - "color": color, - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Apple, - Banana, - ] - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Fruit': - return super().__new__( - cls, - *args, - color=color, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.apple import Apple -from petstore_api.model.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py deleted file mode 100644 index 18879cd45c2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FruitReq( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - one_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - AppleReq, - BananaReq, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FruitReq': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.apple_req import AppleReq -from petstore_api.model.banana_req import BananaReq diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.pyi deleted file mode 100644 index 18879cd45c2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.pyi +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class FruitReq( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - one_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - AppleReq, - BananaReq, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'FruitReq': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.apple_req import AppleReq -from petstore_api.model.banana_req import BananaReq diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py b/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py deleted file mode 100644 index 5646a4704e2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class GmFruit( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - color = schemas.StrSchema - __annotations__ = { - "color": color, - } - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Apple, - Banana, - ] - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GmFruit': - return super().__new__( - cls, - *args, - color=color, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.apple import Apple -from petstore_api.model.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.pyi deleted file mode 100644 index 5646a4704e2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.pyi +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class GmFruit( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - color = schemas.StrSchema - __annotations__ = { - "color": color, - } - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Apple, - Banana, - ] - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GmFruit': - return super().__new__( - cls, - *args, - color=color, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.apple import Apple -from petstore_api.model.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py b/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py deleted file mode 100644 index 838d96a814f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class GrandparentAnimal( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "pet_type", - } - - @staticmethod - def discriminator(): - return { - 'pet_type': { - 'ChildCat': ChildCat, - 'ParentPet': ParentPet, - } - } - - class properties: - pet_type = schemas.StrSchema - __annotations__ = { - "pet_type": pet_type, - } - - pet_type: MetaOapg.properties.pet_type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - pet_type: typing.Union[MetaOapg.properties.pet_type, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GrandparentAnimal': - return super().__new__( - cls, - *args, - pet_type=pet_type, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.child_cat import ChildCat -from petstore_api.model.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.pyi deleted file mode 100644 index 838d96a814f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.pyi +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class GrandparentAnimal( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "pet_type", - } - - @staticmethod - def discriminator(): - return { - 'pet_type': { - 'ChildCat': ChildCat, - 'ParentPet': ParentPet, - } - } - - class properties: - pet_type = schemas.StrSchema - __annotations__ = { - "pet_type": pet_type, - } - - pet_type: MetaOapg.properties.pet_type - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - pet_type: typing.Union[MetaOapg.properties.pet_type, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'GrandparentAnimal': - return super().__new__( - cls, - *args, - pet_type=pet_type, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.child_cat import ChildCat -from petstore_api.model.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py deleted file mode 100644 index f56f17aad80..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class HasOnlyReadOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - bar = schemas.StrSchema - foo = schemas.StrSchema - __annotations__ = { - "bar": bar, - "foo": foo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'HasOnlyReadOnly': - return super().__new__( - cls, - *args, - bar=bar, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.pyi deleted file mode 100644 index f56f17aad80..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class HasOnlyReadOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - bar = schemas.StrSchema - foo = schemas.StrSchema - __annotations__ = { - "bar": bar, - "foo": foo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'HasOnlyReadOnly': - return super().__new__( - cls, - *args, - bar=bar, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py deleted file mode 100644 index 840a5ad96f1..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class HealthCheckResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. - """ - - - class MetaOapg: - - class properties: - - - class NullableMessage( - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NullableMessage': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - __annotations__ = { - "NullableMessage": NullableMessage, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - NullableMessage: typing.Union[MetaOapg.properties.NullableMessage, None, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'HealthCheckResult': - return super().__new__( - cls, - *args, - NullableMessage=NullableMessage, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.pyi deleted file mode 100644 index 840a5ad96f1..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class HealthCheckResult( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. - """ - - - class MetaOapg: - - class properties: - - - class NullableMessage( - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NullableMessage': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - __annotations__ = { - "NullableMessage": NullableMessage, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - NullableMessage: typing.Union[MetaOapg.properties.NullableMessage, None, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'HealthCheckResult': - return super().__new__( - cls, - *args, - NullableMessage=NullableMessage, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py deleted file mode 100644 index 18cd8df6434..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnum( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 0: "POSITIVE_0", - 1: "POSITIVE_1", - 2: "POSITIVE_2", - } - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def POSITIVE_2(cls): - return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.pyi deleted file mode 100644 index 5f88412337f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnum( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def POSITIVE_2(cls): - return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.py deleted file mode 100644 index 615680bd126..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnumBig( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 10: "POSITIVE_10", - 11: "POSITIVE_11", - 12: "POSITIVE_12", - } - - @schemas.classproperty - def POSITIVE_10(cls): - return cls(10) - - @schemas.classproperty - def POSITIVE_11(cls): - return cls(11) - - @schemas.classproperty - def POSITIVE_12(cls): - return cls(12) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.pyi deleted file mode 100644 index 939443fcaaa..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_big.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnumBig( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_10(cls): - return cls(10) - - @schemas.classproperty - def POSITIVE_11(cls): - return cls(11) - - @schemas.classproperty - def POSITIVE_12(cls): - return cls(12) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py deleted file mode 100644 index 6ab7f2f2130..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnumOneValue( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 0: "POSITIVE_0", - } - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.pyi deleted file mode 100644 index 1e911e5f24b..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnumOneValue( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py deleted file mode 100644 index 87b44b36f16..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnumWithDefaultValue( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 0: "POSITIVE_0", - 1: "POSITIVE_1", - 2: "POSITIVE_2", - } - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def POSITIVE_2(cls): - return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.pyi deleted file mode 100644 index 9ecbb8d1630..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerEnumWithDefaultValue( - schemas.EnumBase, - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def POSITIVE_2(cls): - return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.py deleted file mode 100644 index ac4541fad1f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerMax10( - schemas.Int64Schema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'int64' - inclusive_maximum = 10 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.pyi deleted file mode 100644 index 7e0c4ee3373..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_max10.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerMax10( - schemas.Int64Schema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.py deleted file mode 100644 index 8424c1012a0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerMin15( - schemas.Int64Schema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'int64' - inclusive_minimum = 15 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.pyi deleted file mode 100644 index 73d4df6c230..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_min15.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IntegerMin15( - schemas.Int64Schema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py deleted file mode 100644 index ddce91c9b96..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IsoscelesTriangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class triangleType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "IsoscelesTriangle": "ISOSCELES_TRIANGLE", - } - - @schemas.classproperty - def ISOSCELES_TRIANGLE(cls): - return cls("IsoscelesTriangle") - __annotations__ = { - "triangleType": triangleType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TriangleInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'IsoscelesTriangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.pyi deleted file mode 100644 index 5addd141602..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class IsoscelesTriangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class triangleType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ISOSCELES_TRIANGLE(cls): - return cls("IsoscelesTriangle") - __annotations__ = { - "triangleType": triangleType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TriangleInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'IsoscelesTriangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.py b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.py deleted file mode 100644 index 223b0c55127..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequest( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - JSONPatchRequestAddReplaceTest, - JSONPatchRequestRemove, - JSONPatchRequestMoveCopy, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequest': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - -from petstore_api.model.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest -from petstore_api.model.json_patch_request_move_copy import JSONPatchRequestMoveCopy -from petstore_api.model.json_patch_request_remove import JSONPatchRequestRemove diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.pyi deleted file mode 100644 index 223b0c55127..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request.pyi +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequest( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class items( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - JSONPatchRequestAddReplaceTest, - JSONPatchRequestRemove, - JSONPatchRequestMoveCopy, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequest': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - -from petstore_api.model.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest -from petstore_api.model.json_patch_request_move_copy import JSONPatchRequestMoveCopy -from petstore_api.model.json_patch_request_remove import JSONPatchRequestRemove diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.py deleted file mode 100644 index bf95ea98af7..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequestAddReplaceTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "op", - "path", - "value", - } - - class properties: - path = schemas.StrSchema - value = schemas.AnyTypeSchema - - - class op( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "add": "ADD", - "replace": "REPLACE", - "test": "TEST", - } - - @schemas.classproperty - def ADD(cls): - return cls("add") - - @schemas.classproperty - def REPLACE(cls): - return cls("replace") - - @schemas.classproperty - def TEST(cls): - return cls("test") - __annotations__ = { - "path": path, - "value": value, - "op": op, - } - additional_properties = schemas.NotAnyTypeSchema - - op: MetaOapg.properties.op - path: MetaOapg.properties.path - value: MetaOapg.properties.value - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - op: typing.Union[MetaOapg.properties.op, str, ], - path: typing.Union[MetaOapg.properties.path, str, ], - value: typing.Union[MetaOapg.properties.value, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequestAddReplaceTest': - return super().__new__( - cls, - *args, - op=op, - path=path, - value=value, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.pyi deleted file mode 100644 index 50e1a870bdc..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_add_replace_test.pyi +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequestAddReplaceTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "op", - "path", - "value", - } - - class properties: - path = schemas.StrSchema - value = schemas.AnyTypeSchema - - - class op( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ADD(cls): - return cls("add") - - @schemas.classproperty - def REPLACE(cls): - return cls("replace") - - @schemas.classproperty - def TEST(cls): - return cls("test") - __annotations__ = { - "path": path, - "value": value, - "op": op, - } - additional_properties = schemas.NotAnyTypeSchema - - op: MetaOapg.properties.op - path: MetaOapg.properties.path - value: MetaOapg.properties.value - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - op: typing.Union[MetaOapg.properties.op, str, ], - path: typing.Union[MetaOapg.properties.path, str, ], - value: typing.Union[MetaOapg.properties.value, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequestAddReplaceTest': - return super().__new__( - cls, - *args, - op=op, - path=path, - value=value, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.py b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.py deleted file mode 100644 index 0b84fba0970..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequestMoveCopy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "op", - "path", - "from", - } - - class properties: - _from = schemas.StrSchema - path = schemas.StrSchema - - - class op( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "move": "MOVE", - "copy": "COPY", - } - - @schemas.classproperty - def MOVE(cls): - return cls("move") - - @schemas.classproperty - def COPY(cls): - return cls("copy") - __annotations__ = { - "from": _from, - "path": path, - "op": op, - } - additional_properties = schemas.NotAnyTypeSchema - - op: MetaOapg.properties.op - path: MetaOapg.properties.path - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - op: typing.Union[MetaOapg.properties.op, str, ], - path: typing.Union[MetaOapg.properties.path, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequestMoveCopy': - return super().__new__( - cls, - *args, - op=op, - path=path, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.pyi deleted file mode 100644 index 0654ee60fb8..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_move_copy.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequestMoveCopy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "op", - "path", - "from", - } - - class properties: - _from = schemas.StrSchema - path = schemas.StrSchema - - - class op( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def MOVE(cls): - return cls("move") - - @schemas.classproperty - def COPY(cls): - return cls("copy") - __annotations__ = { - "from": _from, - "path": path, - "op": op, - } - additional_properties = schemas.NotAnyTypeSchema - - op: MetaOapg.properties.op - path: MetaOapg.properties.path - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - op: typing.Union[MetaOapg.properties.op, str, ], - path: typing.Union[MetaOapg.properties.path, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequestMoveCopy': - return super().__new__( - cls, - *args, - op=op, - path=path, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.py b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.py deleted file mode 100644 index 4e15b41cefb..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequestRemove( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "op", - "path", - } - - class properties: - path = schemas.StrSchema - - - class op( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "remove": "REMOVE", - } - - @schemas.classproperty - def REMOVE(cls): - return cls("remove") - __annotations__ = { - "path": path, - "op": op, - } - additional_properties = schemas.NotAnyTypeSchema - - op: MetaOapg.properties.op - path: MetaOapg.properties.path - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - op: typing.Union[MetaOapg.properties.op, str, ], - path: typing.Union[MetaOapg.properties.path, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequestRemove': - return super().__new__( - cls, - *args, - op=op, - path=path, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.pyi deleted file mode 100644 index 325cbe8a98e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/json_patch_request_remove.pyi +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class JSONPatchRequestRemove( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "op", - "path", - } - - class properties: - path = schemas.StrSchema - - - class op( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def REMOVE(cls): - return cls("remove") - __annotations__ = { - "path": path, - "op": op, - } - additional_properties = schemas.NotAnyTypeSchema - - op: MetaOapg.properties.op - path: MetaOapg.properties.path - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - op: typing.Union[MetaOapg.properties.op, str, ], - path: typing.Union[MetaOapg.properties.path, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'JSONPatchRequestRemove': - return super().__new__( - cls, - *args, - op=op, - path=path, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py b/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py deleted file mode 100644 index e90d419cc62..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Mammal( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'className': { - 'Pig': Pig, - 'whale': Whale, - 'zebra': Zebra, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Whale, - Zebra, - Pig, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Mammal': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.pig import Pig -from petstore_api.model.whale import Whale -from petstore_api.model.zebra import Zebra diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/mammal.pyi deleted file mode 100644 index e90d419cc62..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.pyi +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Mammal( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'className': { - 'Pig': Pig, - 'whale': Whale, - 'zebra': Zebra, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Whale, - Zebra, - Pig, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Mammal': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.pig import Pig -from petstore_api.model.whale import Whale -from petstore_api.model.zebra import Zebra diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py deleted file mode 100644 index 031503142c6..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class MapTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class map_map_of_string( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'map_map_of_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class map_of_enum_string( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "UPPER": "UPPER", - "lower": "LOWER", - } - - @schemas.classproperty - def UPPER(cls): - return cls("UPPER") - - @schemas.classproperty - def LOWER(cls): - return cls("lower") - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_of_enum_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class direct_map( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'direct_map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @staticmethod - def indirect_map() -> typing.Type['StringBooleanMap']: - return StringBooleanMap - __annotations__ = { - "map_map_of_string": map_map_of_string, - "map_of_enum_string": map_of_enum_string, - "direct_map": direct_map, - "indirect_map": indirect_map, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["indirect_map"]) -> 'StringBooleanMap': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - map_map_of_string: typing.Union[MetaOapg.properties.map_map_of_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_of_enum_string: typing.Union[MetaOapg.properties.map_of_enum_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - direct_map: typing.Union[MetaOapg.properties.direct_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - indirect_map: typing.Union['StringBooleanMap', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MapTest': - return super().__new__( - cls, - *args, - map_map_of_string=map_map_of_string, - map_of_enum_string=map_of_enum_string, - direct_map=direct_map, - indirect_map=indirect_map, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.string_boolean_map import StringBooleanMap diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/map_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/map_test.pyi deleted file mode 100644 index a89ebb2fc83..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/map_test.pyi +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class MapTest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class map_map_of_string( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'map_map_of_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class map_of_enum_string( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def UPPER(cls): - return cls("UPPER") - - @schemas.classproperty - def LOWER(cls): - return cls("lower") - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'map_of_enum_string': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class direct_map( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'direct_map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @staticmethod - def indirect_map() -> typing.Type['StringBooleanMap']: - return StringBooleanMap - __annotations__ = { - "map_map_of_string": map_map_of_string, - "map_of_enum_string": map_of_enum_string, - "direct_map": direct_map, - "indirect_map": indirect_map, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["indirect_map"]) -> 'StringBooleanMap': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - map_map_of_string: typing.Union[MetaOapg.properties.map_map_of_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - map_of_enum_string: typing.Union[MetaOapg.properties.map_of_enum_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - direct_map: typing.Union[MetaOapg.properties.direct_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - indirect_map: typing.Union['StringBooleanMap', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MapTest': - return super().__new__( - cls, - *args, - map_map_of_string=map_map_of_string, - map_of_enum_string=map_of_enum_string, - direct_map=direct_map, - indirect_map=indirect_map, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.string_boolean_map import StringBooleanMap diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py deleted file mode 100644 index b146d15b6a0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class MixedPropertiesAndAdditionalPropertiesClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - uuid = schemas.UUIDSchema - dateTime = schemas.DateTimeSchema - - - class map( - schemas.DictSchema - ): - - - class MetaOapg: - - @staticmethod - def additional_properties() -> typing.Type['Animal']: - return Animal - - def __getitem__(self, name: typing.Union[str, ]) -> 'Animal': - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> 'Animal': - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'Animal', - ) -> 'map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "uuid": uuid, - "dateTime": dateTime, - "map": map, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map"]) -> MetaOapg.properties.map: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, - dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, - map: typing.Union[MetaOapg.properties.map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MixedPropertiesAndAdditionalPropertiesClass': - return super().__new__( - cls, - *args, - uuid=uuid, - dateTime=dateTime, - map=map, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.pyi deleted file mode 100644 index b146d15b6a0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.pyi +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class MixedPropertiesAndAdditionalPropertiesClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - uuid = schemas.UUIDSchema - dateTime = schemas.DateTimeSchema - - - class map( - schemas.DictSchema - ): - - - class MetaOapg: - - @staticmethod - def additional_properties() -> typing.Type['Animal']: - return Animal - - def __getitem__(self, name: typing.Union[str, ]) -> 'Animal': - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> 'Animal': - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'Animal', - ) -> 'map': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "uuid": uuid, - "dateTime": dateTime, - "map": map, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["map"]) -> MetaOapg.properties.map: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, - dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, - map: typing.Union[MetaOapg.properties.map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MixedPropertiesAndAdditionalPropertiesClass': - return super().__new__( - cls, - *args, - uuid=uuid, - dateTime=dateTime, - map=map, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py deleted file mode 100644 index 7cdc34c5768..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Model200Response( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - model with an invalid class name for python, starts with a number - """ - - - class MetaOapg: - - class properties: - name = schemas.Int32Schema - _class = schemas.StrSchema - __annotations__ = { - "name": name, - "class": _class, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["class"]) -> MetaOapg.properties._class: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Model200Response': - return super().__new__( - cls, - *args, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.pyi deleted file mode 100644 index 7cdc34c5768..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Model200Response( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - model with an invalid class name for python, starts with a number - """ - - - class MetaOapg: - - class properties: - name = schemas.Int32Schema - _class = schemas.StrSchema - __annotations__ = { - "name": name, - "class": _class, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["class"]) -> MetaOapg.properties._class: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Model200Response': - return super().__new__( - cls, - *args, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py deleted file mode 100644 index 1549dc1120d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ModelReturn( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Model for testing reserved words - """ - - - class MetaOapg: - - class properties: - _return = schemas.Int32Schema - __annotations__ = { - "return": _return, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return"]) -> MetaOapg.properties._return: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["return", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["return", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ModelReturn': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/model_return.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/model_return.pyi deleted file mode 100644 index 1549dc1120d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/model_return.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ModelReturn( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Model for testing reserved words - """ - - - class MetaOapg: - - class properties: - _return = schemas.Int32Schema - __annotations__ = { - "return": _return, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["return"]) -> MetaOapg.properties._return: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["return", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["return", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ModelReturn': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/money.py b/samples/openapi3/client/petstore/python/petstore_api/model/money.py deleted file mode 100644 index 5804737d2f4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/money.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Money( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "currency", - } - - class properties: - amount = schemas.DecimalSchema - - @staticmethod - def currency() -> typing.Type['Currency']: - return Currency - __annotations__ = { - "amount": amount, - "currency": currency, - } - - amount: MetaOapg.properties.amount - currency: 'Currency' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - currency: 'Currency', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Money': - return super().__new__( - cls, - *args, - amount=amount, - currency=currency, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.currency import Currency diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/money.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/money.pyi deleted file mode 100644 index 5804737d2f4..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/money.pyi +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Money( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "amount", - "currency", - } - - class properties: - amount = schemas.DecimalSchema - - @staticmethod - def currency() -> typing.Type['Currency']: - return Currency - __annotations__ = { - "amount": amount, - "currency": currency, - } - - amount: MetaOapg.properties.amount - currency: 'Currency' - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - amount: typing.Union[MetaOapg.properties.amount, str, ], - currency: 'Currency', - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Money': - return super().__new__( - cls, - *args, - amount=amount, - currency=currency, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.currency import Currency diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/name.py b/samples/openapi3/client/petstore/python/petstore_api/model/name.py deleted file mode 100644 index e67d017f241..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/name.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Name( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Model for testing model name same as property name - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.Int32Schema - snake_case = schemas.Int32Schema - _property = schemas.StrSchema - __annotations__ = { - "name": name, - "snake_case": snake_case, - "property": _property, - } - - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["property"]) -> MetaOapg.properties._property: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, ], - snake_case: typing.Union[MetaOapg.properties.snake_case, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Name': - return super().__new__( - cls, - *args, - name=name, - snake_case=snake_case, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/name.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/name.pyi deleted file mode 100644 index e67d017f241..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/name.pyi +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Name( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Model for testing model name same as property name - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.Int32Schema - snake_case = schemas.Int32Schema - _property = schemas.StrSchema - __annotations__ = { - "name": name, - "snake_case": snake_case, - "property": _property, - } - - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["property"]) -> MetaOapg.properties._property: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, ], - snake_case: typing.Union[MetaOapg.properties.snake_case, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Name': - return super().__new__( - cls, - *args, - name=name, - snake_case=snake_case, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.py b/samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.py deleted file mode 100644 index cacfe6027ea..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NoAdditionalProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - } - - class properties: - id = schemas.Int64Schema - petId = schemas.Int64Schema - __annotations__ = { - "id": id, - "petId": petId, - } - additional_properties = schemas.NotAnyTypeSchema - - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, ], - petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NoAdditionalProperties': - return super().__new__( - cls, - *args, - id=id, - petId=petId, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.pyi deleted file mode 100644 index cacfe6027ea..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/no_additional_properties.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NoAdditionalProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "id", - } - - class properties: - id = schemas.Int64Schema - petId = schemas.Int64Schema - __annotations__ = { - "id": id, - "petId": petId, - } - additional_properties = schemas.NotAnyTypeSchema - - id: MetaOapg.properties.id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, ], - petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NoAdditionalProperties': - return super().__new__( - cls, - *args, - id=id, - petId=petId, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py deleted file mode 100644 index 0d3c13b4576..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py +++ /dev/null @@ -1,576 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NullableClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class integer_prop( - schemas.IntBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneDecimalMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'integer_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class number_prop( - schemas.NumberBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneDecimalMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'number_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class boolean_prop( - schemas.BoolBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneBoolMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'boolean_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class string_prop( - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'string_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class date_prop( - schemas.DateBase, - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - class MetaOapg: - format = 'date' - - - def __new__( - cls, - *args: typing.Union[None, str, date, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'date_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class datetime_prop( - schemas.DateTimeBase, - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - class MetaOapg: - format = 'date-time' - - - def __new__( - cls, - *args: typing.Union[None, str, datetime, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'datetime_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class array_nullable_prop( - schemas.ListBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneTupleMixin - ): - - - class MetaOapg: - items = schemas.DictSchema - - - def __new__( - cls, - *args: typing.Union[list, tuple, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class array_and_items_nullable_prop( - schemas.ListBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneTupleMixin - ): - - - class MetaOapg: - - - class items( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - def __new__( - cls, - *args: typing.Union[list, tuple, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_and_items_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class array_items_nullable( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_items_nullable': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class object_nullable_prop( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - class MetaOapg: - additional_properties = schemas.DictSchema - - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'object_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class object_and_items_nullable_prop( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], - ) -> 'object_and_items_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class object_items_nullable( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], - ) -> 'object_items_nullable': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "integer_prop": integer_prop, - "number_prop": number_prop, - "boolean_prop": boolean_prop, - "string_prop": string_prop, - "date_prop": date_prop, - "datetime_prop": datetime_prop, - "array_nullable_prop": array_nullable_prop, - "array_and_items_nullable_prop": array_and_items_nullable_prop, - "array_items_nullable": array_items_nullable, - "object_nullable_prop": object_nullable_prop, - "object_and_items_nullable_prop": object_and_items_nullable_prop, - "object_items_nullable": object_items_nullable, - } - - - class additional_properties( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - integer_prop: typing.Union[MetaOapg.properties.integer_prop, None, decimal.Decimal, int, schemas.Unset] = schemas.unset, - number_prop: typing.Union[MetaOapg.properties.number_prop, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - boolean_prop: typing.Union[MetaOapg.properties.boolean_prop, None, bool, schemas.Unset] = schemas.unset, - string_prop: typing.Union[MetaOapg.properties.string_prop, None, str, schemas.Unset] = schemas.unset, - date_prop: typing.Union[MetaOapg.properties.date_prop, None, str, date, schemas.Unset] = schemas.unset, - datetime_prop: typing.Union[MetaOapg.properties.datetime_prop, None, str, datetime, schemas.Unset] = schemas.unset, - array_nullable_prop: typing.Union[MetaOapg.properties.array_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, - array_and_items_nullable_prop: typing.Union[MetaOapg.properties.array_and_items_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, - array_items_nullable: typing.Union[MetaOapg.properties.array_items_nullable, list, tuple, schemas.Unset] = schemas.unset, - object_nullable_prop: typing.Union[MetaOapg.properties.object_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, - object_and_items_nullable_prop: typing.Union[MetaOapg.properties.object_and_items_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, - object_items_nullable: typing.Union[MetaOapg.properties.object_items_nullable, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], - ) -> 'NullableClass': - return super().__new__( - cls, - *args, - integer_prop=integer_prop, - number_prop=number_prop, - boolean_prop=boolean_prop, - string_prop=string_prop, - date_prop=date_prop, - datetime_prop=datetime_prop, - array_nullable_prop=array_nullable_prop, - array_and_items_nullable_prop=array_and_items_nullable_prop, - array_items_nullable=array_items_nullable, - object_nullable_prop=object_nullable_prop, - object_and_items_nullable_prop=object_and_items_nullable_prop, - object_items_nullable=object_items_nullable, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.pyi deleted file mode 100644 index 0d3c13b4576..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.pyi +++ /dev/null @@ -1,576 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NullableClass( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class integer_prop( - schemas.IntBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneDecimalMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'integer_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class number_prop( - schemas.NumberBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneDecimalMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, decimal.Decimal, int, float, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'number_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class boolean_prop( - schemas.BoolBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneBoolMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, bool, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'boolean_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class string_prop( - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'string_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class date_prop( - schemas.DateBase, - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - class MetaOapg: - format = 'date' - - - def __new__( - cls, - *args: typing.Union[None, str, date, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'date_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class datetime_prop( - schemas.DateTimeBase, - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin - ): - - - class MetaOapg: - format = 'date-time' - - - def __new__( - cls, - *args: typing.Union[None, str, datetime, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'datetime_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class array_nullable_prop( - schemas.ListBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneTupleMixin - ): - - - class MetaOapg: - items = schemas.DictSchema - - - def __new__( - cls, - *args: typing.Union[list, tuple, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class array_and_items_nullable_prop( - schemas.ListBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneTupleMixin - ): - - - class MetaOapg: - - - class items( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - def __new__( - cls, - *args: typing.Union[list, tuple, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_and_items_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) - - - class array_items_nullable( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'items': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'array_items_nullable': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class object_nullable_prop( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - class MetaOapg: - additional_properties = schemas.DictSchema - - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'object_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class object_and_items_nullable_prop( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], - ) -> 'object_and_items_nullable_prop': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class object_items_nullable( - schemas.DictSchema - ): - - - class MetaOapg: - - - class additional_properties( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], - ) -> 'object_items_nullable': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "integer_prop": integer_prop, - "number_prop": number_prop, - "boolean_prop": boolean_prop, - "string_prop": string_prop, - "date_prop": date_prop, - "datetime_prop": datetime_prop, - "array_nullable_prop": array_nullable_prop, - "array_and_items_nullable_prop": array_and_items_nullable_prop, - "array_items_nullable": array_items_nullable, - "object_nullable_prop": object_nullable_prop, - "object_and_items_nullable_prop": object_and_items_nullable_prop, - "object_items_nullable": object_items_nullable, - } - - - class additional_properties( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'additional_properties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - integer_prop: typing.Union[MetaOapg.properties.integer_prop, None, decimal.Decimal, int, schemas.Unset] = schemas.unset, - number_prop: typing.Union[MetaOapg.properties.number_prop, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - boolean_prop: typing.Union[MetaOapg.properties.boolean_prop, None, bool, schemas.Unset] = schemas.unset, - string_prop: typing.Union[MetaOapg.properties.string_prop, None, str, schemas.Unset] = schemas.unset, - date_prop: typing.Union[MetaOapg.properties.date_prop, None, str, date, schemas.Unset] = schemas.unset, - datetime_prop: typing.Union[MetaOapg.properties.datetime_prop, None, str, datetime, schemas.Unset] = schemas.unset, - array_nullable_prop: typing.Union[MetaOapg.properties.array_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, - array_and_items_nullable_prop: typing.Union[MetaOapg.properties.array_and_items_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, - array_items_nullable: typing.Union[MetaOapg.properties.array_items_nullable, list, tuple, schemas.Unset] = schemas.unset, - object_nullable_prop: typing.Union[MetaOapg.properties.object_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, - object_and_items_nullable_prop: typing.Union[MetaOapg.properties.object_and_items_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, - object_items_nullable: typing.Union[MetaOapg.properties.object_items_nullable, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], - ) -> 'NullableClass': - return super().__new__( - cls, - *args, - integer_prop=integer_prop, - number_prop=number_prop, - boolean_prop=boolean_prop, - string_prop=string_prop, - date_prop=date_prop, - datetime_prop=datetime_prop, - array_nullable_prop=array_nullable_prop, - array_and_items_nullable_prop=array_and_items_nullable_prop, - array_items_nullable=array_items_nullable, - object_nullable_prop=object_nullable_prop, - object_and_items_nullable_prop=object_and_items_nullable_prop, - object_items_nullable=object_items_nullable, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py deleted file mode 100644 index e22e8d824e2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NullableShape( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) - """ - - - class MetaOapg: - one_of_2 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Triangle, - Quadrilateral, - cls.one_of_2, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NullableShape': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.pyi deleted file mode 100644 index e22e8d824e2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.pyi +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NullableShape( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) - """ - - - class MetaOapg: - one_of_2 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Triangle, - Quadrilateral, - cls.one_of_2, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NullableShape': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.py b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.py deleted file mode 100644 index 94353cf0fd2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NullableString( - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NullableString': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.pyi deleted file mode 100644 index 94353cf0fd2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_string.pyi +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NullableString( - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NullableString': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number.py b/samples/openapi3/client/petstore/python/petstore_api/model/number.py deleted file mode 100644 index 7210b911ced..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -Number = schemas.NumberSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/number.pyi deleted file mode 100644 index 7210b911ced..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -Number = schemas.NumberSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py deleted file mode 100644 index 91aaaa507b8..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NumberOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - JustNumber = schemas.NumberSchema - __annotations__ = { - "JustNumber": JustNumber, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - JustNumber: typing.Union[MetaOapg.properties.JustNumber, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NumberOnly': - return super().__new__( - cls, - *args, - JustNumber=JustNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/number_only.pyi deleted file mode 100644 index 91aaaa507b8..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number_only.pyi +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NumberOnly( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - JustNumber = schemas.NumberSchema - __annotations__ = { - "JustNumber": JustNumber, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - JustNumber: typing.Union[MetaOapg.properties.JustNumber, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NumberOnly': - return super().__new__( - cls, - *args, - JustNumber=JustNumber, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py deleted file mode 100644 index f8b63e35856..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NumberWithValidations( - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - inclusive_maximum = 20 - inclusive_minimum = 10 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.pyi deleted file mode 100644 index 4e92a920061..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class NumberWithValidations( - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py deleted file mode 100644 index 05dc6ddd565..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -ObjectInterface = schemas.DictSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.pyi deleted file mode 100644 index 05dc6ddd565..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -ObjectInterface = schemas.DictSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py deleted file mode 100644 index b3ab14ba2d5..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectModelWithRefProps( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def myNumber() -> typing.Type['NumberWithValidations']: - return NumberWithValidations - - @staticmethod - def myString() -> typing.Type['String']: - return String - - @staticmethod - def myBoolean() -> typing.Type['Boolean']: - return Boolean - __annotations__ = { - "myNumber": myNumber, - "myString": myString, - "myBoolean": myBoolean, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["myNumber"]) -> 'NumberWithValidations': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["myString"]) -> 'String': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["myBoolean"]) -> 'Boolean': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["myString"]) -> typing.Union['String', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["myBoolean"]) -> typing.Union['Boolean', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - myNumber: typing.Union['NumberWithValidations', schemas.Unset] = schemas.unset, - myString: typing.Union['String', schemas.Unset] = schemas.unset, - myBoolean: typing.Union['Boolean', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectModelWithRefProps': - return super().__new__( - cls, - *args, - myNumber=myNumber, - myString=myString, - myBoolean=myBoolean, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.boolean import Boolean -from petstore_api.model.number_with_validations import NumberWithValidations -from petstore_api.model.string import String diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.pyi deleted file mode 100644 index b3ab14ba2d5..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.pyi +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectModelWithRefProps( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def myNumber() -> typing.Type['NumberWithValidations']: - return NumberWithValidations - - @staticmethod - def myString() -> typing.Type['String']: - return String - - @staticmethod - def myBoolean() -> typing.Type['Boolean']: - return Boolean - __annotations__ = { - "myNumber": myNumber, - "myString": myString, - "myBoolean": myBoolean, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["myNumber"]) -> 'NumberWithValidations': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["myString"]) -> 'String': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["myBoolean"]) -> 'Boolean': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["myString"]) -> typing.Union['String', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["myBoolean"]) -> typing.Union['Boolean', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - myNumber: typing.Union['NumberWithValidations', schemas.Unset] = schemas.unset, - myString: typing.Union['String', schemas.Unset] = schemas.unset, - myBoolean: typing.Union['Boolean', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectModelWithRefProps': - return super().__new__( - cls, - *args, - myNumber=myNumber, - myString=myString, - myBoolean=myBoolean, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.boolean import Boolean -from petstore_api.model.number_with_validations import NumberWithValidations -from petstore_api.model.string import String diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.py deleted file mode 100644 index beef11f6556..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithAllOfWithReqTestPropFromUnsetAddProp( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "test", - } - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - test: schemas.AnyTypeSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - test: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - test=test, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - ObjectWithOptionalTestProp, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithAllOfWithReqTestPropFromUnsetAddProp': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi deleted file mode 100644 index beef11f6556..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithAllOfWithReqTestPropFromUnsetAddProp( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - required = { - "test", - } - - class properties: - name = schemas.StrSchema - __annotations__ = { - "name": name, - } - - test: schemas.AnyTypeSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - test: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - test=test, - name=name, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - ObjectWithOptionalTestProp, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithAllOfWithReqTestPropFromUnsetAddProp': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.py deleted file mode 100644 index 20d1a1e18ca..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithDecimalProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def length() -> typing.Type['DecimalPayload']: - return DecimalPayload - width = schemas.DecimalSchema - - @staticmethod - def cost() -> typing.Type['Money']: - return Money - __annotations__ = { - "length": length, - "width": width, - "cost": cost, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["length"]) -> 'DecimalPayload': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["width"]) -> MetaOapg.properties.width: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cost"]) -> 'Money': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["length"]) -> typing.Union['DecimalPayload', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - length: typing.Union['DecimalPayload', schemas.Unset] = schemas.unset, - width: typing.Union[MetaOapg.properties.width, str, schemas.Unset] = schemas.unset, - cost: typing.Union['Money', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithDecimalProperties': - return super().__new__( - cls, - *args, - length=length, - width=width, - cost=cost, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.decimal_payload import DecimalPayload -from petstore_api.model.money import Money diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.pyi deleted file mode 100644 index 20d1a1e18ca..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_decimal_properties.pyi +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithDecimalProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def length() -> typing.Type['DecimalPayload']: - return DecimalPayload - width = schemas.DecimalSchema - - @staticmethod - def cost() -> typing.Type['Money']: - return Money - __annotations__ = { - "length": length, - "width": width, - "cost": cost, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["length"]) -> 'DecimalPayload': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["width"]) -> MetaOapg.properties.width: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["cost"]) -> 'Money': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["length"]) -> typing.Union['DecimalPayload', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - length: typing.Union['DecimalPayload', schemas.Unset] = schemas.unset, - width: typing.Union[MetaOapg.properties.width, str, schemas.Unset] = schemas.unset, - cost: typing.Union['Money', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithDecimalProperties': - return super().__new__( - cls, - *args, - length=length, - width=width, - cost=cost, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.decimal_payload import DecimalPayload -from petstore_api.model.money import Money diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.py deleted file mode 100644 index 0e6aa7d4a1f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithDifficultlyNamedProps( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - model with properties that have invalid names for python - """ - - - class MetaOapg: - required = { - "123-list", - } - - class properties: - _123_list = schemas.StrSchema - special_property_name = schemas.Int64Schema - _123_number = schemas.IntSchema - __annotations__ = { - "123-list": _123_list, - "$special[property.name]": special_property_name, - "123Number": _123_number, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["123Number"]) -> MetaOapg.properties._123_number: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithDifficultlyNamedProps': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.pyi deleted file mode 100644 index 0e6aa7d4a1f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_difficultly_named_props.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithDifficultlyNamedProps( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - model with properties that have invalid names for python - """ - - - class MetaOapg: - required = { - "123-list", - } - - class properties: - _123_list = schemas.StrSchema - special_property_name = schemas.Int64Schema - _123_number = schemas.IntSchema - __annotations__ = { - "123-list": _123_list, - "$special[property.name]": special_property_name, - "123Number": _123_number, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["123Number"]) -> MetaOapg.properties._123_number: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithDifficultlyNamedProps': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.py deleted file mode 100644 index 31e422370ff..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithInlineCompositionProperty( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class someProp( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - - class all_of_0( - schemas.StrSchema - ): - - - class MetaOapg: - min_length = 1 - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'someProp': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "someProp": someProp, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - someProp: typing.Union[MetaOapg.properties.someProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithInlineCompositionProperty': - return super().__new__( - cls, - *args, - someProp=someProp, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.pyi deleted file mode 100644 index 294520bd232..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_inline_composition_property.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithInlineCompositionProperty( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class someProp( - schemas.ComposedSchema, - ): - - - class MetaOapg: - - - class all_of_0( - schemas.StrSchema - ): - pass - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'someProp': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - __annotations__ = { - "someProp": someProp, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - someProp: typing.Union[MetaOapg.properties.someProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithInlineCompositionProperty': - return super().__new__( - cls, - *args, - someProp=someProp, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.py deleted file mode 100644 index 0efcbfa5f4c..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithInvalidNamedRefedProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "!reference", - "from", - } - - class properties: - - @staticmethod - def _from() -> typing.Type['FromSchema']: - return FromSchema - - @staticmethod - def reference() -> typing.Type['ArrayWithValidationsInItems']: - return ArrayWithValidationsInItems - __annotations__ = { - "from": _from, - "!reference": reference, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithInvalidNamedRefedProperties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.array_with_validations_in_items import ArrayWithValidationsInItems -from petstore_api.model.from_schema import FromSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.pyi deleted file mode 100644 index 0efcbfa5f4c..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_invalid_named_refed_properties.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithInvalidNamedRefedProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "!reference", - "from", - } - - class properties: - - @staticmethod - def _from() -> typing.Type['FromSchema']: - return FromSchema - - @staticmethod - def reference() -> typing.Type['ArrayWithValidationsInItems']: - return ArrayWithValidationsInItems - __annotations__ = { - "from": _from, - "!reference": reference, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithInvalidNamedRefedProperties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.array_with_validations_in_items import ArrayWithValidationsInItems -from petstore_api.model.from_schema import FromSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.py deleted file mode 100644 index 07cae57d4c2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithOptionalTestProp( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - test = schemas.StrSchema - __annotations__ = { - "test": test, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["test"]) -> MetaOapg.properties.test: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["test", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["test"]) -> typing.Union[MetaOapg.properties.test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["test", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - test: typing.Union[MetaOapg.properties.test, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithOptionalTestProp': - return super().__new__( - cls, - *args, - test=test, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.pyi deleted file mode 100644 index 07cae57d4c2..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_optional_test_prop.pyi +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithOptionalTestProp( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - test = schemas.StrSchema - __annotations__ = { - "test": test, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["test"]) -> MetaOapg.properties.test: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["test", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["test"]) -> typing.Union[MetaOapg.properties.test, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["test", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - test: typing.Union[MetaOapg.properties.test, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithOptionalTestProp': - return super().__new__( - cls, - *args, - test=test, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py deleted file mode 100644 index 50c22698177..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithValidations( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - min_properties = 2 - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithValidations': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.pyi deleted file mode 100644 index f45e30eed5f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ObjectWithValidations( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectWithValidations': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/order.py b/samples/openapi3/client/petstore/python/petstore_api/model/order.py deleted file mode 100644 index 6d653b0ab07..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/order.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Order( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.Int64Schema - petId = schemas.Int64Schema - quantity = schemas.Int32Schema - shipDate = schemas.DateTimeSchema - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "placed": "PLACED", - "approved": "APPROVED", - "delivered": "DELIVERED", - } - - @schemas.classproperty - def PLACED(cls): - return cls("placed") - - @schemas.classproperty - def APPROVED(cls): - return cls("approved") - - @schemas.classproperty - def DELIVERED(cls): - return cls("delivered") - complete = schemas.BoolSchema - __annotations__ = { - "id": id, - "petId": petId, - "quantity": quantity, - "shipDate": shipDate, - "status": status, - "complete": complete, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["complete"]) -> MetaOapg.properties.complete: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, - quantity: typing.Union[MetaOapg.properties.quantity, decimal.Decimal, int, schemas.Unset] = schemas.unset, - shipDate: typing.Union[MetaOapg.properties.shipDate, str, datetime, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - complete: typing.Union[MetaOapg.properties.complete, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Order': - return super().__new__( - cls, - *args, - id=id, - petId=petId, - quantity=quantity, - shipDate=shipDate, - status=status, - complete=complete, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/order.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/order.pyi deleted file mode 100644 index ccbca89e082..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/order.pyi +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Order( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.Int64Schema - petId = schemas.Int64Schema - quantity = schemas.Int32Schema - shipDate = schemas.DateTimeSchema - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def PLACED(cls): - return cls("placed") - - @schemas.classproperty - def APPROVED(cls): - return cls("approved") - - @schemas.classproperty - def DELIVERED(cls): - return cls("delivered") - complete = schemas.BoolSchema - __annotations__ = { - "id": id, - "petId": petId, - "quantity": quantity, - "shipDate": shipDate, - "status": status, - "complete": complete, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["complete"]) -> MetaOapg.properties.complete: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, - quantity: typing.Union[MetaOapg.properties.quantity, decimal.Decimal, int, schemas.Unset] = schemas.unset, - shipDate: typing.Union[MetaOapg.properties.shipDate, str, datetime, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - complete: typing.Union[MetaOapg.properties.complete, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Order': - return super().__new__( - cls, - *args, - id=id, - petId=petId, - quantity=quantity, - shipDate=shipDate, - status=status, - complete=complete, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py b/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py deleted file mode 100644 index 178eab4e5a1..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ParentPet( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'pet_type': { - 'ChildCat': ChildCat, - } - } - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - GrandparentAnimal, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ParentPet': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.child_cat import ChildCat -from petstore_api.model.grandparent_animal import GrandparentAnimal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.pyi deleted file mode 100644 index 178eab4e5a1..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.pyi +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ParentPet( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'pet_type': { - 'ChildCat': ChildCat, - } - } - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - GrandparentAnimal, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ParentPet': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.child_cat import ChildCat -from petstore_api.model.grandparent_animal import GrandparentAnimal diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pet.py b/samples/openapi3/client/petstore/python/petstore_api/model/pet.py deleted file mode 100644 index 5b1b6b8275e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pet.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Pet( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Pet object that needs to be added to the store - """ - - - class MetaOapg: - required = { - "photoUrls", - "name", - } - - class properties: - name = schemas.StrSchema - - - class photoUrls( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'photoUrls': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - id = schemas.Int64Schema - - @staticmethod - def category() -> typing.Type['Category']: - return Category - - - class tags( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Tag']: - return Tag - - def __new__( - cls, - arg: typing.Union[typing.Tuple['Tag'], typing.List['Tag']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'tags': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Tag': - return super().__getitem__(i) - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "available": "AVAILABLE", - "pending": "PENDING", - "sold": "SOLD", - } - - @schemas.classproperty - def AVAILABLE(cls): - return cls("available") - - @schemas.classproperty - def PENDING(cls): - return cls("pending") - - @schemas.classproperty - def SOLD(cls): - return cls("sold") - __annotations__ = { - "name": name, - "photoUrls": photoUrls, - "id": id, - "category": category, - "tags": tags, - "status": status, - } - - photoUrls: MetaOapg.properties.photoUrls - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'Category': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tags"]) -> MetaOapg.properties.tags: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - photoUrls: typing.Union[MetaOapg.properties.photoUrls, list, tuple, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - category: typing.Union['Category', schemas.Unset] = schemas.unset, - tags: typing.Union[MetaOapg.properties.tags, list, tuple, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Pet': - return super().__new__( - cls, - *args, - photoUrls=photoUrls, - name=name, - id=id, - category=category, - tags=tags, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.category import Category -from petstore_api.model.tag import Tag diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pet.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/pet.pyi deleted file mode 100644 index 01529098ea0..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pet.pyi +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Pet( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Pet object that needs to be added to the store - """ - - - class MetaOapg: - required = { - "photoUrls", - "name", - } - - class properties: - name = schemas.StrSchema - - - class photoUrls( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'photoUrls': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - id = schemas.Int64Schema - - @staticmethod - def category() -> typing.Type['Category']: - return Category - - - class tags( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['Tag']: - return Tag - - def __new__( - cls, - arg: typing.Union[typing.Tuple['Tag'], typing.List['Tag']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'tags': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'Tag': - return super().__getitem__(i) - - - class status( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def AVAILABLE(cls): - return cls("available") - - @schemas.classproperty - def PENDING(cls): - return cls("pending") - - @schemas.classproperty - def SOLD(cls): - return cls("sold") - __annotations__ = { - "name": name, - "photoUrls": photoUrls, - "id": id, - "category": category, - "tags": tags, - "status": status, - } - - photoUrls: MetaOapg.properties.photoUrls - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'Category': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tags"]) -> MetaOapg.properties.tags: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - photoUrls: typing.Union[MetaOapg.properties.photoUrls, list, tuple, ], - name: typing.Union[MetaOapg.properties.name, str, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - category: typing.Union['Category', schemas.Unset] = schemas.unset, - tags: typing.Union[MetaOapg.properties.tags, list, tuple, schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Pet': - return super().__new__( - cls, - *args, - photoUrls=photoUrls, - name=name, - id=id, - category=category, - tags=tags, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.category import Category -from petstore_api.model.tag import Tag diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/pig.py deleted file mode 100644 index db4887c110e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pig.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Pig( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'className': { - 'BasquePig': BasquePig, - 'DanishPig': DanishPig, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - BasquePig, - DanishPig, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Pig': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.basque_pig import BasquePig -from petstore_api.model.danish_pig import DanishPig diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pig.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/pig.pyi deleted file mode 100644 index db4887c110e..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pig.pyi +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Pig( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'className': { - 'BasquePig': BasquePig, - 'DanishPig': DanishPig, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - BasquePig, - DanishPig, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Pig': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.basque_pig import BasquePig -from petstore_api.model.danish_pig import DanishPig diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/player.py b/samples/openapi3/client/petstore/python/petstore_api/model/player.py deleted file mode 100644 index d08a18d2ee5..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/player.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Player( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - a model that includes a self reference this forces properties and additionalProperties to be lazy loaded in python models because the Player class has not fully loaded when defining properties - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - - @staticmethod - def enemyPlayer() -> typing.Type['Player']: - return Player - __annotations__ = { - "name": name, - "enemyPlayer": enemyPlayer, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enemyPlayer"]) -> 'Player': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - enemyPlayer: typing.Union['Player', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Player': - return super().__new__( - cls, - *args, - name=name, - enemyPlayer=enemyPlayer, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/player.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/player.pyi deleted file mode 100644 index d08a18d2ee5..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/player.pyi +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Player( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - a model that includes a self reference this forces properties and additionalProperties to be lazy loaded in python models because the Player class has not fully loaded when defining properties - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - - @staticmethod - def enemyPlayer() -> typing.Type['Player']: - return Player - __annotations__ = { - "name": name, - "enemyPlayer": enemyPlayer, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["enemyPlayer"]) -> 'Player': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - enemyPlayer: typing.Union['Player', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Player': - return super().__new__( - cls, - *args, - name=name, - enemyPlayer=enemyPlayer, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py deleted file mode 100644 index 6a9b08fa1fd..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Quadrilateral( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'quadrilateralType': { - 'ComplexQuadrilateral': ComplexQuadrilateral, - 'SimpleQuadrilateral': SimpleQuadrilateral, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - SimpleQuadrilateral, - ComplexQuadrilateral, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Quadrilateral': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral -from petstore_api.model.simple_quadrilateral import SimpleQuadrilateral diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.pyi deleted file mode 100644 index 6a9b08fa1fd..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.pyi +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Quadrilateral( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'quadrilateralType': { - 'ComplexQuadrilateral': ComplexQuadrilateral, - 'SimpleQuadrilateral': SimpleQuadrilateral, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - SimpleQuadrilateral, - ComplexQuadrilateral, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Quadrilateral': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral -from petstore_api.model.simple_quadrilateral import SimpleQuadrilateral diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py deleted file mode 100644 index 90c85c2388f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class QuadrilateralInterface( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "shapeType", - "quadrilateralType", - } - - class properties: - - - class shapeType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "Quadrilateral": "QUADRILATERAL", - } - - @schemas.classproperty - def QUADRILATERAL(cls): - return cls("Quadrilateral") - quadrilateralType = schemas.StrSchema - __annotations__ = { - "shapeType": shapeType, - "quadrilateralType": quadrilateralType, - } - - - shapeType: MetaOapg.properties.shapeType - quadrilateralType: MetaOapg.properties.quadrilateralType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], - quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'QuadrilateralInterface': - return super().__new__( - cls, - *args, - shapeType=shapeType, - quadrilateralType=quadrilateralType, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.pyi deleted file mode 100644 index 92505429048..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.pyi +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class QuadrilateralInterface( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "shapeType", - "quadrilateralType", - } - - class properties: - - - class shapeType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def QUADRILATERAL(cls): - return cls("Quadrilateral") - quadrilateralType = schemas.StrSchema - __annotations__ = { - "shapeType": shapeType, - "quadrilateralType": quadrilateralType, - } - - - shapeType: MetaOapg.properties.shapeType - quadrilateralType: MetaOapg.properties.quadrilateralType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], - quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'QuadrilateralInterface': - return super().__new__( - cls, - *args, - shapeType=shapeType, - quadrilateralType=quadrilateralType, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py deleted file mode 100644 index c849de19067..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ReadOnlyFirst( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - bar = schemas.StrSchema - baz = schemas.StrSchema - __annotations__ = { - "bar": bar, - "baz": baz, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - baz: typing.Union[MetaOapg.properties.baz, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ReadOnlyFirst': - return super().__new__( - cls, - *args, - bar=bar, - baz=baz, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.pyi deleted file mode 100644 index c849de19067..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ReadOnlyFirst( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - bar = schemas.StrSchema - baz = schemas.StrSchema - __annotations__ = { - "bar": bar, - "baz": baz, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - baz: typing.Union[MetaOapg.properties.baz, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ReadOnlyFirst': - return super().__new__( - cls, - *args, - bar=bar, - baz=baz, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py deleted file mode 100644 index 46083ad5644..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ScaleneTriangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class triangleType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "ScaleneTriangle": "SCALENE_TRIANGLE", - } - - @schemas.classproperty - def SCALENE_TRIANGLE(cls): - return cls("ScaleneTriangle") - __annotations__ = { - "triangleType": triangleType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TriangleInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ScaleneTriangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.pyi deleted file mode 100644 index b602ba62d53..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ScaleneTriangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class triangleType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def SCALENE_TRIANGLE(cls): - return cls("ScaleneTriangle") - __annotations__ = { - "triangleType": triangleType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - TriangleInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ScaleneTriangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape.py deleted file mode 100644 index bab6e983c84..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Shape( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'shapeType': { - 'Quadrilateral': Quadrilateral, - 'Triangle': Triangle, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Triangle, - Quadrilateral, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Shape': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/shape.pyi deleted file mode 100644 index bab6e983c84..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape.pyi +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Shape( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'shapeType': { - 'Quadrilateral': Quadrilateral, - 'Triangle': Triangle, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - Triangle, - Quadrilateral, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Shape': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py deleted file mode 100644 index 10342b8d037..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ShapeOrNull( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'shapeType': { - 'Quadrilateral': Quadrilateral, - 'Triangle': Triangle, - } - } - one_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - Triangle, - Quadrilateral, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ShapeOrNull': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.pyi deleted file mode 100644 index 10342b8d037..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.pyi +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class ShapeOrNull( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'shapeType': { - 'Quadrilateral': Quadrilateral, - 'Triangle': Triangle, - } - } - one_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - Triangle, - Quadrilateral, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ShapeOrNull': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py deleted file mode 100644 index 93d3c1f9325..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class SimpleQuadrilateral( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class quadrilateralType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "SimpleQuadrilateral": "SIMPLE_QUADRILATERAL", - } - - @schemas.classproperty - def SIMPLE_QUADRILATERAL(cls): - return cls("SimpleQuadrilateral") - __annotations__ = { - "quadrilateralType": quadrilateralType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - quadrilateralType=quadrilateralType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - QuadrilateralInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SimpleQuadrilateral': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.pyi deleted file mode 100644 index 59505edad85..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class SimpleQuadrilateral( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_1( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - - - class quadrilateralType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def SIMPLE_QUADRILATERAL(cls): - return cls("SimpleQuadrilateral") - __annotations__ = { - "quadrilateralType": quadrilateralType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - quadrilateralType=quadrilateralType, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - QuadrilateralInterface, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SimpleQuadrilateral': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py b/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py deleted file mode 100644 index 3ce8eab0b42..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class SomeObject( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - ObjectInterface, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SomeObject': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.object_interface import ObjectInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/some_object.pyi deleted file mode 100644 index 3ce8eab0b42..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.pyi +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class SomeObject( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - ObjectInterface, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SomeObject': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.object_interface import ObjectInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py deleted file mode 100644 index ca1f5c6ab84..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class SpecialModelName( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - model with an invalid class name for python - """ - - - class MetaOapg: - - class properties: - a = schemas.StrSchema - __annotations__ = { - "a": a, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - a: typing.Union[MetaOapg.properties.a, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SpecialModelName': - return super().__new__( - cls, - *args, - a=a, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.pyi deleted file mode 100644 index ca1f5c6ab84..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.pyi +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class SpecialModelName( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - model with an invalid class name for python - """ - - - class MetaOapg: - - class properties: - a = schemas.StrSchema - __annotations__ = { - "a": a, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - a: typing.Union[MetaOapg.properties.a, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SpecialModelName': - return super().__new__( - cls, - *args, - a=a, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string.py b/samples/openapi3/client/petstore/python/petstore_api/model/string.py deleted file mode 100644 index 9e0907b4269..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -String = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/string.pyi deleted file mode 100644 index 9e0907b4269..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 -String = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py deleted file mode 100644 index 9d4a6136b55..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringBooleanMap( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'StringBooleanMap': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.pyi deleted file mode 100644 index 9d4a6136b55..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.pyi +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringBooleanMap( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'StringBooleanMap': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py deleted file mode 100644 index abc1696bc14..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringEnum( - schemas.EnumBase, - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "placed": "PLACED", - "approved": "APPROVED", - "delivered": "DELIVERED", - "single quoted": "SINGLE_QUOTED", - "multiple\nlines": "MULTIPLE_LINES", - "double quote \n with newline": "DOUBLE_QUOTE_WITH_NEWLINE", - schemas.NoneClass.NONE: "NONE", - } - - @schemas.classproperty - def PLACED(cls): - return cls("placed") - - @schemas.classproperty - def APPROVED(cls): - return cls("approved") - - @schemas.classproperty - def DELIVERED(cls): - return cls("delivered") - - @schemas.classproperty - def SINGLE_QUOTED(cls): - return cls("single quoted") - - @schemas.classproperty - def MULTIPLE_LINES(cls): - return cls("multiple\nlines") - - @schemas.classproperty - def DOUBLE_QUOTE_WITH_NEWLINE(cls): - return cls("double quote \n with newline") - - @schemas.classproperty - def NONE(cls): - return cls(None) - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'StringEnum': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.pyi deleted file mode 100644 index abc1696bc14..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringEnum( - schemas.EnumBase, - schemas.StrBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneStrMixin -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "placed": "PLACED", - "approved": "APPROVED", - "delivered": "DELIVERED", - "single quoted": "SINGLE_QUOTED", - "multiple\nlines": "MULTIPLE_LINES", - "double quote \n with newline": "DOUBLE_QUOTE_WITH_NEWLINE", - schemas.NoneClass.NONE: "NONE", - } - - @schemas.classproperty - def PLACED(cls): - return cls("placed") - - @schemas.classproperty - def APPROVED(cls): - return cls("approved") - - @schemas.classproperty - def DELIVERED(cls): - return cls("delivered") - - @schemas.classproperty - def SINGLE_QUOTED(cls): - return cls("single quoted") - - @schemas.classproperty - def MULTIPLE_LINES(cls): - return cls("multiple\nlines") - - @schemas.classproperty - def DOUBLE_QUOTE_WITH_NEWLINE(cls): - return cls("double quote \n with newline") - - @schemas.classproperty - def NONE(cls): - return cls(None) - - - def __new__( - cls, - *args: typing.Union[None, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'StringEnum': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py deleted file mode 100644 index 85260096555..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringEnumWithDefaultValue( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "placed": "PLACED", - "approved": "APPROVED", - "delivered": "DELIVERED", - } - - @schemas.classproperty - def PLACED(cls): - return cls("placed") - - @schemas.classproperty - def APPROVED(cls): - return cls("approved") - - @schemas.classproperty - def DELIVERED(cls): - return cls("delivered") diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.pyi deleted file mode 100644 index e51581c628f..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringEnumWithDefaultValue( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def PLACED(cls): - return cls("placed") - - @schemas.classproperty - def APPROVED(cls): - return cls("approved") - - @schemas.classproperty - def DELIVERED(cls): - return cls("delivered") diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.py deleted file mode 100644 index 61ff6fcc31d..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringWithValidation( - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - min_length = 7 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.pyi deleted file mode 100644 index df0be025130..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_with_validation.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class StringWithValidation( - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/tag.py b/samples/openapi3/client/petstore/python/petstore_api/model/tag.py deleted file mode 100644 index a0176eead36..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/tag.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Tag( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.Int64Schema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Tag': - return super().__new__( - cls, - *args, - id=id, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/tag.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/tag.pyi deleted file mode 100644 index a0176eead36..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/tag.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Tag( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.Int64Schema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Tag': - return super().__new__( - cls, - *args, - id=id, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py deleted file mode 100644 index 0701b6d5111..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Triangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'triangleType': { - 'EquilateralTriangle': EquilateralTriangle, - 'IsoscelesTriangle': IsoscelesTriangle, - 'ScaleneTriangle': ScaleneTriangle, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - EquilateralTriangle, - IsoscelesTriangle, - ScaleneTriangle, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Triangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.equilateral_triangle import EquilateralTriangle -from petstore_api.model.isosceles_triangle import IsoscelesTriangle -from petstore_api.model.scalene_triangle import ScaleneTriangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/triangle.pyi deleted file mode 100644 index 0701b6d5111..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.pyi +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Triangle( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'triangleType': { - 'EquilateralTriangle': EquilateralTriangle, - 'IsoscelesTriangle': IsoscelesTriangle, - 'ScaleneTriangle': ScaleneTriangle, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - EquilateralTriangle, - IsoscelesTriangle, - ScaleneTriangle, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Triangle': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from petstore_api.model.equilateral_triangle import EquilateralTriangle -from petstore_api.model.isosceles_triangle import IsoscelesTriangle -from petstore_api.model.scalene_triangle import ScaleneTriangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py deleted file mode 100644 index 7ac28c0031c..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class TriangleInterface( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "shapeType", - "triangleType", - } - - class properties: - - - class shapeType( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "Triangle": "TRIANGLE", - } - - @schemas.classproperty - def TRIANGLE(cls): - return cls("Triangle") - triangleType = schemas.StrSchema - __annotations__ = { - "shapeType": shapeType, - "triangleType": triangleType, - } - - - shapeType: MetaOapg.properties.shapeType - triangleType: MetaOapg.properties.triangleType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TriangleInterface': - return super().__new__( - cls, - *args, - shapeType=shapeType, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.pyi deleted file mode 100644 index 86b525d359a..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.pyi +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class TriangleInterface( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "shapeType", - "triangleType", - } - - class properties: - - - class shapeType( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def TRIANGLE(cls): - return cls("Triangle") - triangleType = schemas.StrSchema - __annotations__ = { - "shapeType": shapeType, - "triangleType": triangleType, - } - - - shapeType: MetaOapg.properties.shapeType - triangleType: MetaOapg.properties.triangleType - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], - triangleType: typing.Union[MetaOapg.properties.triangleType, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TriangleInterface': - return super().__new__( - cls, - *args, - shapeType=shapeType, - triangleType=triangleType, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/user.py b/samples/openapi3/client/petstore/python/petstore_api/model/user.py deleted file mode 100644 index c8beb19d825..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/user.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class User( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.Int64Schema - username = schemas.StrSchema - firstName = schemas.StrSchema - lastName = schemas.StrSchema - email = schemas.StrSchema - password = schemas.StrSchema - phone = schemas.StrSchema - userStatus = schemas.Int32Schema - objectWithNoDeclaredProps = schemas.DictSchema - - - class objectWithNoDeclaredPropsNullable( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'objectWithNoDeclaredPropsNullable': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anyTypeProp = schemas.AnyTypeSchema - - - class anyTypeExceptNullProp( - schemas.ComposedSchema, - ): - - - class MetaOapg: - not_schema = schemas.NoneSchema - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'anyTypeExceptNullProp': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anyTypePropNullable = schemas.AnyTypeSchema - __annotations__ = { - "id": id, - "username": username, - "firstName": firstName, - "lastName": lastName, - "email": email, - "password": password, - "phone": phone, - "userStatus": userStatus, - "objectWithNoDeclaredProps": objectWithNoDeclaredProps, - "objectWithNoDeclaredPropsNullable": objectWithNoDeclaredPropsNullable, - "anyTypeProp": anyTypeProp, - "anyTypeExceptNullProp": anyTypeExceptNullProp, - "anyTypePropNullable": anyTypePropNullable, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - username: typing.Union[MetaOapg.properties.username, str, schemas.Unset] = schemas.unset, - firstName: typing.Union[MetaOapg.properties.firstName, str, schemas.Unset] = schemas.unset, - lastName: typing.Union[MetaOapg.properties.lastName, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - password: typing.Union[MetaOapg.properties.password, str, schemas.Unset] = schemas.unset, - phone: typing.Union[MetaOapg.properties.phone, str, schemas.Unset] = schemas.unset, - userStatus: typing.Union[MetaOapg.properties.userStatus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - objectWithNoDeclaredProps: typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - objectWithNoDeclaredPropsNullable: typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, - anyTypeProp: typing.Union[MetaOapg.properties.anyTypeProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - anyTypeExceptNullProp: typing.Union[MetaOapg.properties.anyTypeExceptNullProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - anyTypePropNullable: typing.Union[MetaOapg.properties.anyTypePropNullable, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'User': - return super().__new__( - cls, - *args, - id=id, - username=username, - firstName=firstName, - lastName=lastName, - email=email, - password=password, - phone=phone, - userStatus=userStatus, - objectWithNoDeclaredProps=objectWithNoDeclaredProps, - objectWithNoDeclaredPropsNullable=objectWithNoDeclaredPropsNullable, - anyTypeProp=anyTypeProp, - anyTypeExceptNullProp=anyTypeExceptNullProp, - anyTypePropNullable=anyTypePropNullable, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/user.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/user.pyi deleted file mode 100644 index c8beb19d825..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/user.pyi +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class User( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.Int64Schema - username = schemas.StrSchema - firstName = schemas.StrSchema - lastName = schemas.StrSchema - email = schemas.StrSchema - password = schemas.StrSchema - phone = schemas.StrSchema - userStatus = schemas.Int32Schema - objectWithNoDeclaredProps = schemas.DictSchema - - - class objectWithNoDeclaredPropsNullable( - schemas.DictBase, - schemas.NoneBase, - schemas.Schema, - schemas.NoneFrozenDictMixin - ): - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'objectWithNoDeclaredPropsNullable': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anyTypeProp = schemas.AnyTypeSchema - - - class anyTypeExceptNullProp( - schemas.ComposedSchema, - ): - - - class MetaOapg: - not_schema = schemas.NoneSchema - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'anyTypeExceptNullProp': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - anyTypePropNullable = schemas.AnyTypeSchema - __annotations__ = { - "id": id, - "username": username, - "firstName": firstName, - "lastName": lastName, - "email": email, - "password": password, - "phone": phone, - "userStatus": userStatus, - "objectWithNoDeclaredProps": objectWithNoDeclaredProps, - "objectWithNoDeclaredPropsNullable": objectWithNoDeclaredPropsNullable, - "anyTypeProp": anyTypeProp, - "anyTypeExceptNullProp": anyTypeExceptNullProp, - "anyTypePropNullable": anyTypePropNullable, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, - username: typing.Union[MetaOapg.properties.username, str, schemas.Unset] = schemas.unset, - firstName: typing.Union[MetaOapg.properties.firstName, str, schemas.Unset] = schemas.unset, - lastName: typing.Union[MetaOapg.properties.lastName, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - password: typing.Union[MetaOapg.properties.password, str, schemas.Unset] = schemas.unset, - phone: typing.Union[MetaOapg.properties.phone, str, schemas.Unset] = schemas.unset, - userStatus: typing.Union[MetaOapg.properties.userStatus, decimal.Decimal, int, schemas.Unset] = schemas.unset, - objectWithNoDeclaredProps: typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - objectWithNoDeclaredPropsNullable: typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, - anyTypeProp: typing.Union[MetaOapg.properties.anyTypeProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - anyTypeExceptNullProp: typing.Union[MetaOapg.properties.anyTypeExceptNullProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - anyTypePropNullable: typing.Union[MetaOapg.properties.anyTypePropNullable, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'User': - return super().__new__( - cls, - *args, - id=id, - username=username, - firstName=firstName, - lastName=lastName, - email=email, - password=password, - phone=phone, - userStatus=userStatus, - objectWithNoDeclaredProps=objectWithNoDeclaredProps, - objectWithNoDeclaredPropsNullable=objectWithNoDeclaredPropsNullable, - anyTypeProp=anyTypeProp, - anyTypeExceptNullProp=anyTypeExceptNullProp, - anyTypePropNullable=anyTypePropNullable, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.py b/samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.py deleted file mode 100644 index 92a3825e376..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class UUIDString( - schemas.UUIDSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uuid' - min_length = 1 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.pyi deleted file mode 100644 index 80495060cf8..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/uuid_string.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class UUIDString( - schemas.UUIDSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/whale.py b/samples/openapi3/client/petstore/python/petstore_api/model/whale.py deleted file mode 100644 index b645789bd15..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/whale.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Whale( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "whale": "WHALE", - } - - @schemas.classproperty - def WHALE(cls): - return cls("whale") - hasBaleen = schemas.BoolSchema - hasTeeth = schemas.BoolSchema - __annotations__ = { - "className": className, - "hasBaleen": hasBaleen, - "hasTeeth": hasTeeth, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - hasBaleen: typing.Union[MetaOapg.properties.hasBaleen, bool, schemas.Unset] = schemas.unset, - hasTeeth: typing.Union[MetaOapg.properties.hasTeeth, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Whale': - return super().__new__( - cls, - *args, - className=className, - hasBaleen=hasBaleen, - hasTeeth=hasTeeth, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/whale.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/whale.pyi deleted file mode 100644 index 48e2538cb8c..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/whale.pyi +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Whale( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def WHALE(cls): - return cls("whale") - hasBaleen = schemas.BoolSchema - hasTeeth = schemas.BoolSchema - __annotations__ = { - "className": className, - "hasBaleen": hasBaleen, - "hasTeeth": hasTeeth, - } - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - hasBaleen: typing.Union[MetaOapg.properties.hasBaleen, bool, schemas.Unset] = schemas.unset, - hasTeeth: typing.Union[MetaOapg.properties.hasTeeth, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Whale': - return super().__new__( - cls, - *args, - className=className, - hasBaleen=hasBaleen, - hasTeeth=hasTeeth, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py b/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py deleted file mode 100644 index 960a43f5921..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Zebra( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "zebra": "ZEBRA", - } - - @schemas.classproperty - def ZEBRA(cls): - return cls("zebra") - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "plains": "PLAINS", - "mountain": "MOUNTAIN", - "grevys": "GREVYS", - } - - @schemas.classproperty - def PLAINS(cls): - return cls("plains") - - @schemas.classproperty - def MOUNTAIN(cls): - return cls("mountain") - - @schemas.classproperty - def GREVYS(cls): - return cls("grevys") - __annotations__ = { - "className": className, - "type": type, - } - additional_properties = schemas.AnyTypeSchema - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'Zebra': - return super().__new__( - cls, - *args, - className=className, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/zebra.pyi b/samples/openapi3/client/petstore/python/petstore_api/model/zebra.pyi deleted file mode 100644 index 3666395b313..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/model/zebra.pyi +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from petstore_api import schemas # noqa: F401 - - -class Zebra( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "className", - } - - class properties: - - - class className( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def ZEBRA(cls): - return cls("zebra") - - - class type( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def PLAINS(cls): - return cls("plains") - - @schemas.classproperty - def MOUNTAIN(cls): - return cls("mountain") - - @schemas.classproperty - def GREVYS(cls): - return cls("grevys") - __annotations__ = { - "className": className, - "type": type, - } - additional_properties = schemas.AnyTypeSchema - - className: MetaOapg.properties.className - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - className: typing.Union[MetaOapg.properties.className, str, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - ) -> 'Zebra': - return super().__new__( - cls, - *args, - className=className, - type=type, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/models/__init__.py deleted file mode 100644 index 92305b81c13..00000000000 --- a/samples/openapi3/client/petstore/python/petstore_api/models/__init__.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -# import all models into this package -# if you have many models here with many references from one model to another this may -# raise a RecursionError -# to avoid this, import only the models that you directly need like: -# from from petstore_api.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from petstore_api.model.additional_properties_class import AdditionalPropertiesClass -from petstore_api.model.additional_properties_validator import AdditionalPropertiesValidator -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums -from petstore_api.model.address import Address -from petstore_api.model.animal import Animal -from petstore_api.model.animal_farm import AnimalFarm -from petstore_api.model.any_type_and_format import AnyTypeAndFormat -from petstore_api.model.any_type_not_string import AnyTypeNotString -from petstore_api.model.api_response import ApiResponse -from petstore_api.model.apple import Apple -from petstore_api.model.apple_req import AppleReq -from petstore_api.model.array_holding_any_type import ArrayHoldingAnyType -from petstore_api.model.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly -from petstore_api.model.array_of_enums import ArrayOfEnums -from petstore_api.model.array_of_number_only import ArrayOfNumberOnly -from petstore_api.model.array_test import ArrayTest -from petstore_api.model.array_with_validations_in_items import ArrayWithValidationsInItems -from petstore_api.model.banana import Banana -from petstore_api.model.banana_req import BananaReq -from petstore_api.model.bar import Bar -from petstore_api.model.basque_pig import BasquePig -from petstore_api.model.boolean import Boolean -from petstore_api.model.boolean_enum import BooleanEnum -from petstore_api.model.capitalization import Capitalization -from petstore_api.model.cat import Cat -from petstore_api.model.category import Category -from petstore_api.model.child_cat import ChildCat -from petstore_api.model.class_model import ClassModel -from petstore_api.model.client import Client -from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral -from petstore_api.model.composed_any_of_different_types_no_validations import ComposedAnyOfDifferentTypesNoValidations -from petstore_api.model.composed_array import ComposedArray -from petstore_api.model.composed_bool import ComposedBool -from petstore_api.model.composed_none import ComposedNone -from petstore_api.model.composed_number import ComposedNumber -from petstore_api.model.composed_object import ComposedObject -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes -from petstore_api.model.composed_string import ComposedString -from petstore_api.model.currency import Currency -from petstore_api.model.danish_pig import DanishPig -from petstore_api.model.date_time_test import DateTimeTest -from petstore_api.model.date_time_with_validations import DateTimeWithValidations -from petstore_api.model.date_with_validations import DateWithValidations -from petstore_api.model.decimal_payload import DecimalPayload -from petstore_api.model.dog import Dog -from petstore_api.model.drawing import Drawing -from petstore_api.model.enum_arrays import EnumArrays -from petstore_api.model.enum_class import EnumClass -from petstore_api.model.enum_test import EnumTest -from petstore_api.model.equilateral_triangle import EquilateralTriangle -from petstore_api.model.file import File -from petstore_api.model.file_schema_test_class import FileSchemaTestClass -from petstore_api.model.foo import Foo -from petstore_api.model.format_test import FormatTest -from petstore_api.model.from_schema import FromSchema -from petstore_api.model.fruit import Fruit -from petstore_api.model.fruit_req import FruitReq -from petstore_api.model.gm_fruit import GmFruit -from petstore_api.model.grandparent_animal import GrandparentAnimal -from petstore_api.model.has_only_read_only import HasOnlyReadOnly -from petstore_api.model.health_check_result import HealthCheckResult -from petstore_api.model.integer_enum import IntegerEnum -from petstore_api.model.integer_enum_big import IntegerEnumBig -from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue -from petstore_api.model.integer_enum_with_default_value import IntegerEnumWithDefaultValue -from petstore_api.model.integer_max10 import IntegerMax10 -from petstore_api.model.integer_min15 import IntegerMin15 -from petstore_api.model.isosceles_triangle import IsoscelesTriangle -from petstore_api.model.json_patch_request import JSONPatchRequest -from petstore_api.model.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest -from petstore_api.model.json_patch_request_move_copy import JSONPatchRequestMoveCopy -from petstore_api.model.json_patch_request_remove import JSONPatchRequestRemove -from petstore_api.model.mammal import Mammal -from petstore_api.model.map_test import MapTest -from petstore_api.model.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass -from petstore_api.model.model200_response import Model200Response -from petstore_api.model.model_return import ModelReturn -from petstore_api.model.money import Money -from petstore_api.model.name import Name -from petstore_api.model.no_additional_properties import NoAdditionalProperties -from petstore_api.model.nullable_class import NullableClass -from petstore_api.model.nullable_shape import NullableShape -from petstore_api.model.nullable_string import NullableString -from petstore_api.model.number import Number -from petstore_api.model.number_only import NumberOnly -from petstore_api.model.number_with_validations import NumberWithValidations -from petstore_api.model.object_interface import ObjectInterface -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps -from petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp -from petstore_api.model.object_with_decimal_properties import ObjectWithDecimalProperties -from petstore_api.model.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps -from petstore_api.model.object_with_inline_composition_property import ObjectWithInlineCompositionProperty -from petstore_api.model.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties -from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp -from petstore_api.model.object_with_validations import ObjectWithValidations -from petstore_api.model.order import Order -from petstore_api.model.parent_pet import ParentPet -from petstore_api.model.pet import Pet -from petstore_api.model.pig import Pig -from petstore_api.model.player import Player -from petstore_api.model.quadrilateral import Quadrilateral -from petstore_api.model.quadrilateral_interface import QuadrilateralInterface -from petstore_api.model.read_only_first import ReadOnlyFirst -from petstore_api.model.scalene_triangle import ScaleneTriangle -from petstore_api.model.shape import Shape -from petstore_api.model.shape_or_null import ShapeOrNull -from petstore_api.model.simple_quadrilateral import SimpleQuadrilateral -from petstore_api.model.some_object import SomeObject -from petstore_api.model.special_model_name import SpecialModelName -from petstore_api.model.string import String -from petstore_api.model.string_boolean_map import StringBooleanMap -from petstore_api.model.string_enum import StringEnum -from petstore_api.model.string_enum_with_default_value import StringEnumWithDefaultValue -from petstore_api.model.string_with_validation import StringWithValidation -from petstore_api.model.tag import Tag -from petstore_api.model.triangle import Triangle -from petstore_api.model.triangle_interface import TriangleInterface -from petstore_api.model.uuid_string import UUIDString -from petstore_api.model.user import User -from petstore_api.model.whale import Whale -from petstore_api.model.zebra import Zebra diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.py index e900456505b..1068b1c9098 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.pyi index 1a5cd51dba2..8a529f6d8ef 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/request_body.py index 3dbb4adeeac..0e43d9ca1f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client application_json = Client diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/response_for_200/__init__.py index 308512db1d6..c9624f15c57 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client # body schemas application_json = Client diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.py index ccbf1ed435f..91840ef7c58 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.pyi index 7d0b9305f40..0d4b2fe759c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/request_body.py index 3dbb4adeeac..0e43d9ca1f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client application_json = Client diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/response_for_200/__init__.py index 308512db1d6..c9624f15c57 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client # body schemas application_json = Client diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.py index ae4cbd77aa9..16b1e74e9d3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.pyi index e42e3053bb9..c36dcb4976b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body.py index 734d7ec9f1b..0c28a530cbc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums application_json = AdditionalPropertiesWithArrayOfEnums diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/response_for_200/__init__.py index 27c4dc6e814..2f22e0c9cfa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums # body schemas application_json = AdditionalPropertiesWithArrayOfEnums diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.py index 5f471517ac7..e8397cd0976 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.file_schema_test_class import FileSchemaTestClass +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.pyi index 4efc088b123..9a388c43ff9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.file_schema_test_class import FileSchemaTestClass +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/request_body.py index 9adac84db00..c503d89fed2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.file_schema_test_class import FileSchemaTestClass +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass application_json = FileSchemaTestClass diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.py index a213e737137..95a9b17687c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.pyi index edbe66b4a97..284cfc63821 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/parameter_0.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/parameter_0.py index 8734149176f..4c19e518d2a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/parameter_0.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/parameter_0.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User schema = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/request_body.py index 44bdfbbd588..3f1331f2070 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User application_json = User diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.py index a3bb4cd7f4b..1d4809a373b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.pyi index a38e2de8811..1cca0bc551e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/request_body.py index 3dbb4adeeac..0e43d9ca1f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client application_json = Client diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/response_for_200/__init__.py index 308512db1d6..c9624f15c57 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client # body schemas application_json = Client diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get/response_for_200/__init__.py index ffba45dfcfb..47bd95c923d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.health_check_result import HealthCheckResult +from petstore_api.components.schema.health_check_result import HealthCheckResult # body schemas application_json = HealthCheckResult diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.py index c0dbecc4f4f..17aafff4b52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.json_patch_request import JSONPatchRequest +from petstore_api.components.schema.json_patch_request import JSONPatchRequest from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.pyi index 9c6f437c039..4657ccf79fd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.json_patch_request import JSONPatchRequest +from petstore_api.components.schema.json_patch_request import JSONPatchRequest from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/request_body.py index 083c8782001..f032af425a1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.json_patch_request import JSONPatchRequest +from petstore_api.components.schema.json_patch_request import JSONPatchRequest application_json_patchjson = JSONPatchRequest diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/response_for_200/__init__.py index b528d5f43fa..ab0e36067cc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.api_response import ApiResponse +from petstore_api.components.schema.api_response import ApiResponse # body schemas application_json = ApiResponse diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.py index 3e52478a03f..c79aee942f1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.foo import Foo +from petstore_api.components.schema.foo import Foo from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.pyi index cc02bfa1211..f1afbade470 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/__init__.pyi @@ -24,7 +24,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.foo import Foo +from petstore_api.components.schema.foo import Foo from . import response_for_200 from . import parameter_0 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/parameter_0.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/parameter_0.py index f1b7a2672f6..52692f4b2c7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/parameter_0.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get/parameter_0.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.foo import Foo +from petstore_api.components.schema.foo import Foo schema = Foo diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.py index 6b15a372dc5..27f0f8a6165 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_enums import ArrayOfEnums from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.pyi index 90929867073..12054911b73 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_enums import ArrayOfEnums from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/request_body.py index 9dfb2191ae0..93836bd2e2f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_enums import ArrayOfEnums application_json = ArrayOfEnums diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/response_for_200/__init__.py index 57f01198487..28624531904 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_enums import ArrayOfEnums # body schemas application_json = ArrayOfEnums diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.py index 97ac4f5d5e2..8d5383d06a1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.animal_farm import AnimalFarm +from petstore_api.components.schema.animal_farm import AnimalFarm from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.pyi index 708c0befb3e..580d19f1ee9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.animal_farm import AnimalFarm +from petstore_api.components.schema.animal_farm import AnimalFarm from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/request_body.py index 7544c6e4fd5..4df1360a313 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.animal_farm import AnimalFarm +from petstore_api.components.schema.animal_farm import AnimalFarm application_json = AnimalFarm diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/response_for_200/__init__.py index 061c3f07740..4e9fb43a8a4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.animal_farm import AnimalFarm +from petstore_api.components.schema.animal_farm import AnimalFarm # body schemas application_json = AnimalFarm diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.py index d54d0e6fcc8..32d2ef4d1ca 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.boolean import Boolean +from petstore_api.components.schema.boolean import Boolean from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.pyi index 22dd64fad12..6cf6af7fd5d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.boolean import Boolean +from petstore_api.components.schema.boolean import Boolean from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/request_body.py index fdc584d448a..3e8c74dd784 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.boolean import Boolean +from petstore_api.components.schema.boolean import Boolean application_json = Boolean diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/response_for_200/__init__.py index f273b7670e5..7b1d1667384 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.boolean import Boolean +from petstore_api.components.schema.boolean import Boolean # body schemas application_json = Boolean diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.py index 1767bf02a25..ee1aa691151 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.pyi index 02a2ad57c1e..fab3e328084 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body.py index 3420d9e500f..3331b9e18b6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes application_json = ComposedOneOfDifferentTypes diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/response_for_200/__init__.py index 951063e173a..0350b674f8c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes # body schemas application_json = ComposedOneOfDifferentTypes diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.py index 873c79d8ba7..094fbab3379 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.pyi index cd7dbfa8f85..392f6cae55e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/request_body.py index 4bd1b23c5aa..1070f52f567 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum application_json = StringEnum diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/response_for_200/__init__.py index 579e86800ca..3f7979ae513 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum # body schemas application_json = StringEnum diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.py index f860aa7df3c..f4c6ed7ca92 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.pyi index 1c2957e4ae1..4f8aafea4da 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/request_body.py index ef876f7d679..ce2fda1d8e9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal application_json = Mammal diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/response_for_200/__init__.py index 6171fd8d173..a511e1ab015 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal # body schemas application_json = Mammal diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.py index 2261b7c202f..3ba55f89513 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.pyi index 6635642d469..0b448cf1a15 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/request_body.py index c77aa8589c5..6e49c9c1f51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations application_json = NumberWithValidations diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/response_for_200/__init__.py index 06f004c9fec..20f49f81cf0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations # body schemas application_json = NumberWithValidations diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.py index c929d62a644..52d2add54c9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.pyi index 2321ea98623..94a486bad51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body.py index 20ac57230a4..b87a4e42190 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps application_json = ObjectModelWithRefProps diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/response_for_200/__init__.py index 3d897daf46d..cac7ef13ac8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps # body schemas application_json = ObjectModelWithRefProps diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.py index d8ce8819827..6f45ad60ddf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string import String +from petstore_api.components.schema.string import String from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.pyi index c6a96d5d45d..215907103f5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.string import String +from petstore_api.components.schema.string import String from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/request_body.py index 1fb461ce202..7a6d6fe63f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string import String +from petstore_api.components.schema.string import String application_json = String diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/response_for_200/__init__.py index 410274848e1..e60af4b77b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string import String +from petstore_api.components.schema.string import String # body schemas application_json = String diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.py index c8740fec5c7..1918688f203 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.pyi index 8366b07f4fd..628a33a0c21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/__init__.pyi @@ -24,7 +24,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation from . import response_for_200 from . import parameter_0 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_0.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_0.py index 0015a4d1bfe..d072cb26c7e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_0.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_0.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_1.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_1.py index 3de7262793c..edf0ecca72f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_1.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_1.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_2.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_2.py index 313173a8d8c..f3cd026d441 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_2.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_2.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_3.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_3.py index 5b1b0e5cbdf..ef9dcbf3f3a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_3.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_3.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_4.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_4.py index 60d37cde482..d6fa6a084bf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_4.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_4.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_5.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_5.py index 65a1c0136eb..371bbeededf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_5.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put/parameter_5.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation schema = StringWithValidation diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post/response_for_200/__init__.py index b528d5f43fa..ab0e36067cc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.api_response import ApiResponse +from petstore_api.components.schema.api_response import ApiResponse # body schemas application_json = ApiResponse diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post/response_for_200/__init__.py index b528d5f43fa..ab0e36067cc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.api_response import ApiResponse +from petstore_api.components.schema.api_response import ApiResponse # body schemas application_json = ApiResponse diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get/response_for_default/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get/response_for_default/__init__.py index d4bd653b1f9..f4fc7e21887 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get/response_for_default/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get/response_for_default/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.foo import Foo +from petstore_api.components.schema.foo import Foo # body schemas diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.py index d6cf0a3d254..9b40586a3ac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.pyi index b740b83f419..2b680ad83f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from . import response_for_200 from . import response_for_405 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/request_body.py index ae6aff45f28..0145a39a14b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet application_json = Pet diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.py index 480f66ac869..3983a98f9ed 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from .. import path from . import response_for_400 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.pyi index b1c8a7c7065..a9849b58e64 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from . import response_for_400 from . import response_for_404 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/request_body.py index ae6aff45f28..0145a39a14b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet application_json = Pet diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get/response_for_200/__init__.py index 61af005a631..4e1663f56e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet # body schemas diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get/response_for_200/__init__.py index 61af005a631..4e1663f56e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet # body schemas diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get/response_for_200/__init__.py index a52bdb92c9a..11c9e70e46e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet # body schemas application_xml = Pet diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post/response_for_200/__init__.py index b528d5f43fa..ab0e36067cc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.api_response import ApiResponse +from petstore_api.components.schema.api_response import ApiResponse # body schemas application_json = ApiResponse diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.py index 6062a3b674a..4e5517627b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.pyi index d746aa5a746..bda426265e4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order from . import response_for_200 from . import response_for_400 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/request_body.py index 71d898f7332..dc4e5e6f06e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order application_json = Order diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/response_for_200/__init__.py index 7e57df47949..78f0c570940 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order # body schemas application_xml = Order diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get/response_for_200/__init__.py index 7e57df47949..78f0c570940 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order # body schemas application_xml = Order diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.py index 1714a409b53..d1bb99c07ac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from .. import path from . import response_for_default diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.pyi index 605301b75b8..2ff127872e4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from . import response_for_default from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/request_body.py index 44bdfbbd588..3f1331f2070 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User application_json = User diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.py index 237c4aea51d..d2731b1af07 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from .. import path from . import response_for_default diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.pyi index 7fe43bf905e..386050051df 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from . import response_for_default from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/request_body.py index c038ca7e1e6..42f2082a112 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.py index eb7c0d373e8..8b4411e2cb4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from .. import path from . import response_for_default diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.pyi index ac124ef6712..f8dc24686b7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from . import response_for_default from . import request_body diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/request_body.py index c038ca7e1e6..42f2082a112 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get/response_for_200/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get/response_for_200/__init__.py index 48f522cb8b9..57c8842cde0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get/response_for_200/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get/response_for_200/__init__.py @@ -15,7 +15,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User # body schemas application_xml = User diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.py index da1564079b4..7619d6766b7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.py @@ -25,7 +25,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from .. import path from . import response_for_400 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.pyi index 8281dc79653..ec95485892e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from . import response_for_400 from . import response_for_404 diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/parameter_0.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/parameter_0.py index 26df85d2ee2..b830f6cd4b8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/parameter_0.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/parameter_0.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User schema = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/request_body.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/request_body.py index 44bdfbbd588..3f1331f2070 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/request_body.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put/request_body.py @@ -24,7 +24,7 @@ from petstore_api import schemas # noqa: F401 -from petstore_api.model.user import User +from petstore_api.components.schema.user import User application_json = User diff --git a/samples/openapi3/client/petstore/python/test/components/schema/__init__.py b/samples/openapi3/client/petstore/python/test/components/schema/__init__.py new file mode 100644 index 00000000000..e69de29bb2d From f9590eb522ed46420bc09e0378cd85e6f66dbbf1 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sat, 22 Oct 2022 21:17:27 -0700 Subject: [PATCH 04/11] Models sucessfully moved into components/schema in one sample --- .../petstore/python/.openapi-generator/FILES | 605 +++++++++++------- .../schema/additional_properties_class.py | 307 +++++++++ .../schema/additional_properties_class.pyi | 307 +++++++++ .../schema/additional_properties_validator.py | 198 ++++++ .../additional_properties_validator.pyi | 196 ++++++ ...ditional_properties_with_array_of_enums.py | 84 +++ ...itional_properties_with_array_of_enums.pyi | 84 +++ .../petstore_api/components/schema/address.py | 57 ++ .../components/schema/address.pyi | 57 ++ .../petstore_api/components/schema/animal.py | 105 +++ .../petstore_api/components/schema/animal.pyi | 105 +++ .../components/schema/animal_farm.py | 56 ++ .../components/schema/animal_farm.pyi | 56 ++ .../components/schema/any_type_and_format.py | 361 +++++++++++ .../components/schema/any_type_and_format.pyi | 361 +++++++++++ .../components/schema/any_type_not_string.py | 51 ++ .../components/schema/any_type_not_string.pyi | 51 ++ .../components/schema/api_response.py | 98 +++ .../components/schema/api_response.pyi | 98 +++ .../petstore_api/components/schema/apple.py | 118 ++++ .../petstore_api/components/schema/apple.pyi | 105 +++ .../components/schema/apple_req.py | 84 +++ .../components/schema/apple_req.pyi | 84 +++ .../schema/array_holding_any_type.py | 51 ++ .../schema/array_holding_any_type.pyi | 51 ++ .../schema/array_of_array_of_number_only.py | 122 ++++ .../schema/array_of_array_of_number_only.pyi | 122 ++++ .../components/schema/array_of_enums.py | 56 ++ .../components/schema/array_of_enums.pyi | 56 ++ .../components/schema/array_of_number_only.py | 100 +++ .../schema/array_of_number_only.pyi | 100 +++ .../components/schema/array_test.py | 213 ++++++ .../components/schema/array_test.pyi | 213 ++++++ .../schema/array_with_validations_in_items.py | 61 ++ .../array_with_validations_in_items.pyi | 56 ++ .../petstore_api/components/schema/banana.py | 83 +++ .../petstore_api/components/schema/banana.pyi | 83 +++ .../components/schema/banana_req.py | 84 +++ .../components/schema/banana_req.pyi | 84 +++ .../petstore_api/components/schema/bar.py | 24 + .../petstore_api/components/schema/bar.pyi | 24 + .../components/schema/basque_pig.py | 98 +++ .../components/schema/basque_pig.pyi | 92 +++ .../petstore_api/components/schema/boolean.py | 24 + .../components/schema/boolean.pyi | 24 + .../components/schema/boolean_enum.py | 44 ++ .../components/schema/boolean_enum.pyi | 38 ++ .../components/schema/capitalization.py | 128 ++++ .../components/schema/capitalization.pyi | 128 ++++ .../petstore_api/components/schema/cat.py | 117 ++++ .../petstore_api/components/schema/cat.pyi | 117 ++++ .../components/schema/category.py | 93 +++ .../components/schema/category.pyi | 93 +++ .../components/schema/child_cat.py | 117 ++++ .../components/schema/child_cat.pyi | 117 ++++ .../components/schema/class_model.py | 81 +++ .../components/schema/class_model.pyi | 81 +++ .../petstore_api/components/schema/client.py | 78 +++ .../petstore_api/components/schema/client.pyi | 78 +++ .../schema/complex_quadrilateral.py | 132 ++++ .../schema/complex_quadrilateral.pyi | 126 ++++ ...d_any_of_different_types_no_validations.py | 117 ++++ ..._any_of_different_types_no_validations.pyi | 117 ++++ .../components/schema/composed_array.py | 51 ++ .../components/schema/composed_array.pyi | 51 ++ .../components/schema/composed_bool.py | 64 ++ .../components/schema/composed_bool.pyi | 64 ++ .../components/schema/composed_none.py | 64 ++ .../components/schema/composed_none.pyi | 64 ++ .../components/schema/composed_number.py | 64 ++ .../components/schema/composed_number.pyi | 64 ++ .../components/schema/composed_object.py | 66 ++ .../components/schema/composed_object.pyi | 66 ++ .../schema/composed_one_of_different_types.py | 137 ++++ .../composed_one_of_different_types.pyi | 124 ++++ .../components/schema/composed_string.py | 64 ++ .../components/schema/composed_string.pyi | 64 ++ .../components/schema/currency.py | 49 ++ .../components/schema/currency.pyi | 42 ++ .../components/schema/danish_pig.py | 98 +++ .../components/schema/danish_pig.pyi | 92 +++ .../components/schema/date_time_test.py | 24 + .../components/schema/date_time_test.pyi | 24 + .../schema/date_time_with_validations.py | 40 ++ .../schema/date_time_with_validations.pyi | 34 + .../schema/date_with_validations.py | 40 ++ .../schema/date_with_validations.pyi | 34 + .../components/schema/decimal_payload.py | 24 + .../components/schema/decimal_payload.pyi | 24 + .../petstore_api/components/schema/dog.py | 117 ++++ .../petstore_api/components/schema/dog.pyi | 117 ++++ .../petstore_api/components/schema/drawing.py | 149 +++++ .../components/schema/drawing.pyi | 149 +++++ .../components/schema/enum_arrays.py | 150 +++++ .../components/schema/enum_arrays.pyi | 136 ++++ .../components/schema/enum_class.py | 64 ++ .../components/schema/enum_class.pyi | 54 ++ .../components/schema/enum_test.py | 276 ++++++++ .../components/schema/enum_test.pyi | 244 +++++++ .../components/schema/equilateral_triangle.py | 132 ++++ .../schema/equilateral_triangle.pyi | 126 ++++ .../petstore_api/components/schema/file.py | 80 +++ .../petstore_api/components/schema/file.pyi | 80 +++ .../schema/file_schema_test_class.py | 118 ++++ .../schema/file_schema_test_class.pyi | 118 ++++ .../petstore_api/components/schema/foo.py | 83 +++ .../petstore_api/components/schema/foo.pyi | 83 +++ .../components/schema/format_test.py | 406 ++++++++++++ .../components/schema/format_test.pyi | 354 ++++++++++ .../components/schema/from_schema.py | 88 +++ .../components/schema/from_schema.pyi | 88 +++ .../petstore_api/components/schema/fruit.py | 97 +++ .../petstore_api/components/schema/fruit.pyi | 97 +++ .../components/schema/fruit_req.py | 70 ++ .../components/schema/fruit_req.pyi | 70 ++ .../components/schema/gm_fruit.py | 97 +++ .../components/schema/gm_fruit.pyi | 97 +++ .../components/schema/grandparent_animal.py | 95 +++ .../components/schema/grandparent_animal.pyi | 95 +++ .../components/schema/has_only_read_only.py | 88 +++ .../components/schema/has_only_read_only.pyi | 88 +++ .../components/schema/health_check_result.py | 99 +++ .../components/schema/health_check_result.pyi | 99 +++ .../components/schema/integer_enum.py | 54 ++ .../components/schema/integer_enum.pyi | 46 ++ .../components/schema/integer_enum_big.py | 54 ++ .../components/schema/integer_enum_big.pyi | 46 ++ .../schema/integer_enum_one_value.py | 44 ++ .../schema/integer_enum_one_value.pyi | 38 ++ .../schema/integer_enum_with_default_value.py | 54 ++ .../integer_enum_with_default_value.pyi | 46 ++ .../components/schema/integer_max10.py | 38 ++ .../components/schema/integer_max10.pyi | 34 + .../components/schema/integer_min15.py | 38 ++ .../components/schema/integer_min15.pyi | 34 + .../components/schema/isosceles_triangle.py | 132 ++++ .../components/schema/isosceles_triangle.pyi | 126 ++++ .../components/schema/json_patch_request.py | 92 +++ .../components/schema/json_patch_request.pyi | 92 +++ .../json_patch_request_add_replace_test.py | 123 ++++ .../json_patch_request_add_replace_test.pyi | 115 ++++ .../schema/json_patch_request_move_copy.py | 115 ++++ .../schema/json_patch_request_move_copy.pyi | 108 ++++ .../schema/json_patch_request_remove.py | 101 +++ .../schema/json_patch_request_remove.pyi | 95 +++ .../petstore_api/components/schema/mammal.py | 80 +++ .../petstore_api/components/schema/mammal.pyi | 80 +++ .../components/schema/map_test.py | 245 +++++++ .../components/schema/map_test.pyi | 238 +++++++ ...perties_and_additional_properties_class.py | 131 ++++ ...erties_and_additional_properties_class.pyi | 131 ++++ .../components/schema/model200_response.py | 89 +++ .../components/schema/model200_response.pyi | 89 +++ .../components/schema/model_return.py | 79 +++ .../components/schema/model_return.pyi | 79 +++ .../petstore_api/components/schema/money.py | 100 +++ .../petstore_api/components/schema/money.pyi | 100 +++ .../petstore_api/components/schema/name.py | 104 +++ .../petstore_api/components/schema/name.pyi | 104 +++ .../schema/no_additional_properties.py | 84 +++ .../schema/no_additional_properties.pyi | 84 +++ .../components/schema/nullable_class.py | 576 +++++++++++++++++ .../components/schema/nullable_class.pyi | 576 +++++++++++++++++ .../components/schema/nullable_shape.py | 72 +++ .../components/schema/nullable_shape.pyi | 72 +++ .../components/schema/nullable_string.py | 48 ++ .../components/schema/nullable_string.pyi | 48 ++ .../petstore_api/components/schema/number.py | 24 + .../petstore_api/components/schema/number.pyi | 24 + .../components/schema/number_only.py | 78 +++ .../components/schema/number_only.pyi | 78 +++ .../schema/number_with_validations.py | 38 ++ .../schema/number_with_validations.pyi | 34 + .../components/schema/object_interface.py | 24 + .../components/schema/object_interface.pyi | 24 + .../schema/object_model_with_ref_props.py | 113 ++++ .../schema/object_model_with_ref_props.pyi | 113 ++++ ..._with_req_test_prop_from_unset_add_prop.py | 124 ++++ ...with_req_test_prop_from_unset_add_prop.pyi | 124 ++++ .../schema/object_with_decimal_properties.py | 107 ++++ .../schema/object_with_decimal_properties.pyi | 107 ++++ .../object_with_difficultly_named_props.py | 98 +++ .../object_with_difficultly_named_props.pyi | 98 +++ ...object_with_inline_composition_property.py | 122 ++++ ...bject_with_inline_composition_property.pyi | 119 ++++ ...ect_with_invalid_named_refed_properties.py | 98 +++ ...ct_with_invalid_named_refed_properties.pyi | 98 +++ .../schema/object_with_optional_test_prop.py | 78 +++ .../schema/object_with_optional_test_prop.pyi | 78 +++ .../schema/object_with_validations.py | 50 ++ .../schema/object_with_validations.pyi | 46 ++ .../petstore_api/components/schema/order.py | 153 +++++ .../petstore_api/components/schema/order.pyi | 145 +++++ .../components/schema/parent_pet.py | 76 +++ .../components/schema/parent_pet.pyi | 76 +++ .../petstore_api/components/schema/pet.py | 215 +++++++ .../petstore_api/components/schema/pet.pyi | 207 ++++++ .../petstore_api/components/schema/pig.py | 77 +++ .../petstore_api/components/schema/pig.pyi | 77 +++ .../petstore_api/components/schema/player.py | 93 +++ .../petstore_api/components/schema/player.pyi | 93 +++ .../components/schema/quadrilateral.py | 77 +++ .../components/schema/quadrilateral.pyi | 77 +++ .../schema/quadrilateral_interface.py | 111 ++++ .../schema/quadrilateral_interface.pyi | 105 +++ .../components/schema/read_only_first.py | 88 +++ .../components/schema/read_only_first.pyi | 88 +++ .../components/schema/scalene_triangle.py | 132 ++++ .../components/schema/scalene_triangle.pyi | 126 ++++ .../petstore_api/components/schema/shape.py | 77 +++ .../petstore_api/components/schema/shape.pyi | 77 +++ .../components/schema/shape_or_null.py | 81 +++ .../components/schema/shape_or_null.pyi | 81 +++ .../components/schema/simple_quadrilateral.py | 132 ++++ .../schema/simple_quadrilateral.pyi | 126 ++++ .../components/schema/some_object.py | 66 ++ .../components/schema/some_object.pyi | 66 ++ .../components/schema/special_model_name.py | 80 +++ .../components/schema/special_model_name.pyi | 80 +++ .../petstore_api/components/schema/string.py | 24 + .../petstore_api/components/schema/string.pyi | 24 + .../components/schema/string_boolean_map.py | 57 ++ .../components/schema/string_boolean_map.pyi | 57 ++ .../components/schema/string_enum.py | 89 +++ .../components/schema/string_enum.pyi | 89 +++ .../schema/string_enum_with_default_value.py | 54 ++ .../schema/string_enum_with_default_value.pyi | 46 ++ .../schema/string_with_validation.py | 37 ++ .../schema/string_with_validation.pyi | 34 + .../petstore_api/components/schema/tag.py | 88 +++ .../petstore_api/components/schema/tag.pyi | 88 +++ .../components/schema/triangle.py | 80 +++ .../components/schema/triangle.pyi | 80 +++ .../components/schema/triangle_interface.py | 111 ++++ .../components/schema/triangle_interface.pyi | 105 +++ .../petstore_api/components/schema/user.py | 241 +++++++ .../petstore_api/components/schema/user.pyi | 241 +++++++ .../components/schema/uuid_string.py | 38 ++ .../components/schema/uuid_string.pyi | 34 + .../petstore_api/components/schema/whale.py | 118 ++++ .../petstore_api/components/schema/whale.pyi | 112 ++++ .../petstore_api/components/schema/zebra.py | 132 ++++ .../petstore_api/components/schema/zebra.pyi | 118 ++++ .../test_additional_properties_class.py | 25 + .../test_additional_properties_validator.py | 25 + ...ditional_properties_with_array_of_enums.py | 25 + .../test/components/schema/test_address.py | 25 + .../test/components/schema/test_animal.py | 25 + .../components/schema/test_animal_farm.py | 25 + .../schema/test_any_type_and_format.py | 25 + .../schema/test_any_type_not_string.py | 25 + .../components/schema/test_api_response.py | 25 + .../test/components/schema/test_apple.py | 25 + .../test/components/schema/test_apple_req.py | 25 + .../schema/test_array_holding_any_type.py | 25 + .../test_array_of_array_of_number_only.py | 25 + .../components/schema/test_array_of_enums.py | 25 + .../schema/test_array_of_number_only.py | 25 + .../test/components/schema/test_array_test.py | 25 + .../test_array_with_validations_in_items.py | 25 + .../test/components/schema/test_banana.py | 25 + .../test/components/schema/test_banana_req.py | 25 + .../python/test/components/schema/test_bar.py | 25 + .../test/components/schema/test_basque_pig.py | 25 + .../test/components/schema/test_boolean.py | 25 + .../components/schema/test_boolean_enum.py | 25 + .../components/schema/test_capitalization.py | 25 + .../python/test/components/schema/test_cat.py | 25 + .../test/components/schema/test_category.py | 25 + .../test/components/schema/test_child_cat.py | 25 + .../components/schema/test_class_model.py | 25 + .../test/components/schema/test_client.py | 25 + .../schema/test_complex_quadrilateral.py | 25 + ...d_any_of_different_types_no_validations.py | 25 + .../components/schema/test_composed_array.py | 25 + .../components/schema/test_composed_bool.py | 25 + .../components/schema/test_composed_none.py | 25 + .../components/schema/test_composed_number.py | 25 + .../components/schema/test_composed_object.py | 25 + .../test_composed_one_of_different_types.py | 25 + .../components/schema/test_composed_string.py | 25 + .../test/components/schema/test_currency.py | 25 + .../test/components/schema/test_danish_pig.py | 25 + .../components/schema/test_date_time_test.py | 25 + .../schema/test_date_time_with_validations.py | 25 + .../schema/test_date_with_validations.py | 25 + .../components/schema/test_decimal_payload.py | 25 + .../python/test/components/schema/test_dog.py | 25 + .../test/components/schema/test_drawing.py | 25 + .../components/schema/test_enum_arrays.py | 25 + .../test/components/schema/test_enum_class.py | 25 + .../test/components/schema/test_enum_test.py | 25 + .../schema/test_equilateral_triangle.py | 25 + .../test/components/schema/test_file.py | 25 + .../schema/test_file_schema_test_class.py | 25 + .../python/test/components/schema/test_foo.py | 25 + .../components/schema/test_format_test.py | 25 + .../components/schema/test_from_schema.py | 25 + .../test/components/schema/test_fruit.py | 25 + .../test/components/schema/test_fruit_req.py | 25 + .../test/components/schema/test_gm_fruit.py | 25 + .../schema/test_grandparent_animal.py | 25 + .../schema/test_has_only_read_only.py | 25 + .../schema/test_health_check_result.py | 25 + .../components/schema/test_integer_enum.py | 25 + .../schema/test_integer_enum_big.py | 25 + .../schema/test_integer_enum_one_value.py | 25 + .../test_integer_enum_with_default_value.py | 25 + .../components/schema/test_integer_max10.py | 25 + .../components/schema/test_integer_min15.py | 25 + .../schema/test_isosceles_triangle.py | 25 + .../schema/test_json_patch_request.py | 25 + ...est_json_patch_request_add_replace_test.py | 25 + .../test_json_patch_request_move_copy.py | 25 + .../schema/test_json_patch_request_remove.py | 25 + .../test/components/schema/test_mammal.py | 25 + .../test/components/schema/test_map_test.py | 25 + ...perties_and_additional_properties_class.py | 25 + .../schema/test_model200_response.py | 25 + .../components/schema/test_model_return.py | 25 + .../test/components/schema/test_money.py | 25 + .../test/components/schema/test_name.py | 25 + .../schema/test_no_additional_properties.py | 25 + .../components/schema/test_nullable_class.py | 25 + .../components/schema/test_nullable_shape.py | 25 + .../components/schema/test_nullable_string.py | 25 + .../test/components/schema/test_number.py | 25 + .../components/schema/test_number_only.py | 25 + .../schema/test_number_with_validations.py | 25 + .../schema/test_object_interface.py | 25 + .../test_object_model_with_ref_props.py | 25 + ..._with_req_test_prop_from_unset_add_prop.py | 25 + .../test_object_with_decimal_properties.py | 25 + ...est_object_with_difficultly_named_props.py | 25 + ...object_with_inline_composition_property.py | 25 + ...ect_with_invalid_named_refed_properties.py | 25 + .../test_object_with_optional_test_prop.py | 25 + .../schema/test_object_with_validations.py | 25 + .../test/components/schema/test_order.py | 25 + .../test/components/schema/test_parent_pet.py | 25 + .../python/test/components/schema/test_pet.py | 25 + .../python/test/components/schema/test_pig.py | 25 + .../test/components/schema/test_player.py | 25 + .../components/schema/test_quadrilateral.py | 25 + .../schema/test_quadrilateral_interface.py | 25 + .../components/schema/test_read_only_first.py | 25 + .../schema/test_scalene_triangle.py | 25 + .../test/components/schema/test_shape.py | 25 + .../components/schema/test_shape_or_null.py | 25 + .../schema/test_simple_quadrilateral.py | 25 + .../components/schema/test_some_object.py | 25 + .../schema/test_special_model_name.py | 25 + .../test/components/schema/test_string.py | 25 + .../schema/test_string_boolean_map.py | 25 + .../components/schema/test_string_enum.py | 25 + .../test_string_enum_with_default_value.py | 25 + .../schema/test_string_with_validation.py | 25 + .../python/test/components/schema/test_tag.py | 25 + .../test/components/schema/test_triangle.py | 25 + .../schema/test_triangle_interface.py | 25 + .../test/components/schema/test_user.py | 25 + .../components/schema/test_uuid_string.py | 25 + .../test/components/schema/test_whale.py | 25 + .../test/components/schema/test_zebra.py | 25 + 364 files changed, 27580 insertions(+), 242 deletions(-) create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/address.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/address.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/category.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/category.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/client.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/client.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/file.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/file.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/money.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/money.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/name.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/name.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/number.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/number.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/order.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/order.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/player.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/player.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/user.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/user.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.pyi create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.py create mode 100644 samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.pyi create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_class.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_validator.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_with_array_of_enums.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_address.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_animal.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_animal_farm.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_any_type_and_format.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_any_type_not_string.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_api_response.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_apple.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_apple_req.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_array_holding_any_type.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_array_of_array_of_number_only.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_array_of_enums.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_array_of_number_only.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_array_test.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_array_with_validations_in_items.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_banana.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_banana_req.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_bar.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_basque_pig.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_boolean.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_boolean_enum.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_capitalization.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_cat.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_category.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_child_cat.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_class_model.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_client.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_complex_quadrilateral.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_any_of_different_types_no_validations.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_array.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_bool.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_none.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_number.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_object.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_one_of_different_types.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_composed_string.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_currency.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_danish_pig.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_date_time_test.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_date_time_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_date_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_decimal_payload.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_dog.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_drawing.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_enum_arrays.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_enum_class.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_enum_test.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_equilateral_triangle.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_file.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_file_schema_test_class.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_foo.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_format_test.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_from_schema.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_fruit.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_fruit_req.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_gm_fruit.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_grandparent_animal.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_has_only_read_only.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_health_check_result.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_big.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_one_value.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_with_default_value.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_integer_max10.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_integer_min15.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_isosceles_triangle.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_add_replace_test.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_move_copy.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_remove.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_mammal.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_map_test.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_mixed_properties_and_additional_properties_class.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_model200_response.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_model_return.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_money.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_name.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_no_additional_properties.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_nullable_class.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_nullable_shape.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_nullable_string.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_number.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_number_only.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_number_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_interface.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_model_with_ref_props.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_decimal_properties.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_difficultly_named_props.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_inline_composition_property.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_invalid_named_refed_properties.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_optional_test_prop.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_object_with_validations.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_order.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_parent_pet.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_pet.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_pig.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_player.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral_interface.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_read_only_first.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_scalene_triangle.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_shape.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_shape_or_null.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_simple_quadrilateral.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_some_object.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_special_model_name.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_string.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_string_boolean_map.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_string_enum.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_string_enum_with_default_value.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_string_with_validation.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_tag.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_triangle.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_triangle_interface.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_user.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_uuid_string.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_whale.py create mode 100644 samples/openapi3/client/petstore/python/test/components/schema/test_zebra.py diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/FILES b/samples/openapi3/client/petstore/python/.openapi-generator/FILES index ea676a172ed..7e4ec689f03 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/python/.openapi-generator/FILES @@ -141,250 +141,250 @@ petstore_api/apis/tags/fake_classname_tags123_api.py petstore_api/apis/tags/pet_api.py petstore_api/apis/tags/store_api.py petstore_api/apis/tags/user_api.py -petstore_api/components.schema/additional_properties_class.py -petstore_api/components.schema/additional_properties_class.pyi -petstore_api/components.schema/additional_properties_validator.py -petstore_api/components.schema/additional_properties_validator.pyi -petstore_api/components.schema/additional_properties_with_array_of_enums.py -petstore_api/components.schema/additional_properties_with_array_of_enums.pyi -petstore_api/components.schema/address.py -petstore_api/components.schema/address.pyi -petstore_api/components.schema/animal.py -petstore_api/components.schema/animal.pyi -petstore_api/components.schema/animal_farm.py -petstore_api/components.schema/animal_farm.pyi -petstore_api/components.schema/any_type_and_format.py -petstore_api/components.schema/any_type_and_format.pyi -petstore_api/components.schema/any_type_not_string.py -petstore_api/components.schema/any_type_not_string.pyi -petstore_api/components.schema/api_response.py -petstore_api/components.schema/api_response.pyi -petstore_api/components.schema/apple.py -petstore_api/components.schema/apple.pyi -petstore_api/components.schema/apple_req.py -petstore_api/components.schema/apple_req.pyi -petstore_api/components.schema/array_holding_any_type.py -petstore_api/components.schema/array_holding_any_type.pyi -petstore_api/components.schema/array_of_array_of_number_only.py -petstore_api/components.schema/array_of_array_of_number_only.pyi -petstore_api/components.schema/array_of_enums.py -petstore_api/components.schema/array_of_enums.pyi -petstore_api/components.schema/array_of_number_only.py -petstore_api/components.schema/array_of_number_only.pyi -petstore_api/components.schema/array_test.py -petstore_api/components.schema/array_test.pyi -petstore_api/components.schema/array_with_validations_in_items.py -petstore_api/components.schema/array_with_validations_in_items.pyi -petstore_api/components.schema/banana.py -petstore_api/components.schema/banana.pyi -petstore_api/components.schema/banana_req.py -petstore_api/components.schema/banana_req.pyi -petstore_api/components.schema/bar.py -petstore_api/components.schema/bar.pyi -petstore_api/components.schema/basque_pig.py -petstore_api/components.schema/basque_pig.pyi -petstore_api/components.schema/boolean.py -petstore_api/components.schema/boolean.pyi -petstore_api/components.schema/boolean_enum.py -petstore_api/components.schema/boolean_enum.pyi -petstore_api/components.schema/capitalization.py -petstore_api/components.schema/capitalization.pyi -petstore_api/components.schema/cat.py -petstore_api/components.schema/cat.pyi -petstore_api/components.schema/category.py -petstore_api/components.schema/category.pyi -petstore_api/components.schema/child_cat.py -petstore_api/components.schema/child_cat.pyi -petstore_api/components.schema/class_model.py -petstore_api/components.schema/class_model.pyi -petstore_api/components.schema/client.py -petstore_api/components.schema/client.pyi -petstore_api/components.schema/complex_quadrilateral.py -petstore_api/components.schema/complex_quadrilateral.pyi -petstore_api/components.schema/composed_any_of_different_types_no_validations.py -petstore_api/components.schema/composed_any_of_different_types_no_validations.pyi -petstore_api/components.schema/composed_array.py -petstore_api/components.schema/composed_array.pyi -petstore_api/components.schema/composed_bool.py -petstore_api/components.schema/composed_bool.pyi -petstore_api/components.schema/composed_none.py -petstore_api/components.schema/composed_none.pyi -petstore_api/components.schema/composed_number.py -petstore_api/components.schema/composed_number.pyi -petstore_api/components.schema/composed_object.py -petstore_api/components.schema/composed_object.pyi -petstore_api/components.schema/composed_one_of_different_types.py -petstore_api/components.schema/composed_one_of_different_types.pyi -petstore_api/components.schema/composed_string.py -petstore_api/components.schema/composed_string.pyi -petstore_api/components.schema/currency.py -petstore_api/components.schema/currency.pyi -petstore_api/components.schema/danish_pig.py -petstore_api/components.schema/danish_pig.pyi -petstore_api/components.schema/date_time_test.py -petstore_api/components.schema/date_time_test.pyi -petstore_api/components.schema/date_time_with_validations.py -petstore_api/components.schema/date_time_with_validations.pyi -petstore_api/components.schema/date_with_validations.py -petstore_api/components.schema/date_with_validations.pyi -petstore_api/components.schema/decimal_payload.py -petstore_api/components.schema/decimal_payload.pyi -petstore_api/components.schema/dog.py -petstore_api/components.schema/dog.pyi -petstore_api/components.schema/drawing.py -petstore_api/components.schema/drawing.pyi -petstore_api/components.schema/enum_arrays.py -petstore_api/components.schema/enum_arrays.pyi -petstore_api/components.schema/enum_class.py -petstore_api/components.schema/enum_class.pyi -petstore_api/components.schema/enum_test.py -petstore_api/components.schema/enum_test.pyi -petstore_api/components.schema/equilateral_triangle.py -petstore_api/components.schema/equilateral_triangle.pyi -petstore_api/components.schema/file.py -petstore_api/components.schema/file.pyi -petstore_api/components.schema/file_schema_test_class.py -petstore_api/components.schema/file_schema_test_class.pyi -petstore_api/components.schema/foo.py -petstore_api/components.schema/foo.pyi -petstore_api/components.schema/format_test.py -petstore_api/components.schema/format_test.pyi -petstore_api/components.schema/from_schema.py -petstore_api/components.schema/from_schema.pyi -petstore_api/components.schema/fruit.py -petstore_api/components.schema/fruit.pyi -petstore_api/components.schema/fruit_req.py -petstore_api/components.schema/fruit_req.pyi -petstore_api/components.schema/gm_fruit.py -petstore_api/components.schema/gm_fruit.pyi -petstore_api/components.schema/grandparent_animal.py -petstore_api/components.schema/grandparent_animal.pyi -petstore_api/components.schema/has_only_read_only.py -petstore_api/components.schema/has_only_read_only.pyi -petstore_api/components.schema/health_check_result.py -petstore_api/components.schema/health_check_result.pyi -petstore_api/components.schema/integer_enum.py -petstore_api/components.schema/integer_enum.pyi -petstore_api/components.schema/integer_enum_big.py -petstore_api/components.schema/integer_enum_big.pyi -petstore_api/components.schema/integer_enum_one_value.py -petstore_api/components.schema/integer_enum_one_value.pyi -petstore_api/components.schema/integer_enum_with_default_value.py -petstore_api/components.schema/integer_enum_with_default_value.pyi -petstore_api/components.schema/integer_max10.py -petstore_api/components.schema/integer_max10.pyi -petstore_api/components.schema/integer_min15.py -petstore_api/components.schema/integer_min15.pyi -petstore_api/components.schema/isosceles_triangle.py -petstore_api/components.schema/isosceles_triangle.pyi -petstore_api/components.schema/json_patch_request.py -petstore_api/components.schema/json_patch_request.pyi -petstore_api/components.schema/json_patch_request_add_replace_test.py -petstore_api/components.schema/json_patch_request_add_replace_test.pyi -petstore_api/components.schema/json_patch_request_move_copy.py -petstore_api/components.schema/json_patch_request_move_copy.pyi -petstore_api/components.schema/json_patch_request_remove.py -petstore_api/components.schema/json_patch_request_remove.pyi -petstore_api/components.schema/mammal.py -petstore_api/components.schema/mammal.pyi -petstore_api/components.schema/map_test.py -petstore_api/components.schema/map_test.pyi -petstore_api/components.schema/mixed_properties_and_additional_properties_class.py -petstore_api/components.schema/mixed_properties_and_additional_properties_class.pyi -petstore_api/components.schema/model200_response.py -petstore_api/components.schema/model200_response.pyi -petstore_api/components.schema/model_return.py -petstore_api/components.schema/model_return.pyi -petstore_api/components.schema/money.py -petstore_api/components.schema/money.pyi -petstore_api/components.schema/name.py -petstore_api/components.schema/name.pyi -petstore_api/components.schema/no_additional_properties.py -petstore_api/components.schema/no_additional_properties.pyi -petstore_api/components.schema/nullable_class.py -petstore_api/components.schema/nullable_class.pyi -petstore_api/components.schema/nullable_shape.py -petstore_api/components.schema/nullable_shape.pyi -petstore_api/components.schema/nullable_string.py -petstore_api/components.schema/nullable_string.pyi -petstore_api/components.schema/number.py -petstore_api/components.schema/number.pyi -petstore_api/components.schema/number_only.py -petstore_api/components.schema/number_only.pyi -petstore_api/components.schema/number_with_validations.py -petstore_api/components.schema/number_with_validations.pyi -petstore_api/components.schema/object_interface.py -petstore_api/components.schema/object_interface.pyi -petstore_api/components.schema/object_model_with_ref_props.py -petstore_api/components.schema/object_model_with_ref_props.pyi -petstore_api/components.schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py -petstore_api/components.schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi -petstore_api/components.schema/object_with_decimal_properties.py -petstore_api/components.schema/object_with_decimal_properties.pyi -petstore_api/components.schema/object_with_difficultly_named_props.py -petstore_api/components.schema/object_with_difficultly_named_props.pyi -petstore_api/components.schema/object_with_inline_composition_property.py -petstore_api/components.schema/object_with_inline_composition_property.pyi -petstore_api/components.schema/object_with_invalid_named_refed_properties.py -petstore_api/components.schema/object_with_invalid_named_refed_properties.pyi -petstore_api/components.schema/object_with_optional_test_prop.py -petstore_api/components.schema/object_with_optional_test_prop.pyi -petstore_api/components.schema/object_with_validations.py -petstore_api/components.schema/object_with_validations.pyi -petstore_api/components.schema/order.py -petstore_api/components.schema/order.pyi -petstore_api/components.schema/parent_pet.py -petstore_api/components.schema/parent_pet.pyi -petstore_api/components.schema/pet.py -petstore_api/components.schema/pet.pyi -petstore_api/components.schema/pig.py -petstore_api/components.schema/pig.pyi -petstore_api/components.schema/player.py -petstore_api/components.schema/player.pyi -petstore_api/components.schema/quadrilateral.py -petstore_api/components.schema/quadrilateral.pyi -petstore_api/components.schema/quadrilateral_interface.py -petstore_api/components.schema/quadrilateral_interface.pyi -petstore_api/components.schema/read_only_first.py -petstore_api/components.schema/read_only_first.pyi -petstore_api/components.schema/scalene_triangle.py -petstore_api/components.schema/scalene_triangle.pyi -petstore_api/components.schema/shape.py -petstore_api/components.schema/shape.pyi -petstore_api/components.schema/shape_or_null.py -petstore_api/components.schema/shape_or_null.pyi -petstore_api/components.schema/simple_quadrilateral.py -petstore_api/components.schema/simple_quadrilateral.pyi -petstore_api/components.schema/some_object.py -petstore_api/components.schema/some_object.pyi -petstore_api/components.schema/special_model_name.py -petstore_api/components.schema/special_model_name.pyi -petstore_api/components.schema/string.py -petstore_api/components.schema/string.pyi -petstore_api/components.schema/string_boolean_map.py -petstore_api/components.schema/string_boolean_map.pyi -petstore_api/components.schema/string_enum.py -petstore_api/components.schema/string_enum.pyi -petstore_api/components.schema/string_enum_with_default_value.py -petstore_api/components.schema/string_enum_with_default_value.pyi -petstore_api/components.schema/string_with_validation.py -petstore_api/components.schema/string_with_validation.pyi -petstore_api/components.schema/tag.py -petstore_api/components.schema/tag.pyi -petstore_api/components.schema/triangle.py -petstore_api/components.schema/triangle.pyi -petstore_api/components.schema/triangle_interface.py -petstore_api/components.schema/triangle_interface.pyi -petstore_api/components.schema/user.py -petstore_api/components.schema/user.pyi -petstore_api/components.schema/uuid_string.py -petstore_api/components.schema/uuid_string.pyi -petstore_api/components.schema/whale.py -petstore_api/components.schema/whale.pyi -petstore_api/components.schema/zebra.py -petstore_api/components.schema/zebra.pyi petstore_api/components/__init__.py petstore_api/components/schema/__init__.py +petstore_api/components/schema/additional_properties_class.py +petstore_api/components/schema/additional_properties_class.pyi +petstore_api/components/schema/additional_properties_validator.py +petstore_api/components/schema/additional_properties_validator.pyi +petstore_api/components/schema/additional_properties_with_array_of_enums.py +petstore_api/components/schema/additional_properties_with_array_of_enums.pyi +petstore_api/components/schema/address.py +petstore_api/components/schema/address.pyi +petstore_api/components/schema/animal.py +petstore_api/components/schema/animal.pyi +petstore_api/components/schema/animal_farm.py +petstore_api/components/schema/animal_farm.pyi +petstore_api/components/schema/any_type_and_format.py +petstore_api/components/schema/any_type_and_format.pyi +petstore_api/components/schema/any_type_not_string.py +petstore_api/components/schema/any_type_not_string.pyi +petstore_api/components/schema/api_response.py +petstore_api/components/schema/api_response.pyi +petstore_api/components/schema/apple.py +petstore_api/components/schema/apple.pyi +petstore_api/components/schema/apple_req.py +petstore_api/components/schema/apple_req.pyi +petstore_api/components/schema/array_holding_any_type.py +petstore_api/components/schema/array_holding_any_type.pyi +petstore_api/components/schema/array_of_array_of_number_only.py +petstore_api/components/schema/array_of_array_of_number_only.pyi +petstore_api/components/schema/array_of_enums.py +petstore_api/components/schema/array_of_enums.pyi +petstore_api/components/schema/array_of_number_only.py +petstore_api/components/schema/array_of_number_only.pyi +petstore_api/components/schema/array_test.py +petstore_api/components/schema/array_test.pyi +petstore_api/components/schema/array_with_validations_in_items.py +petstore_api/components/schema/array_with_validations_in_items.pyi +petstore_api/components/schema/banana.py +petstore_api/components/schema/banana.pyi +petstore_api/components/schema/banana_req.py +petstore_api/components/schema/banana_req.pyi +petstore_api/components/schema/bar.py +petstore_api/components/schema/bar.pyi +petstore_api/components/schema/basque_pig.py +petstore_api/components/schema/basque_pig.pyi +petstore_api/components/schema/boolean.py +petstore_api/components/schema/boolean.pyi +petstore_api/components/schema/boolean_enum.py +petstore_api/components/schema/boolean_enum.pyi +petstore_api/components/schema/capitalization.py +petstore_api/components/schema/capitalization.pyi +petstore_api/components/schema/cat.py +petstore_api/components/schema/cat.pyi +petstore_api/components/schema/category.py +petstore_api/components/schema/category.pyi +petstore_api/components/schema/child_cat.py +petstore_api/components/schema/child_cat.pyi +petstore_api/components/schema/class_model.py +petstore_api/components/schema/class_model.pyi +petstore_api/components/schema/client.py +petstore_api/components/schema/client.pyi +petstore_api/components/schema/complex_quadrilateral.py +petstore_api/components/schema/complex_quadrilateral.pyi +petstore_api/components/schema/composed_any_of_different_types_no_validations.py +petstore_api/components/schema/composed_any_of_different_types_no_validations.pyi +petstore_api/components/schema/composed_array.py +petstore_api/components/schema/composed_array.pyi +petstore_api/components/schema/composed_bool.py +petstore_api/components/schema/composed_bool.pyi +petstore_api/components/schema/composed_none.py +petstore_api/components/schema/composed_none.pyi +petstore_api/components/schema/composed_number.py +petstore_api/components/schema/composed_number.pyi +petstore_api/components/schema/composed_object.py +petstore_api/components/schema/composed_object.pyi +petstore_api/components/schema/composed_one_of_different_types.py +petstore_api/components/schema/composed_one_of_different_types.pyi +petstore_api/components/schema/composed_string.py +petstore_api/components/schema/composed_string.pyi +petstore_api/components/schema/currency.py +petstore_api/components/schema/currency.pyi +petstore_api/components/schema/danish_pig.py +petstore_api/components/schema/danish_pig.pyi +petstore_api/components/schema/date_time_test.py +petstore_api/components/schema/date_time_test.pyi +petstore_api/components/schema/date_time_with_validations.py +petstore_api/components/schema/date_time_with_validations.pyi +petstore_api/components/schema/date_with_validations.py +petstore_api/components/schema/date_with_validations.pyi +petstore_api/components/schema/decimal_payload.py +petstore_api/components/schema/decimal_payload.pyi +petstore_api/components/schema/dog.py +petstore_api/components/schema/dog.pyi +petstore_api/components/schema/drawing.py +petstore_api/components/schema/drawing.pyi +petstore_api/components/schema/enum_arrays.py +petstore_api/components/schema/enum_arrays.pyi +petstore_api/components/schema/enum_class.py +petstore_api/components/schema/enum_class.pyi +petstore_api/components/schema/enum_test.py +petstore_api/components/schema/enum_test.pyi +petstore_api/components/schema/equilateral_triangle.py +petstore_api/components/schema/equilateral_triangle.pyi +petstore_api/components/schema/file.py +petstore_api/components/schema/file.pyi +petstore_api/components/schema/file_schema_test_class.py +petstore_api/components/schema/file_schema_test_class.pyi +petstore_api/components/schema/foo.py +petstore_api/components/schema/foo.pyi +petstore_api/components/schema/format_test.py +petstore_api/components/schema/format_test.pyi +petstore_api/components/schema/from_schema.py +petstore_api/components/schema/from_schema.pyi +petstore_api/components/schema/fruit.py +petstore_api/components/schema/fruit.pyi +petstore_api/components/schema/fruit_req.py +petstore_api/components/schema/fruit_req.pyi +petstore_api/components/schema/gm_fruit.py +petstore_api/components/schema/gm_fruit.pyi +petstore_api/components/schema/grandparent_animal.py +petstore_api/components/schema/grandparent_animal.pyi +petstore_api/components/schema/has_only_read_only.py +petstore_api/components/schema/has_only_read_only.pyi +petstore_api/components/schema/health_check_result.py +petstore_api/components/schema/health_check_result.pyi +petstore_api/components/schema/integer_enum.py +petstore_api/components/schema/integer_enum.pyi +petstore_api/components/schema/integer_enum_big.py +petstore_api/components/schema/integer_enum_big.pyi +petstore_api/components/schema/integer_enum_one_value.py +petstore_api/components/schema/integer_enum_one_value.pyi +petstore_api/components/schema/integer_enum_with_default_value.py +petstore_api/components/schema/integer_enum_with_default_value.pyi +petstore_api/components/schema/integer_max10.py +petstore_api/components/schema/integer_max10.pyi +petstore_api/components/schema/integer_min15.py +petstore_api/components/schema/integer_min15.pyi +petstore_api/components/schema/isosceles_triangle.py +petstore_api/components/schema/isosceles_triangle.pyi +petstore_api/components/schema/json_patch_request.py +petstore_api/components/schema/json_patch_request.pyi +petstore_api/components/schema/json_patch_request_add_replace_test.py +petstore_api/components/schema/json_patch_request_add_replace_test.pyi +petstore_api/components/schema/json_patch_request_move_copy.py +petstore_api/components/schema/json_patch_request_move_copy.pyi +petstore_api/components/schema/json_patch_request_remove.py +petstore_api/components/schema/json_patch_request_remove.pyi +petstore_api/components/schema/mammal.py +petstore_api/components/schema/mammal.pyi +petstore_api/components/schema/map_test.py +petstore_api/components/schema/map_test.pyi +petstore_api/components/schema/mixed_properties_and_additional_properties_class.py +petstore_api/components/schema/mixed_properties_and_additional_properties_class.pyi +petstore_api/components/schema/model200_response.py +petstore_api/components/schema/model200_response.pyi +petstore_api/components/schema/model_return.py +petstore_api/components/schema/model_return.pyi +petstore_api/components/schema/money.py +petstore_api/components/schema/money.pyi +petstore_api/components/schema/name.py +petstore_api/components/schema/name.pyi +petstore_api/components/schema/no_additional_properties.py +petstore_api/components/schema/no_additional_properties.pyi +petstore_api/components/schema/nullable_class.py +petstore_api/components/schema/nullable_class.pyi +petstore_api/components/schema/nullable_shape.py +petstore_api/components/schema/nullable_shape.pyi +petstore_api/components/schema/nullable_string.py +petstore_api/components/schema/nullable_string.pyi +petstore_api/components/schema/number.py +petstore_api/components/schema/number.pyi +petstore_api/components/schema/number_only.py +petstore_api/components/schema/number_only.pyi +petstore_api/components/schema/number_with_validations.py +petstore_api/components/schema/number_with_validations.pyi +petstore_api/components/schema/object_interface.py +petstore_api/components/schema/object_interface.pyi +petstore_api/components/schema/object_model_with_ref_props.py +petstore_api/components/schema/object_model_with_ref_props.pyi +petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py +petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi +petstore_api/components/schema/object_with_decimal_properties.py +petstore_api/components/schema/object_with_decimal_properties.pyi +petstore_api/components/schema/object_with_difficultly_named_props.py +petstore_api/components/schema/object_with_difficultly_named_props.pyi +petstore_api/components/schema/object_with_inline_composition_property.py +petstore_api/components/schema/object_with_inline_composition_property.pyi +petstore_api/components/schema/object_with_invalid_named_refed_properties.py +petstore_api/components/schema/object_with_invalid_named_refed_properties.pyi +petstore_api/components/schema/object_with_optional_test_prop.py +petstore_api/components/schema/object_with_optional_test_prop.pyi +petstore_api/components/schema/object_with_validations.py +petstore_api/components/schema/object_with_validations.pyi +petstore_api/components/schema/order.py +petstore_api/components/schema/order.pyi +petstore_api/components/schema/parent_pet.py +petstore_api/components/schema/parent_pet.pyi +petstore_api/components/schema/pet.py +petstore_api/components/schema/pet.pyi +petstore_api/components/schema/pig.py +petstore_api/components/schema/pig.pyi +petstore_api/components/schema/player.py +petstore_api/components/schema/player.pyi +petstore_api/components/schema/quadrilateral.py +petstore_api/components/schema/quadrilateral.pyi +petstore_api/components/schema/quadrilateral_interface.py +petstore_api/components/schema/quadrilateral_interface.pyi +petstore_api/components/schema/read_only_first.py +petstore_api/components/schema/read_only_first.pyi +petstore_api/components/schema/scalene_triangle.py +petstore_api/components/schema/scalene_triangle.pyi +petstore_api/components/schema/shape.py +petstore_api/components/schema/shape.pyi +petstore_api/components/schema/shape_or_null.py +petstore_api/components/schema/shape_or_null.pyi +petstore_api/components/schema/simple_quadrilateral.py +petstore_api/components/schema/simple_quadrilateral.pyi +petstore_api/components/schema/some_object.py +petstore_api/components/schema/some_object.pyi +petstore_api/components/schema/special_model_name.py +petstore_api/components/schema/special_model_name.pyi +petstore_api/components/schema/string.py +petstore_api/components/schema/string.pyi +petstore_api/components/schema/string_boolean_map.py +petstore_api/components/schema/string_boolean_map.pyi +petstore_api/components/schema/string_enum.py +petstore_api/components/schema/string_enum.pyi +petstore_api/components/schema/string_enum_with_default_value.py +petstore_api/components/schema/string_enum_with_default_value.pyi +petstore_api/components/schema/string_with_validation.py +petstore_api/components/schema/string_with_validation.pyi +petstore_api/components/schema/tag.py +petstore_api/components/schema/tag.pyi +petstore_api/components/schema/triangle.py +petstore_api/components/schema/triangle.pyi +petstore_api/components/schema/triangle_interface.py +petstore_api/components/schema/triangle_interface.pyi +petstore_api/components/schema/user.py +petstore_api/components/schema/user.pyi +petstore_api/components/schema/uuid_string.py +petstore_api/components/schema/uuid_string.pyi +petstore_api/components/schema/whale.py +petstore_api/components/schema/whale.pyi +petstore_api/components/schema/zebra.py +petstore_api/components/schema/zebra.pyi petstore_api/components/schemas/__init__.py petstore_api/configuration.py petstore_api/exceptions.py @@ -397,4 +397,125 @@ setup.py test-requirements.txt test/__init__.py test/components/schema/__init__.py +test/components/schema/test_additional_properties_class.py +test/components/schema/test_additional_properties_validator.py +test/components/schema/test_additional_properties_with_array_of_enums.py +test/components/schema/test_address.py +test/components/schema/test_animal.py +test/components/schema/test_animal_farm.py +test/components/schema/test_any_type_and_format.py +test/components/schema/test_any_type_not_string.py +test/components/schema/test_api_response.py +test/components/schema/test_apple.py +test/components/schema/test_apple_req.py +test/components/schema/test_array_holding_any_type.py +test/components/schema/test_array_of_array_of_number_only.py +test/components/schema/test_array_of_enums.py +test/components/schema/test_array_of_number_only.py +test/components/schema/test_array_test.py +test/components/schema/test_array_with_validations_in_items.py +test/components/schema/test_banana.py +test/components/schema/test_banana_req.py +test/components/schema/test_bar.py +test/components/schema/test_basque_pig.py +test/components/schema/test_boolean.py +test/components/schema/test_boolean_enum.py +test/components/schema/test_capitalization.py +test/components/schema/test_cat.py +test/components/schema/test_category.py +test/components/schema/test_child_cat.py +test/components/schema/test_class_model.py +test/components/schema/test_client.py +test/components/schema/test_complex_quadrilateral.py +test/components/schema/test_composed_any_of_different_types_no_validations.py +test/components/schema/test_composed_array.py +test/components/schema/test_composed_bool.py +test/components/schema/test_composed_none.py +test/components/schema/test_composed_number.py +test/components/schema/test_composed_object.py +test/components/schema/test_composed_one_of_different_types.py +test/components/schema/test_composed_string.py +test/components/schema/test_currency.py +test/components/schema/test_danish_pig.py +test/components/schema/test_date_time_test.py +test/components/schema/test_date_time_with_validations.py +test/components/schema/test_date_with_validations.py +test/components/schema/test_decimal_payload.py +test/components/schema/test_dog.py +test/components/schema/test_drawing.py +test/components/schema/test_enum_arrays.py +test/components/schema/test_enum_class.py +test/components/schema/test_enum_test.py +test/components/schema/test_equilateral_triangle.py +test/components/schema/test_file.py +test/components/schema/test_file_schema_test_class.py +test/components/schema/test_foo.py +test/components/schema/test_format_test.py +test/components/schema/test_from_schema.py +test/components/schema/test_fruit.py +test/components/schema/test_fruit_req.py +test/components/schema/test_gm_fruit.py +test/components/schema/test_grandparent_animal.py +test/components/schema/test_has_only_read_only.py +test/components/schema/test_health_check_result.py +test/components/schema/test_integer_enum.py +test/components/schema/test_integer_enum_big.py +test/components/schema/test_integer_enum_one_value.py +test/components/schema/test_integer_enum_with_default_value.py +test/components/schema/test_integer_max10.py +test/components/schema/test_integer_min15.py +test/components/schema/test_isosceles_triangle.py +test/components/schema/test_json_patch_request.py +test/components/schema/test_json_patch_request_add_replace_test.py +test/components/schema/test_json_patch_request_move_copy.py +test/components/schema/test_json_patch_request_remove.py +test/components/schema/test_mammal.py +test/components/schema/test_map_test.py +test/components/schema/test_mixed_properties_and_additional_properties_class.py +test/components/schema/test_model200_response.py +test/components/schema/test_model_return.py +test/components/schema/test_money.py +test/components/schema/test_name.py +test/components/schema/test_no_additional_properties.py +test/components/schema/test_nullable_class.py +test/components/schema/test_nullable_shape.py +test/components/schema/test_nullable_string.py +test/components/schema/test_number.py +test/components/schema/test_number_only.py +test/components/schema/test_number_with_validations.py +test/components/schema/test_object_interface.py +test/components/schema/test_object_model_with_ref_props.py +test/components/schema/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py +test/components/schema/test_object_with_decimal_properties.py +test/components/schema/test_object_with_difficultly_named_props.py +test/components/schema/test_object_with_inline_composition_property.py +test/components/schema/test_object_with_invalid_named_refed_properties.py +test/components/schema/test_object_with_optional_test_prop.py +test/components/schema/test_object_with_validations.py +test/components/schema/test_order.py +test/components/schema/test_parent_pet.py +test/components/schema/test_pet.py +test/components/schema/test_pig.py +test/components/schema/test_player.py +test/components/schema/test_quadrilateral.py +test/components/schema/test_quadrilateral_interface.py +test/components/schema/test_read_only_first.py +test/components/schema/test_scalene_triangle.py +test/components/schema/test_shape.py +test/components/schema/test_shape_or_null.py +test/components/schema/test_simple_quadrilateral.py +test/components/schema/test_some_object.py +test/components/schema/test_special_model_name.py +test/components/schema/test_string.py +test/components/schema/test_string_boolean_map.py +test/components/schema/test_string_enum.py +test/components/schema/test_string_enum_with_default_value.py +test/components/schema/test_string_with_validation.py +test/components/schema/test_tag.py +test/components/schema/test_triangle.py +test/components/schema/test_triangle_interface.py +test/components/schema/test_user.py +test/components/schema/test_uuid_string.py +test/components/schema/test_whale.py +test/components/schema/test_zebra.py tox.ini diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.py new file mode 100644 index 00000000000..79ca58cf230 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class map_property( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_property': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class map_of_map_property( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'map_of_map_property': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anytype_1 = schemas.AnyTypeSchema + map_with_undeclared_properties_anytype_1 = schemas.DictSchema + map_with_undeclared_properties_anytype_2 = schemas.DictSchema + + + class map_with_undeclared_properties_anytype_3( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.AnyTypeSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'map_with_undeclared_properties_anytype_3': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class empty_map( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.NotAnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'empty_map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class map_with_undeclared_properties_string( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_with_undeclared_properties_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "map_property": map_property, + "map_of_map_property": map_of_map_property, + "anytype_1": anytype_1, + "map_with_undeclared_properties_anytype_1": map_with_undeclared_properties_anytype_1, + "map_with_undeclared_properties_anytype_2": map_with_undeclared_properties_anytype_2, + "map_with_undeclared_properties_anytype_3": map_with_undeclared_properties_anytype_3, + "empty_map": empty_map, + "map_with_undeclared_properties_string": map_with_undeclared_properties_string, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + map_property: typing.Union[MetaOapg.properties.map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_of_map_property: typing.Union[MetaOapg.properties.map_of_map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + anytype_1: typing.Union[MetaOapg.properties.anytype_1, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_1: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_2: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_3: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + empty_map: typing.Union[MetaOapg.properties.empty_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_string: typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalPropertiesClass': + return super().__new__( + cls, + *args, + map_property=map_property, + map_of_map_property=map_of_map_property, + anytype_1=anytype_1, + map_with_undeclared_properties_anytype_1=map_with_undeclared_properties_anytype_1, + map_with_undeclared_properties_anytype_2=map_with_undeclared_properties_anytype_2, + map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3, + empty_map=empty_map, + map_with_undeclared_properties_string=map_with_undeclared_properties_string, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.pyi new file mode 100644 index 00000000000..79ca58cf230 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_class.pyi @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class map_property( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_property': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class map_of_map_property( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'map_of_map_property': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anytype_1 = schemas.AnyTypeSchema + map_with_undeclared_properties_anytype_1 = schemas.DictSchema + map_with_undeclared_properties_anytype_2 = schemas.DictSchema + + + class map_with_undeclared_properties_anytype_3( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.AnyTypeSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'map_with_undeclared_properties_anytype_3': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class empty_map( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.NotAnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'empty_map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class map_with_undeclared_properties_string( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_with_undeclared_properties_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "map_property": map_property, + "map_of_map_property": map_of_map_property, + "anytype_1": anytype_1, + "map_with_undeclared_properties_anytype_1": map_with_undeclared_properties_anytype_1, + "map_with_undeclared_properties_anytype_2": map_with_undeclared_properties_anytype_2, + "map_with_undeclared_properties_anytype_3": map_with_undeclared_properties_anytype_3, + "empty_map": empty_map, + "map_with_undeclared_properties_string": map_with_undeclared_properties_string, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + map_property: typing.Union[MetaOapg.properties.map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_of_map_property: typing.Union[MetaOapg.properties.map_of_map_property, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + anytype_1: typing.Union[MetaOapg.properties.anytype_1, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_1: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_2: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_3: typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + empty_map: typing.Union[MetaOapg.properties.empty_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_string: typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalPropertiesClass': + return super().__new__( + cls, + *args, + map_property=map_property, + map_of_map_property=map_of_map_property, + anytype_1=anytype_1, + map_with_undeclared_properties_anytype_1=map_with_undeclared_properties_anytype_1, + map_with_undeclared_properties_anytype_2=map_with_undeclared_properties_anytype_2, + map_with_undeclared_properties_anytype_3=map_with_undeclared_properties_anytype_3, + empty_map=empty_map, + map_with_undeclared_properties_string=map_with_undeclared_properties_string, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.py new file mode 100644 index 00000000000..e139b252699 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesValidator( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.AnyTypeSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + min_length = 3 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_2( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + max_length = 5 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'all_of_2': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + cls.all_of_2, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalPropertiesValidator': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.pyi new file mode 100644 index 00000000000..aa4a7355b2e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_validator.pyi @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesValidator( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.AnyTypeSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_2( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'all_of_2': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + cls.all_of_2, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalPropertiesValidator': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.py new file mode 100644 index 00000000000..2c722d8d748 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesWithArrayOfEnums( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class additional_properties( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['EnumClass']: + return EnumClass + + def __new__( + cls, + arg: typing.Union[typing.Tuple['EnumClass'], typing.List['EnumClass']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'additional_properties': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'EnumClass': + return super().__getitem__(i) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, list, tuple, ], + ) -> 'AdditionalPropertiesWithArrayOfEnums': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.enum_class import EnumClass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.pyi new file mode 100644 index 00000000000..2c722d8d748 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/additional_properties_with_array_of_enums.pyi @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AdditionalPropertiesWithArrayOfEnums( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class additional_properties( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['EnumClass']: + return EnumClass + + def __new__( + cls, + arg: typing.Union[typing.Tuple['EnumClass'], typing.List['EnumClass']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'additional_properties': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'EnumClass': + return super().__getitem__(i) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, list, tuple, ], + ) -> 'AdditionalPropertiesWithArrayOfEnums': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.enum_class import EnumClass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/address.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/address.py new file mode 100644 index 00000000000..64fb96cfb9f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/address.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Address( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.IntSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, decimal.Decimal, int, ], + ) -> 'Address': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/address.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/address.pyi new file mode 100644 index 00000000000..64fb96cfb9f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/address.pyi @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Address( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.IntSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, decimal.Decimal, int, ], + ) -> 'Address': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.py new file mode 100644 index 00000000000..c780b7812ec --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Animal( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + @staticmethod + def discriminator(): + return { + 'className': { + 'Cat': Cat, + 'Dog': Dog, + } + } + + class properties: + className = schemas.StrSchema + color = schemas.StrSchema + __annotations__ = { + "className": className, + "color": color, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Animal': + return super().__new__( + cls, + *args, + className=className, + color=color, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.cat import Cat +from petstore_api.components.schema.dog import Dog diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.pyi new file mode 100644 index 00000000000..c780b7812ec --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal.pyi @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Animal( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + @staticmethod + def discriminator(): + return { + 'className': { + 'Cat': Cat, + 'Dog': Dog, + } + } + + class properties: + className = schemas.StrSchema + color = schemas.StrSchema + __annotations__ = { + "className": className, + "color": color, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Animal': + return super().__new__( + cls, + *args, + className=className, + color=color, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.cat import Cat +from petstore_api.components.schema.dog import Dog diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.py new file mode 100644 index 00000000000..6d84fab802f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AnimalFarm( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Animal']: + return Animal + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Animal'], typing.List['Animal']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AnimalFarm': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Animal': + return super().__getitem__(i) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.pyi new file mode 100644 index 00000000000..6d84fab802f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/animal_farm.pyi @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AnimalFarm( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Animal']: + return Animal + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Animal'], typing.List['Animal']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AnimalFarm': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Animal': + return super().__getitem__(i) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.py new file mode 100644 index 00000000000..7bccdfa4161 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.py @@ -0,0 +1,361 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AnyTypeAndFormat( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class uuid( + schemas.UUIDBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'uuid' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'uuid': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class date( + schemas.DateBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'date' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'date': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class date_time( + schemas.DateTimeBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'date-time' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'date_time': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class number( + schemas.DecimalBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'number' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'number': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class binary( + schemas.BinaryBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'binary' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'binary': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class int32( + schemas.Int32Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'int32' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'int32': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class int64( + schemas.Int64Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'int64' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'int64': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class double( + schemas.Float64Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'double' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'double': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class _float( + schemas.Float32Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'float' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> '_float': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "uuid": uuid, + "date": date, + "date-time": date_time, + "number": number, + "binary": binary, + "int32": int32, + "int64": int64, + "double": double, + "float": _float, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date-time"]) -> MetaOapg.properties.date_time: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + uuid: typing.Union[MetaOapg.properties.uuid, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + date: typing.Union[MetaOapg.properties.date, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + number: typing.Union[MetaOapg.properties.number, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + binary: typing.Union[MetaOapg.properties.binary, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + int32: typing.Union[MetaOapg.properties.int32, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + int64: typing.Union[MetaOapg.properties.int64, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + double: typing.Union[MetaOapg.properties.double, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyTypeAndFormat': + return super().__new__( + cls, + *args, + uuid=uuid, + date=date, + number=number, + binary=binary, + int32=int32, + int64=int64, + double=double, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.pyi new file mode 100644 index 00000000000..7bccdfa4161 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_and_format.pyi @@ -0,0 +1,361 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AnyTypeAndFormat( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class uuid( + schemas.UUIDBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'uuid' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'uuid': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class date( + schemas.DateBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'date' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'date': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class date_time( + schemas.DateTimeBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'date-time' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'date_time': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class number( + schemas.DecimalBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'number' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'number': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class binary( + schemas.BinaryBase, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'binary' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'binary': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class int32( + schemas.Int32Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'int32' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'int32': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class int64( + schemas.Int64Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'int64' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'int64': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class double( + schemas.Float64Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'double' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'double': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class _float( + schemas.Float32Base, + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + format = 'float' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> '_float': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "uuid": uuid, + "date": date, + "date-time": date_time, + "number": number, + "binary": binary, + "int32": int32, + "int64": int64, + "double": double, + "float": _float, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date-time"]) -> MetaOapg.properties.date_time: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + uuid: typing.Union[MetaOapg.properties.uuid, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + date: typing.Union[MetaOapg.properties.date, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + number: typing.Union[MetaOapg.properties.number, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + binary: typing.Union[MetaOapg.properties.binary, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + int32: typing.Union[MetaOapg.properties.int32, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + int64: typing.Union[MetaOapg.properties.int64, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + double: typing.Union[MetaOapg.properties.double, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyTypeAndFormat': + return super().__new__( + cls, + *args, + uuid=uuid, + date=date, + number=number, + binary=binary, + int32=int32, + int64=int64, + double=double, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.py new file mode 100644 index 00000000000..993207a77f4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AnyTypeNotString( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + not_schema = schemas.StrSchema + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyTypeNotString': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.pyi new file mode 100644 index 00000000000..993207a77f4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/any_type_not_string.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AnyTypeNotString( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + not_schema = schemas.StrSchema + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyTypeNotString': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.py new file mode 100644 index 00000000000..236e29d4e78 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ApiResponse( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + code = schemas.Int32Schema + type = schemas.StrSchema + message = schemas.StrSchema + __annotations__ = { + "code": code, + "type": type, + "message": message, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, schemas.Unset] = schemas.unset, + type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, + message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ApiResponse': + return super().__new__( + cls, + *args, + code=code, + type=type, + message=message, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.pyi new file mode 100644 index 00000000000..236e29d4e78 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/api_response.pyi @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ApiResponse( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + code = schemas.Int32Schema + type = schemas.StrSchema + message = schemas.StrSchema + __annotations__ = { + "code": code, + "type": type, + "message": message, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, schemas.Unset] = schemas.unset, + type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, + message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ApiResponse': + return super().__new__( + cls, + *args, + code=code, + type=type, + message=message, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.py new file mode 100644 index 00000000000..638edc274dc --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Apple( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cultivar", + } + + class properties: + + + class cultivar( + schemas.StrSchema + ): + + + class MetaOapg: + regex=[{ + 'pattern': r'^[a-zA-Z\s]*$', # noqa: E501 + }] + + + class origin( + schemas.StrSchema + ): + + + class MetaOapg: + regex=[{ + 'pattern': r'^[A-Z\s]*$', # noqa: E501 + 'flags': ( + re.IGNORECASE + ) + }] + __annotations__ = { + "cultivar": cultivar, + "origin": origin, + } + + + cultivar: MetaOapg.properties.cultivar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + origin: typing.Union[MetaOapg.properties.origin, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Apple': + return super().__new__( + cls, + *args, + origin=origin, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.pyi new file mode 100644 index 00000000000..95bd5e3a90a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple.pyi @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Apple( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cultivar", + } + + class properties: + + + class cultivar( + schemas.StrSchema + ): + pass + + + class origin( + schemas.StrSchema + ): + pass + __annotations__ = { + "cultivar": cultivar, + "origin": origin, + } + + + cultivar: MetaOapg.properties.cultivar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + origin: typing.Union[MetaOapg.properties.origin, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Apple': + return super().__new__( + cls, + *args, + origin=origin, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.py new file mode 100644 index 00000000000..03d83c22cff --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AppleReq( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cultivar", + } + + class properties: + cultivar = schemas.StrSchema + mealy = schemas.BoolSchema + __annotations__ = { + "cultivar": cultivar, + "mealy": mealy, + } + additional_properties = schemas.NotAnyTypeSchema + + cultivar: MetaOapg.properties.cultivar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["mealy"]) -> MetaOapg.properties.mealy: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + cultivar: typing.Union[MetaOapg.properties.cultivar, str, ], + mealy: typing.Union[MetaOapg.properties.mealy, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AppleReq': + return super().__new__( + cls, + *args, + cultivar=cultivar, + mealy=mealy, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.pyi new file mode 100644 index 00000000000..03d83c22cff --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/apple_req.pyi @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class AppleReq( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "cultivar", + } + + class properties: + cultivar = schemas.StrSchema + mealy = schemas.BoolSchema + __annotations__ = { + "cultivar": cultivar, + "mealy": mealy, + } + additional_properties = schemas.NotAnyTypeSchema + + cultivar: MetaOapg.properties.cultivar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["mealy"]) -> MetaOapg.properties.mealy: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + cultivar: typing.Union[MetaOapg.properties.cultivar, str, ], + mealy: typing.Union[MetaOapg.properties.mealy, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AppleReq': + return super().__new__( + cls, + *args, + cultivar=cultivar, + mealy=mealy, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.py new file mode 100644 index 00000000000..19b1c0e1a63 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayHoldingAnyType( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayHoldingAnyType': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.pyi new file mode 100644 index 00000000000..19b1c0e1a63 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_holding_any_type.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayHoldingAnyType( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayHoldingAnyType': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.py new file mode 100644 index 00000000000..5237741d838 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayOfArrayOfNumberOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class ArrayArrayNumber( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayArrayNumber': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "ArrayArrayNumber": ArrayArrayNumber, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + ArrayArrayNumber: typing.Union[MetaOapg.properties.ArrayArrayNumber, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ArrayOfArrayOfNumberOnly': + return super().__new__( + cls, + *args, + ArrayArrayNumber=ArrayArrayNumber, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.pyi new file mode 100644 index 00000000000..5237741d838 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_array_of_number_only.pyi @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayOfArrayOfNumberOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class ArrayArrayNumber( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayArrayNumber': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "ArrayArrayNumber": ArrayArrayNumber, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + ArrayArrayNumber: typing.Union[MetaOapg.properties.ArrayArrayNumber, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ArrayOfArrayOfNumberOnly': + return super().__new__( + cls, + *args, + ArrayArrayNumber=ArrayArrayNumber, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.py new file mode 100644 index 00000000000..ea971e7c03a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayOfEnums( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['StringEnum']: + return StringEnum + + def __new__( + cls, + arg: typing.Union[typing.Tuple['StringEnum'], typing.List['StringEnum']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayOfEnums': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'StringEnum': + return super().__getitem__(i) + +from petstore_api.components.schema.string_enum import StringEnum diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.pyi new file mode 100644 index 00000000000..ea971e7c03a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_enums.pyi @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayOfEnums( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['StringEnum']: + return StringEnum + + def __new__( + cls, + arg: typing.Union[typing.Tuple['StringEnum'], typing.List['StringEnum']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayOfEnums': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'StringEnum': + return super().__getitem__(i) + +from petstore_api.components.schema.string_enum import StringEnum diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.py new file mode 100644 index 00000000000..9c5a9b55d24 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayOfNumberOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class ArrayNumber( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayNumber': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "ArrayNumber": ArrayNumber, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + ArrayNumber: typing.Union[MetaOapg.properties.ArrayNumber, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ArrayOfNumberOnly': + return super().__new__( + cls, + *args, + ArrayNumber=ArrayNumber, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.pyi new file mode 100644 index 00000000000..9c5a9b55d24 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_of_number_only.pyi @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayOfNumberOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class ArrayNumber( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayNumber': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "ArrayNumber": ArrayNumber, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + ArrayNumber: typing.Union[MetaOapg.properties.ArrayNumber, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ArrayOfNumberOnly': + return super().__new__( + cls, + *args, + ArrayNumber=ArrayNumber, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.py new file mode 100644 index 00000000000..7a3d10d4fb4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class array_of_string( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_of_string': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class array_array_of_integer( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.Int64Schema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_array_of_integer': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class array_array_of_model( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['ReadOnlyFirst']: + return ReadOnlyFirst + + def __new__( + cls, + arg: typing.Union[typing.Tuple['ReadOnlyFirst'], typing.List['ReadOnlyFirst']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'ReadOnlyFirst': + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_array_of_model': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "array_of_string": array_of_string, + "array_array_of_integer": array_array_of_integer, + "array_array_of_model": array_array_of_model, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + array_of_string: typing.Union[MetaOapg.properties.array_of_string, list, tuple, schemas.Unset] = schemas.unset, + array_array_of_integer: typing.Union[MetaOapg.properties.array_array_of_integer, list, tuple, schemas.Unset] = schemas.unset, + array_array_of_model: typing.Union[MetaOapg.properties.array_array_of_model, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ArrayTest': + return super().__new__( + cls, + *args, + array_of_string=array_of_string, + array_array_of_integer=array_array_of_integer, + array_array_of_model=array_array_of_model, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.read_only_first import ReadOnlyFirst diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.pyi new file mode 100644 index 00000000000..7a3d10d4fb4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_test.pyi @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class array_of_string( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_of_string': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class array_array_of_integer( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.Int64Schema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_array_of_integer': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class array_array_of_model( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['ReadOnlyFirst']: + return ReadOnlyFirst + + def __new__( + cls, + arg: typing.Union[typing.Tuple['ReadOnlyFirst'], typing.List['ReadOnlyFirst']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'ReadOnlyFirst': + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_array_of_model': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "array_of_string": array_of_string, + "array_array_of_integer": array_array_of_integer, + "array_array_of_model": array_array_of_model, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + array_of_string: typing.Union[MetaOapg.properties.array_of_string, list, tuple, schemas.Unset] = schemas.unset, + array_array_of_integer: typing.Union[MetaOapg.properties.array_array_of_integer, list, tuple, schemas.Unset] = schemas.unset, + array_array_of_model: typing.Union[MetaOapg.properties.array_array_of_model, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ArrayTest': + return super().__new__( + cls, + *args, + array_of_string=array_of_string, + array_array_of_integer=array_array_of_integer, + array_array_of_model=array_array_of_model, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.read_only_first import ReadOnlyFirst diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.py new file mode 100644 index 00000000000..f68cb1a4c27 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayWithValidationsInItems( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + max_items = 2 + + + class items( + schemas.Int64Schema + ): + + + class MetaOapg: + format = 'int64' + inclusive_maximum = 7 + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayWithValidationsInItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.pyi new file mode 100644 index 00000000000..2f1d07e3287 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/array_with_validations_in_items.pyi @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ArrayWithValidationsInItems( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class items( + schemas.Int64Schema + ): + pass + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayWithValidationsInItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.py new file mode 100644 index 00000000000..b3d1c7d792d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Banana( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "lengthCm", + } + + class properties: + lengthCm = schemas.NumberSchema + __annotations__ = { + "lengthCm": lengthCm, + } + + lengthCm: MetaOapg.properties.lengthCm + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Banana': + return super().__new__( + cls, + *args, + lengthCm=lengthCm, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.pyi new file mode 100644 index 00000000000..b3d1c7d792d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana.pyi @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Banana( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "lengthCm", + } + + class properties: + lengthCm = schemas.NumberSchema + __annotations__ = { + "lengthCm": lengthCm, + } + + lengthCm: MetaOapg.properties.lengthCm + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Banana': + return super().__new__( + cls, + *args, + lengthCm=lengthCm, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.py new file mode 100644 index 00000000000..1fdfa7d34ac --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class BananaReq( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "lengthCm", + } + + class properties: + lengthCm = schemas.NumberSchema + sweet = schemas.BoolSchema + __annotations__ = { + "lengthCm": lengthCm, + "sweet": sweet, + } + additional_properties = schemas.NotAnyTypeSchema + + lengthCm: MetaOapg.properties.lengthCm + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["sweet"]) -> MetaOapg.properties.sweet: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], + sweet: typing.Union[MetaOapg.properties.sweet, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'BananaReq': + return super().__new__( + cls, + *args, + lengthCm=lengthCm, + sweet=sweet, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.pyi new file mode 100644 index 00000000000..1fdfa7d34ac --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/banana_req.pyi @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class BananaReq( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "lengthCm", + } + + class properties: + lengthCm = schemas.NumberSchema + sweet = schemas.BoolSchema + __annotations__ = { + "lengthCm": lengthCm, + "sweet": sweet, + } + additional_properties = schemas.NotAnyTypeSchema + + lengthCm: MetaOapg.properties.lengthCm + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["sweet"]) -> MetaOapg.properties.sweet: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + lengthCm: typing.Union[MetaOapg.properties.lengthCm, decimal.Decimal, int, float, ], + sweet: typing.Union[MetaOapg.properties.sweet, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'BananaReq': + return super().__new__( + cls, + *args, + lengthCm=lengthCm, + sweet=sweet, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.py new file mode 100644 index 00000000000..d100ad83c56 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +Bar = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.pyi new file mode 100644 index 00000000000..d100ad83c56 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/bar.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +Bar = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.py new file mode 100644 index 00000000000..528cfa498b0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class BasquePig( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "BasquePig": "BASQUE_PIG", + } + + @schemas.classproperty + def BASQUE_PIG(cls): + return cls("BasquePig") + __annotations__ = { + "className": className, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'BasquePig': + return super().__new__( + cls, + *args, + className=className, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.pyi new file mode 100644 index 00000000000..8b36451f849 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/basque_pig.pyi @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class BasquePig( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def BASQUE_PIG(cls): + return cls("BasquePig") + __annotations__ = { + "className": className, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'BasquePig': + return super().__new__( + cls, + *args, + className=className, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.py new file mode 100644 index 00000000000..6f667d4c0b4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +Boolean = schemas.BoolSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.pyi new file mode 100644 index 00000000000..6f667d4c0b4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +Boolean = schemas.BoolSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.py new file mode 100644 index 00000000000..66d5be71312 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class BooleanEnum( + schemas.EnumBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + schemas.BoolClass.TRUE: "TRUE", + } + + @schemas.classproperty + def TRUE(cls): + return cls(True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.pyi new file mode 100644 index 00000000000..69fe2e6af4e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/boolean_enum.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class BooleanEnum( + schemas.EnumBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def TRUE(cls): + return cls(True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.py new file mode 100644 index 00000000000..3dc195865d4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Capitalization( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + smallCamel = schemas.StrSchema + CapitalCamel = schemas.StrSchema + small_Snake = schemas.StrSchema + Capital_Snake = schemas.StrSchema + SCA_ETH_Flow_Points = schemas.StrSchema + ATT_NAME = schemas.StrSchema + __annotations__ = { + "smallCamel": smallCamel, + "CapitalCamel": CapitalCamel, + "small_Snake": small_Snake, + "Capital_Snake": Capital_Snake, + "SCA_ETH_Flow_Points": SCA_ETH_Flow_Points, + "ATT_NAME": ATT_NAME, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + smallCamel: typing.Union[MetaOapg.properties.smallCamel, str, schemas.Unset] = schemas.unset, + CapitalCamel: typing.Union[MetaOapg.properties.CapitalCamel, str, schemas.Unset] = schemas.unset, + small_Snake: typing.Union[MetaOapg.properties.small_Snake, str, schemas.Unset] = schemas.unset, + Capital_Snake: typing.Union[MetaOapg.properties.Capital_Snake, str, schemas.Unset] = schemas.unset, + SCA_ETH_Flow_Points: typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, str, schemas.Unset] = schemas.unset, + ATT_NAME: typing.Union[MetaOapg.properties.ATT_NAME, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Capitalization': + return super().__new__( + cls, + *args, + smallCamel=smallCamel, + CapitalCamel=CapitalCamel, + small_Snake=small_Snake, + Capital_Snake=Capital_Snake, + SCA_ETH_Flow_Points=SCA_ETH_Flow_Points, + ATT_NAME=ATT_NAME, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.pyi new file mode 100644 index 00000000000..3dc195865d4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/capitalization.pyi @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Capitalization( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + smallCamel = schemas.StrSchema + CapitalCamel = schemas.StrSchema + small_Snake = schemas.StrSchema + Capital_Snake = schemas.StrSchema + SCA_ETH_Flow_Points = schemas.StrSchema + ATT_NAME = schemas.StrSchema + __annotations__ = { + "smallCamel": smallCamel, + "CapitalCamel": CapitalCamel, + "small_Snake": small_Snake, + "Capital_Snake": Capital_Snake, + "SCA_ETH_Flow_Points": SCA_ETH_Flow_Points, + "ATT_NAME": ATT_NAME, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + smallCamel: typing.Union[MetaOapg.properties.smallCamel, str, schemas.Unset] = schemas.unset, + CapitalCamel: typing.Union[MetaOapg.properties.CapitalCamel, str, schemas.Unset] = schemas.unset, + small_Snake: typing.Union[MetaOapg.properties.small_Snake, str, schemas.Unset] = schemas.unset, + Capital_Snake: typing.Union[MetaOapg.properties.Capital_Snake, str, schemas.Unset] = schemas.unset, + SCA_ETH_Flow_Points: typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, str, schemas.Unset] = schemas.unset, + ATT_NAME: typing.Union[MetaOapg.properties.ATT_NAME, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Capitalization': + return super().__new__( + cls, + *args, + smallCamel=smallCamel, + CapitalCamel=CapitalCamel, + small_Snake=small_Snake, + Capital_Snake=Capital_Snake, + SCA_ETH_Flow_Points=SCA_ETH_Flow_Points, + ATT_NAME=ATT_NAME, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.py new file mode 100644 index 00000000000..9a29025d13c --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Cat( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + declawed = schemas.BoolSchema + __annotations__ = { + "declawed": declawed, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["declawed"]) -> MetaOapg.properties.declawed: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + declawed: typing.Union[MetaOapg.properties.declawed, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + declawed=declawed, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Animal, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Cat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.pyi new file mode 100644 index 00000000000..9a29025d13c --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/cat.pyi @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Cat( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + declawed = schemas.BoolSchema + __annotations__ = { + "declawed": declawed, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["declawed"]) -> MetaOapg.properties.declawed: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + declawed: typing.Union[MetaOapg.properties.declawed, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + declawed=declawed, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Animal, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Cat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/category.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/category.py new file mode 100644 index 00000000000..5537a4437bb --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/category.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Category( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "name", + } + + class properties: + name = schemas.StrSchema + id = schemas.Int64Schema + __annotations__ = { + "name": name, + "id": id, + } + + name: MetaOapg.properties.name + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + name: typing.Union[MetaOapg.properties.name, str, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Category': + return super().__new__( + cls, + *args, + name=name, + id=id, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/category.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/category.pyi new file mode 100644 index 00000000000..5537a4437bb --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/category.pyi @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Category( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "name", + } + + class properties: + name = schemas.StrSchema + id = schemas.Int64Schema + __annotations__ = { + "name": name, + "id": id, + } + + name: MetaOapg.properties.name + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + name: typing.Union[MetaOapg.properties.name, str, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Category': + return super().__new__( + cls, + *args, + name=name, + id=id, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.py new file mode 100644 index 00000000000..979f25b9e46 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ChildCat( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + name = schemas.StrSchema + __annotations__ = { + "name": name, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + name=name, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + ParentPet, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ChildCat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.pyi new file mode 100644 index 00000000000..979f25b9e46 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/child_cat.pyi @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ChildCat( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + name = schemas.StrSchema + __annotations__ = { + "name": name, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + name=name, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + ParentPet, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ChildCat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.py new file mode 100644 index 00000000000..75d36e823c2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ClassModel( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Model for testing model with "_class" property + """ + + + class MetaOapg: + + class properties: + _class = schemas.StrSchema + __annotations__ = { + "_class": _class, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["_class"]) -> MetaOapg.properties._class: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _class: typing.Union[MetaOapg.properties._class, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ClassModel': + return super().__new__( + cls, + *args, + _class=_class, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.pyi new file mode 100644 index 00000000000..75d36e823c2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/class_model.pyi @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ClassModel( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Model for testing model with "_class" property + """ + + + class MetaOapg: + + class properties: + _class = schemas.StrSchema + __annotations__ = { + "_class": _class, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["_class"]) -> MetaOapg.properties._class: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["_class", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _class: typing.Union[MetaOapg.properties._class, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ClassModel': + return super().__new__( + cls, + *args, + _class=_class, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/client.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/client.py new file mode 100644 index 00000000000..4c7c16b564e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/client.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Client( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + client = schemas.StrSchema + __annotations__ = { + "client": client, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["client"]) -> MetaOapg.properties.client: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["client", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["client", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + client: typing.Union[MetaOapg.properties.client, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Client': + return super().__new__( + cls, + *args, + client=client, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/client.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/client.pyi new file mode 100644 index 00000000000..4c7c16b564e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/client.pyi @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Client( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + client = schemas.StrSchema + __annotations__ = { + "client": client, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["client"]) -> MetaOapg.properties.client: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["client", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["client", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + client: typing.Union[MetaOapg.properties.client, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Client': + return super().__new__( + cls, + *args, + client=client, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.py new file mode 100644 index 00000000000..6a78019083a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComplexQuadrilateral( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class quadrilateralType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "ComplexQuadrilateral": "COMPLEX_QUADRILATERAL", + } + + @schemas.classproperty + def COMPLEX_QUADRILATERAL(cls): + return cls("ComplexQuadrilateral") + __annotations__ = { + "quadrilateralType": quadrilateralType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + quadrilateralType=quadrilateralType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + QuadrilateralInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComplexQuadrilateral': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.pyi new file mode 100644 index 00000000000..4b15e83b8a9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/complex_quadrilateral.pyi @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComplexQuadrilateral( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class quadrilateralType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def COMPLEX_QUADRILATERAL(cls): + return cls("ComplexQuadrilateral") + __annotations__ = { + "quadrilateralType": quadrilateralType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + quadrilateralType=quadrilateralType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + QuadrilateralInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComplexQuadrilateral': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.py new file mode 100644 index 00000000000..9e077ff0db9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedAnyOfDifferentTypesNoValidations( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + any_of_0 = schemas.DictSchema + any_of_1 = schemas.DateSchema + any_of_2 = schemas.DateTimeSchema + any_of_3 = schemas.BinarySchema + any_of_4 = schemas.StrSchema + any_of_5 = schemas.StrSchema + any_of_6 = schemas.DictSchema + any_of_7 = schemas.BoolSchema + any_of_8 = schemas.NoneSchema + + + class any_of_9( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'any_of_9': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + any_of_10 = schemas.NumberSchema + any_of_11 = schemas.Float32Schema + any_of_12 = schemas.Float64Schema + any_of_13 = schemas.IntSchema + any_of_14 = schemas.Int32Schema + any_of_15 = schemas.Int64Schema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + cls.any_of_3, + cls.any_of_4, + cls.any_of_5, + cls.any_of_6, + cls.any_of_7, + cls.any_of_8, + cls.any_of_9, + cls.any_of_10, + cls.any_of_11, + cls.any_of_12, + cls.any_of_13, + cls.any_of_14, + cls.any_of_15, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComposedAnyOfDifferentTypesNoValidations': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.pyi new file mode 100644 index 00000000000..9e077ff0db9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_any_of_different_types_no_validations.pyi @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedAnyOfDifferentTypesNoValidations( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + any_of_0 = schemas.DictSchema + any_of_1 = schemas.DateSchema + any_of_2 = schemas.DateTimeSchema + any_of_3 = schemas.BinarySchema + any_of_4 = schemas.StrSchema + any_of_5 = schemas.StrSchema + any_of_6 = schemas.DictSchema + any_of_7 = schemas.BoolSchema + any_of_8 = schemas.NoneSchema + + + class any_of_9( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'any_of_9': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + any_of_10 = schemas.NumberSchema + any_of_11 = schemas.Float32Schema + any_of_12 = schemas.Float64Schema + any_of_13 = schemas.IntSchema + any_of_14 = schemas.Int32Schema + any_of_15 = schemas.Int64Schema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + cls.any_of_2, + cls.any_of_3, + cls.any_of_4, + cls.any_of_5, + cls.any_of_6, + cls.any_of_7, + cls.any_of_8, + cls.any_of_9, + cls.any_of_10, + cls.any_of_11, + cls.any_of_12, + cls.any_of_13, + cls.any_of_14, + cls.any_of_15, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComposedAnyOfDifferentTypesNoValidations': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.py new file mode 100644 index 00000000000..41e7107528e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedArray( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedArray': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.pyi new file mode 100644 index 00000000000..41e7107528e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_array.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedArray( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedArray': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.py new file mode 100644 index 00000000000..4a42a8626d4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedBool( + schemas.ComposedBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[bool, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedBool': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.pyi new file mode 100644 index 00000000000..4a42a8626d4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_bool.pyi @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedBool( + schemas.ComposedBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[bool, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedBool': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.py new file mode 100644 index 00000000000..f442971abb0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedNone( + schemas.ComposedBase, + schemas.NoneSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedNone': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.pyi new file mode 100644 index 00000000000..f442971abb0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_none.pyi @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedNone( + schemas.ComposedBase, + schemas.NoneSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedNone': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.py new file mode 100644 index 00000000000..36f53dbf211 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedNumber( + schemas.ComposedBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[decimal.Decimal, int, float, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedNumber': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.pyi new file mode 100644 index 00000000000..36f53dbf211 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_number.pyi @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedNumber( + schemas.ComposedBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[decimal.Decimal, int, float, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedNumber': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.py new file mode 100644 index 00000000000..44171746f14 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedObject( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComposedObject': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.pyi new file mode 100644 index 00000000000..44171746f14 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_object.pyi @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedObject( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComposedObject': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.py new file mode 100644 index 00000000000..3c6d6fdb1bb --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedOneOfDifferentTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + this is a model that allows payloads of type object or number + """ + + + class MetaOapg: + one_of_2 = schemas.NoneSchema + one_of_3 = schemas.DateSchema + + + class one_of_4( + schemas.DictSchema + ): + + + class MetaOapg: + max_properties = 4 + min_properties = 4 + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_4': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_5( + schemas.ListSchema + ): + + + class MetaOapg: + max_items = 4 + min_items = 4 + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'one_of_5': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class one_of_6( + schemas.DateTimeSchema + ): + + + class MetaOapg: + format = 'date-time' + regex=[{ + 'pattern': r'^2020.*', # noqa: E501 + }] + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + NumberWithValidations, + Animal, + cls.one_of_2, + cls.one_of_3, + cls.one_of_4, + cls.one_of_5, + cls.one_of_6, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComposedOneOfDifferentTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal +from petstore_api.components.schema.number_with_validations import NumberWithValidations diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.pyi new file mode 100644 index 00000000000..5f4007ea502 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_one_of_different_types.pyi @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedOneOfDifferentTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + this is a model that allows payloads of type object or number + """ + + + class MetaOapg: + one_of_2 = schemas.NoneSchema + one_of_3 = schemas.DateSchema + + + class one_of_4( + schemas.DictSchema + ): + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_4': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_5( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'one_of_5': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class one_of_6( + schemas.DateTimeSchema + ): + pass + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + NumberWithValidations, + Animal, + cls.one_of_2, + cls.one_of_3, + cls.one_of_4, + cls.one_of_5, + cls.one_of_6, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ComposedOneOfDifferentTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal +from petstore_api.components.schema.number_with_validations import NumberWithValidations diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.py new file mode 100644 index 00000000000..50d61de1698 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedString( + schemas.ComposedBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedString': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.pyi new file mode 100644 index 00000000000..50d61de1698 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/composed_string.pyi @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ComposedString( + schemas.ComposedBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ComposedString': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.py new file mode 100644 index 00000000000..8714c9adcc7 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Currency( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "eur": "EUR", + "usd": "USD", + } + + @schemas.classproperty + def EUR(cls): + return cls("eur") + + @schemas.classproperty + def USD(cls): + return cls("usd") diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.pyi new file mode 100644 index 00000000000..7706629add2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/currency.pyi @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Currency( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def EUR(cls): + return cls("eur") + + @schemas.classproperty + def USD(cls): + return cls("usd") diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.py new file mode 100644 index 00000000000..bcffd8ff006 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class DanishPig( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "DanishPig": "DANISH_PIG", + } + + @schemas.classproperty + def DANISH_PIG(cls): + return cls("DanishPig") + __annotations__ = { + "className": className, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'DanishPig': + return super().__new__( + cls, + *args, + className=className, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.pyi new file mode 100644 index 00000000000..9f64db82744 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/danish_pig.pyi @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class DanishPig( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def DANISH_PIG(cls): + return cls("DanishPig") + __annotations__ = { + "className": className, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'DanishPig': + return super().__new__( + cls, + *args, + className=className, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.py new file mode 100644 index 00000000000..1a616cac271 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +DateTimeTest = schemas.DateTimeSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.pyi new file mode 100644 index 00000000000..1a616cac271 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_test.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +DateTimeTest = schemas.DateTimeSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.py new file mode 100644 index 00000000000..a5a7858195a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class DateTimeWithValidations( + schemas.DateTimeSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'date-time' + regex=[{ + 'pattern': r'^2020.*', # noqa: E501 + }] diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.pyi new file mode 100644 index 00000000000..2898b619005 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_time_with_validations.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class DateTimeWithValidations( + schemas.DateTimeSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.py new file mode 100644 index 00000000000..82d0122a279 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class DateWithValidations( + schemas.DateSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'date' + regex=[{ + 'pattern': r'^2020.*', # noqa: E501 + }] diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.pyi new file mode 100644 index 00000000000..52770358d18 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/date_with_validations.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class DateWithValidations( + schemas.DateSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.py new file mode 100644 index 00000000000..8e3b63175a4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +DecimalPayload = schemas.DecimalSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.pyi new file mode 100644 index 00000000000..8e3b63175a4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/decimal_payload.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +DecimalPayload = schemas.DecimalSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.py new file mode 100644 index 00000000000..c26bb8b2d2a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Dog( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + breed = schemas.StrSchema + __annotations__ = { + "breed": breed, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["breed"]) -> MetaOapg.properties.breed: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + breed: typing.Union[MetaOapg.properties.breed, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + breed=breed, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Animal, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Dog': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.pyi new file mode 100644 index 00000000000..c26bb8b2d2a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/dog.pyi @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Dog( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + breed = schemas.StrSchema + __annotations__ = { + "breed": breed, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["breed"]) -> MetaOapg.properties.breed: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["breed", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + breed: typing.Union[MetaOapg.properties.breed, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + breed=breed, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Animal, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Dog': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.py new file mode 100644 index 00000000000..896cacf7124 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Drawing( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def mainShape() -> typing.Type['Shape']: + return Shape + + @staticmethod + def shapeOrNull() -> typing.Type['ShapeOrNull']: + return ShapeOrNull + + @staticmethod + def nullableShape() -> typing.Type['NullableShape']: + return NullableShape + + + class shapes( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Shape']: + return Shape + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Shape'], typing.List['Shape']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'shapes': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Shape': + return super().__getitem__(i) + __annotations__ = { + "mainShape": mainShape, + "shapeOrNull": shapeOrNull, + "nullableShape": nullableShape, + "shapes": shapes, + } + + @staticmethod + def additional_properties() -> typing.Type['Fruit']: + return Fruit + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["mainShape"]) -> 'Shape': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapeOrNull"]) -> 'ShapeOrNull': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["nullableShape"]) -> 'NullableShape': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapes"]) -> MetaOapg.properties.shapes: ... + + @typing.overload + def __getitem__(self, name: str) -> 'Fruit': ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + mainShape: typing.Union['Shape', schemas.Unset] = schemas.unset, + shapeOrNull: typing.Union['ShapeOrNull', schemas.Unset] = schemas.unset, + nullableShape: typing.Union['NullableShape', schemas.Unset] = schemas.unset, + shapes: typing.Union[MetaOapg.properties.shapes, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: 'Fruit', + ) -> 'Drawing': + return super().__new__( + cls, + *args, + mainShape=mainShape, + shapeOrNull=shapeOrNull, + nullableShape=nullableShape, + shapes=shapes, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.fruit import Fruit +from petstore_api.components.schema.nullable_shape import NullableShape +from petstore_api.components.schema.shape import Shape +from petstore_api.components.schema.shape_or_null import ShapeOrNull diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.pyi new file mode 100644 index 00000000000..896cacf7124 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/drawing.pyi @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Drawing( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def mainShape() -> typing.Type['Shape']: + return Shape + + @staticmethod + def shapeOrNull() -> typing.Type['ShapeOrNull']: + return ShapeOrNull + + @staticmethod + def nullableShape() -> typing.Type['NullableShape']: + return NullableShape + + + class shapes( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Shape']: + return Shape + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Shape'], typing.List['Shape']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'shapes': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Shape': + return super().__getitem__(i) + __annotations__ = { + "mainShape": mainShape, + "shapeOrNull": shapeOrNull, + "nullableShape": nullableShape, + "shapes": shapes, + } + + @staticmethod + def additional_properties() -> typing.Type['Fruit']: + return Fruit + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["mainShape"]) -> 'Shape': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapeOrNull"]) -> 'ShapeOrNull': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["nullableShape"]) -> 'NullableShape': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapes"]) -> MetaOapg.properties.shapes: ... + + @typing.overload + def __getitem__(self, name: str) -> 'Fruit': ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + mainShape: typing.Union['Shape', schemas.Unset] = schemas.unset, + shapeOrNull: typing.Union['ShapeOrNull', schemas.Unset] = schemas.unset, + nullableShape: typing.Union['NullableShape', schemas.Unset] = schemas.unset, + shapes: typing.Union[MetaOapg.properties.shapes, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: 'Fruit', + ) -> 'Drawing': + return super().__new__( + cls, + *args, + mainShape=mainShape, + shapeOrNull=shapeOrNull, + nullableShape=nullableShape, + shapes=shapes, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.fruit import Fruit +from petstore_api.components.schema.nullable_shape import NullableShape +from petstore_api.components.schema.shape import Shape +from petstore_api.components.schema.shape_or_null import ShapeOrNull diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.py new file mode 100644 index 00000000000..1e7e0843da1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EnumArrays( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class just_symbol( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + ">=": "GREATER_THAN_EQUALS", + "$": "DOLLAR", + } + + @schemas.classproperty + def GREATER_THAN_EQUALS(cls): + return cls(">=") + + @schemas.classproperty + def DOLLAR(cls): + return cls("$") + + + class array_enum( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "fish": "FISH", + "crab": "CRAB", + } + + @schemas.classproperty + def FISH(cls): + return cls("fish") + + @schemas.classproperty + def CRAB(cls): + return cls("crab") + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_enum': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "just_symbol": just_symbol, + "array_enum": array_enum, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + just_symbol: typing.Union[MetaOapg.properties.just_symbol, str, schemas.Unset] = schemas.unset, + array_enum: typing.Union[MetaOapg.properties.array_enum, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EnumArrays': + return super().__new__( + cls, + *args, + just_symbol=just_symbol, + array_enum=array_enum, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.pyi new file mode 100644 index 00000000000..31b854f7d16 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_arrays.pyi @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EnumArrays( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class just_symbol( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def GREATER_THAN_EQUALS(cls): + return cls(">=") + + @schemas.classproperty + def DOLLAR(cls): + return cls("$") + + + class array_enum( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def FISH(cls): + return cls("fish") + + @schemas.classproperty + def CRAB(cls): + return cls("crab") + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_enum': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + __annotations__ = { + "just_symbol": just_symbol, + "array_enum": array_enum, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + just_symbol: typing.Union[MetaOapg.properties.just_symbol, str, schemas.Unset] = schemas.unset, + array_enum: typing.Union[MetaOapg.properties.array_enum, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EnumArrays': + return super().__new__( + cls, + *args, + just_symbol=just_symbol, + array_enum=array_enum, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.py new file mode 100644 index 00000000000..27018e19a6d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EnumClass( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "_abc": "_ABC", + "-efg": "EFG", + "(xyz)": "XYZ", + "COUNT_1M": "COUNT_1M", + "COUNT_50M": "COUNT_50M", + } + + @schemas.classproperty + def _ABC(cls): + return cls("_abc") + + @schemas.classproperty + def EFG(cls): + return cls("-efg") + + @schemas.classproperty + def XYZ(cls): + return cls("(xyz)") + + @schemas.classproperty + def COUNT_1M(cls): + return cls("COUNT_1M") + + @schemas.classproperty + def COUNT_50M(cls): + return cls("COUNT_50M") diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.pyi new file mode 100644 index 00000000000..7d43347fd84 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_class.pyi @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EnumClass( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def _ABC(cls): + return cls("_abc") + + @schemas.classproperty + def EFG(cls): + return cls("-efg") + + @schemas.classproperty + def XYZ(cls): + return cls("(xyz)") + + @schemas.classproperty + def COUNT_1M(cls): + return cls("COUNT_1M") + + @schemas.classproperty + def COUNT_50M(cls): + return cls("COUNT_50M") diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.py new file mode 100644 index 00000000000..4c30d47d95e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.py @@ -0,0 +1,276 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EnumTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "enum_string_required", + } + + class properties: + + + class enum_string_required( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "UPPER": "UPPER", + "lower": "LOWER", + "": "EMPTY", + } + + @schemas.classproperty + def UPPER(cls): + return cls("UPPER") + + @schemas.classproperty + def LOWER(cls): + return cls("lower") + + @schemas.classproperty + def EMPTY(cls): + return cls("") + + + class enum_string( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "UPPER": "UPPER", + "lower": "LOWER", + "": "EMPTY", + } + + @schemas.classproperty + def UPPER(cls): + return cls("UPPER") + + @schemas.classproperty + def LOWER(cls): + return cls("lower") + + @schemas.classproperty + def EMPTY(cls): + return cls("") + + + class enum_integer( + schemas.EnumBase, + schemas.Int32Schema + ): + + + class MetaOapg: + format = 'int32' + enum_value_to_name = { + 1: "POSITIVE_1", + -1: "NEGATIVE_1", + } + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def NEGATIVE_1(cls): + return cls(-1) + + + class enum_number( + schemas.EnumBase, + schemas.Float64Schema + ): + + + class MetaOapg: + format = 'double' + enum_value_to_name = { + 1.1: "POSITIVE_1_PT_1", + -1.2: "NEGATIVE_1_PT_2", + } + + @schemas.classproperty + def POSITIVE_1_PT_1(cls): + return cls(1.1) + + @schemas.classproperty + def NEGATIVE_1_PT_2(cls): + return cls(-1.2) + + @staticmethod + def stringEnum() -> typing.Type['StringEnum']: + return StringEnum + + @staticmethod + def IntegerEnum() -> typing.Type['IntegerEnum']: + return IntegerEnum + + @staticmethod + def StringEnumWithDefaultValue() -> typing.Type['StringEnumWithDefaultValue']: + return StringEnumWithDefaultValue + + @staticmethod + def IntegerEnumWithDefaultValue() -> typing.Type['IntegerEnumWithDefaultValue']: + return IntegerEnumWithDefaultValue + + @staticmethod + def IntegerEnumOneValue() -> typing.Type['IntegerEnumOneValue']: + return IntegerEnumOneValue + __annotations__ = { + "enum_string_required": enum_string_required, + "enum_string": enum_string, + "enum_integer": enum_integer, + "enum_number": enum_number, + "stringEnum": stringEnum, + "IntegerEnum": IntegerEnum, + "StringEnumWithDefaultValue": StringEnumWithDefaultValue, + "IntegerEnumWithDefaultValue": IntegerEnumWithDefaultValue, + "IntegerEnumOneValue": IntegerEnumOneValue, + } + + enum_string_required: MetaOapg.properties.enum_string_required + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["stringEnum"]) -> 'StringEnum': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["IntegerEnum"]) -> 'IntegerEnum': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + enum_string_required: typing.Union[MetaOapg.properties.enum_string_required, str, ], + enum_string: typing.Union[MetaOapg.properties.enum_string, str, schemas.Unset] = schemas.unset, + enum_integer: typing.Union[MetaOapg.properties.enum_integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, + enum_number: typing.Union[MetaOapg.properties.enum_number, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + stringEnum: typing.Union['StringEnum', schemas.Unset] = schemas.unset, + IntegerEnum: typing.Union['IntegerEnum', schemas.Unset] = schemas.unset, + StringEnumWithDefaultValue: typing.Union['StringEnumWithDefaultValue', schemas.Unset] = schemas.unset, + IntegerEnumWithDefaultValue: typing.Union['IntegerEnumWithDefaultValue', schemas.Unset] = schemas.unset, + IntegerEnumOneValue: typing.Union['IntegerEnumOneValue', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EnumTest': + return super().__new__( + cls, + *args, + enum_string_required=enum_string_required, + enum_string=enum_string, + enum_integer=enum_integer, + enum_number=enum_number, + stringEnum=stringEnum, + IntegerEnum=IntegerEnum, + StringEnumWithDefaultValue=StringEnumWithDefaultValue, + IntegerEnumWithDefaultValue=IntegerEnumWithDefaultValue, + IntegerEnumOneValue=IntegerEnumOneValue, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.integer_enum import IntegerEnum +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue +from petstore_api.components.schema.integer_enum_with_default_value import IntegerEnumWithDefaultValue +from petstore_api.components.schema.string_enum import StringEnum +from petstore_api.components.schema.string_enum_with_default_value import StringEnumWithDefaultValue diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.pyi new file mode 100644 index 00000000000..bcc9fcf737a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/enum_test.pyi @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EnumTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "enum_string_required", + } + + class properties: + + + class enum_string_required( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def UPPER(cls): + return cls("UPPER") + + @schemas.classproperty + def LOWER(cls): + return cls("lower") + + @schemas.classproperty + def EMPTY(cls): + return cls("") + + + class enum_string( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def UPPER(cls): + return cls("UPPER") + + @schemas.classproperty + def LOWER(cls): + return cls("lower") + + @schemas.classproperty + def EMPTY(cls): + return cls("") + + + class enum_integer( + schemas.EnumBase, + schemas.Int32Schema + ): + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def NEGATIVE_1(cls): + return cls(-1) + + + class enum_number( + schemas.EnumBase, + schemas.Float64Schema + ): + + @schemas.classproperty + def POSITIVE_1_PT_1(cls): + return cls(1.1) + + @schemas.classproperty + def NEGATIVE_1_PT_2(cls): + return cls(-1.2) + + @staticmethod + def stringEnum() -> typing.Type['StringEnum']: + return StringEnum + + @staticmethod + def IntegerEnum() -> typing.Type['IntegerEnum']: + return IntegerEnum + + @staticmethod + def StringEnumWithDefaultValue() -> typing.Type['StringEnumWithDefaultValue']: + return StringEnumWithDefaultValue + + @staticmethod + def IntegerEnumWithDefaultValue() -> typing.Type['IntegerEnumWithDefaultValue']: + return IntegerEnumWithDefaultValue + + @staticmethod + def IntegerEnumOneValue() -> typing.Type['IntegerEnumOneValue']: + return IntegerEnumOneValue + __annotations__ = { + "enum_string_required": enum_string_required, + "enum_string": enum_string, + "enum_integer": enum_integer, + "enum_number": enum_number, + "stringEnum": stringEnum, + "IntegerEnum": IntegerEnum, + "StringEnumWithDefaultValue": StringEnumWithDefaultValue, + "IntegerEnumWithDefaultValue": IntegerEnumWithDefaultValue, + "IntegerEnumOneValue": IntegerEnumOneValue, + } + + enum_string_required: MetaOapg.properties.enum_string_required + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["stringEnum"]) -> 'StringEnum': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["IntegerEnum"]) -> 'IntegerEnum': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + enum_string_required: typing.Union[MetaOapg.properties.enum_string_required, str, ], + enum_string: typing.Union[MetaOapg.properties.enum_string, str, schemas.Unset] = schemas.unset, + enum_integer: typing.Union[MetaOapg.properties.enum_integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, + enum_number: typing.Union[MetaOapg.properties.enum_number, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + stringEnum: typing.Union['StringEnum', schemas.Unset] = schemas.unset, + IntegerEnum: typing.Union['IntegerEnum', schemas.Unset] = schemas.unset, + StringEnumWithDefaultValue: typing.Union['StringEnumWithDefaultValue', schemas.Unset] = schemas.unset, + IntegerEnumWithDefaultValue: typing.Union['IntegerEnumWithDefaultValue', schemas.Unset] = schemas.unset, + IntegerEnumOneValue: typing.Union['IntegerEnumOneValue', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EnumTest': + return super().__new__( + cls, + *args, + enum_string_required=enum_string_required, + enum_string=enum_string, + enum_integer=enum_integer, + enum_number=enum_number, + stringEnum=stringEnum, + IntegerEnum=IntegerEnum, + StringEnumWithDefaultValue=StringEnumWithDefaultValue, + IntegerEnumWithDefaultValue=IntegerEnumWithDefaultValue, + IntegerEnumOneValue=IntegerEnumOneValue, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.integer_enum import IntegerEnum +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue +from petstore_api.components.schema.integer_enum_with_default_value import IntegerEnumWithDefaultValue +from petstore_api.components.schema.string_enum import StringEnum +from petstore_api.components.schema.string_enum_with_default_value import StringEnumWithDefaultValue diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.py new file mode 100644 index 00000000000..432f064f32c --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EquilateralTriangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class triangleType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "EquilateralTriangle": "EQUILATERAL_TRIANGLE", + } + + @schemas.classproperty + def EQUILATERAL_TRIANGLE(cls): + return cls("EquilateralTriangle") + __annotations__ = { + "triangleType": triangleType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + TriangleInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EquilateralTriangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.pyi new file mode 100644 index 00000000000..2e63820cd22 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/equilateral_triangle.pyi @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class EquilateralTriangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class triangleType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def EQUILATERAL_TRIANGLE(cls): + return cls("EquilateralTriangle") + __annotations__ = { + "triangleType": triangleType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + TriangleInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EquilateralTriangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/file.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file.py new file mode 100644 index 00000000000..886f7a62d34 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class File( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Must be named `File` for test. + """ + + + class MetaOapg: + + class properties: + sourceURI = schemas.StrSchema + __annotations__ = { + "sourceURI": sourceURI, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + sourceURI: typing.Union[MetaOapg.properties.sourceURI, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'File': + return super().__new__( + cls, + *args, + sourceURI=sourceURI, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/file.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file.pyi new file mode 100644 index 00000000000..886f7a62d34 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file.pyi @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class File( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Must be named `File` for test. + """ + + + class MetaOapg: + + class properties: + sourceURI = schemas.StrSchema + __annotations__ = { + "sourceURI": sourceURI, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + sourceURI: typing.Union[MetaOapg.properties.sourceURI, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'File': + return super().__new__( + cls, + *args, + sourceURI=sourceURI, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.py new file mode 100644 index 00000000000..dd962ccc693 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FileSchemaTestClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def file() -> typing.Type['File']: + return File + + + class files( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['File']: + return File + + def __new__( + cls, + arg: typing.Union[typing.Tuple['File'], typing.List['File']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'files': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'File': + return super().__getitem__(i) + __annotations__ = { + "file": file, + "files": files, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["file"]) -> 'File': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union['File', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + file: typing.Union['File', schemas.Unset] = schemas.unset, + files: typing.Union[MetaOapg.properties.files, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FileSchemaTestClass': + return super().__new__( + cls, + *args, + file=file, + files=files, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.file import File diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.pyi new file mode 100644 index 00000000000..dd962ccc693 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/file_schema_test_class.pyi @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FileSchemaTestClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def file() -> typing.Type['File']: + return File + + + class files( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['File']: + return File + + def __new__( + cls, + arg: typing.Union[typing.Tuple['File'], typing.List['File']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'files': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'File': + return super().__getitem__(i) + __annotations__ = { + "file": file, + "files": files, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["file"]) -> 'File': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union['File', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + file: typing.Union['File', schemas.Unset] = schemas.unset, + files: typing.Union[MetaOapg.properties.files, list, tuple, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FileSchemaTestClass': + return super().__new__( + cls, + *args, + file=file, + files=files, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.file import File diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.py new file mode 100644 index 00000000000..68d3cee097d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Foo( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def bar() -> typing.Type['Bar']: + return Bar + __annotations__ = { + "bar": bar, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> 'Bar': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union['Bar', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union['Bar', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Foo': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.bar import Bar diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.pyi new file mode 100644 index 00000000000..68d3cee097d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/foo.pyi @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Foo( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def bar() -> typing.Type['Bar']: + return Bar + __annotations__ = { + "bar": bar, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> 'Bar': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union['Bar', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union['Bar', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Foo': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.bar import Bar diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.py new file mode 100644 index 00000000000..b16b10a0488 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.py @@ -0,0 +1,406 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FormatTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "date", + "number", + "password", + "byte", + } + + class properties: + + + class number( + schemas.NumberSchema + ): + + + class MetaOapg: + inclusive_maximum = 543.2 + inclusive_minimum = 32.1 + multiple_of = 32.5 + byte = schemas.StrSchema + date = schemas.DateSchema + + + class password( + schemas.StrSchema + ): + + + class MetaOapg: + format = 'password' + max_length = 64 + min_length = 10 + + + class integer( + schemas.IntSchema + ): + + + class MetaOapg: + inclusive_maximum = 100 + inclusive_minimum = 10 + multiple_of = 2 + int32 = schemas.Int32Schema + + + class int32withValidations( + schemas.Int32Schema + ): + + + class MetaOapg: + format = 'int32' + inclusive_maximum = 200 + inclusive_minimum = 20 + int64 = schemas.Int64Schema + + + class _float( + schemas.Float32Schema + ): + + + class MetaOapg: + format = 'float' + inclusive_maximum = 987.6 + inclusive_minimum = 54.3 + float32 = schemas.Float32Schema + + + class double( + schemas.Float64Schema + ): + + + class MetaOapg: + format = 'double' + inclusive_maximum = 123.4 + inclusive_minimum = 67.8 + float64 = schemas.Float64Schema + + + class arrayWithUniqueItems( + schemas.ListSchema + ): + + + class MetaOapg: + unique_items = True + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'arrayWithUniqueItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class string( + schemas.StrSchema + ): + + + class MetaOapg: + regex=[{ + 'pattern': r'[a-z]', # noqa: E501 + 'flags': ( + re.IGNORECASE + ) + }] + binary = schemas.BinarySchema + dateTime = schemas.DateTimeSchema + uuid = schemas.UUIDSchema + uuidNoExample = schemas.UUIDSchema + + + class pattern_with_digits( + schemas.StrSchema + ): + + + class MetaOapg: + regex=[{ + 'pattern': r'^\d{10}$', # noqa: E501 + }] + + + class pattern_with_digits_and_delimiter( + schemas.StrSchema + ): + + + class MetaOapg: + regex=[{ + 'pattern': r'^image_\d{1,3}$', # noqa: E501 + 'flags': ( + re.IGNORECASE + ) + }] + noneProp = schemas.NoneSchema + __annotations__ = { + "number": number, + "byte": byte, + "date": date, + "password": password, + "integer": integer, + "int32": int32, + "int32withValidations": int32withValidations, + "int64": int64, + "float": _float, + "float32": float32, + "double": double, + "float64": float64, + "arrayWithUniqueItems": arrayWithUniqueItems, + "string": string, + "binary": binary, + "dateTime": dateTime, + "uuid": uuid, + "uuidNoExample": uuidNoExample, + "pattern_with_digits": pattern_with_digits, + "pattern_with_digits_and_delimiter": pattern_with_digits_and_delimiter, + "noneProp": noneProp, + } + + date: MetaOapg.properties.date + number: MetaOapg.properties.number + password: MetaOapg.properties.password + byte: MetaOapg.properties.byte + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float32"]) -> MetaOapg.properties.float32: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float64"]) -> MetaOapg.properties.float64: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + date: typing.Union[MetaOapg.properties.date, str, date, ], + number: typing.Union[MetaOapg.properties.number, decimal.Decimal, int, float, ], + password: typing.Union[MetaOapg.properties.password, str, ], + byte: typing.Union[MetaOapg.properties.byte, str, ], + integer: typing.Union[MetaOapg.properties.integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, + int32: typing.Union[MetaOapg.properties.int32, decimal.Decimal, int, schemas.Unset] = schemas.unset, + int32withValidations: typing.Union[MetaOapg.properties.int32withValidations, decimal.Decimal, int, schemas.Unset] = schemas.unset, + int64: typing.Union[MetaOapg.properties.int64, decimal.Decimal, int, schemas.Unset] = schemas.unset, + float32: typing.Union[MetaOapg.properties.float32, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + double: typing.Union[MetaOapg.properties.double, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + float64: typing.Union[MetaOapg.properties.float64, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + arrayWithUniqueItems: typing.Union[MetaOapg.properties.arrayWithUniqueItems, list, tuple, schemas.Unset] = schemas.unset, + string: typing.Union[MetaOapg.properties.string, str, schemas.Unset] = schemas.unset, + binary: typing.Union[MetaOapg.properties.binary, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, + uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, + uuidNoExample: typing.Union[MetaOapg.properties.uuidNoExample, str, uuid.UUID, schemas.Unset] = schemas.unset, + pattern_with_digits: typing.Union[MetaOapg.properties.pattern_with_digits, str, schemas.Unset] = schemas.unset, + pattern_with_digits_and_delimiter: typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, str, schemas.Unset] = schemas.unset, + noneProp: typing.Union[MetaOapg.properties.noneProp, None, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FormatTest': + return super().__new__( + cls, + *args, + date=date, + number=number, + password=password, + byte=byte, + integer=integer, + int32=int32, + int32withValidations=int32withValidations, + int64=int64, + float32=float32, + double=double, + float64=float64, + arrayWithUniqueItems=arrayWithUniqueItems, + string=string, + binary=binary, + dateTime=dateTime, + uuid=uuid, + uuidNoExample=uuidNoExample, + pattern_with_digits=pattern_with_digits, + pattern_with_digits_and_delimiter=pattern_with_digits_and_delimiter, + noneProp=noneProp, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.pyi new file mode 100644 index 00000000000..dc49d47fd8d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/format_test.pyi @@ -0,0 +1,354 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FormatTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "date", + "number", + "password", + "byte", + } + + class properties: + + + class number( + schemas.NumberSchema + ): + pass + byte = schemas.StrSchema + date = schemas.DateSchema + + + class password( + schemas.StrSchema + ): + pass + + + class integer( + schemas.IntSchema + ): + pass + int32 = schemas.Int32Schema + + + class int32withValidations( + schemas.Int32Schema + ): + pass + int64 = schemas.Int64Schema + + + class _float( + schemas.Float32Schema + ): + pass + float32 = schemas.Float32Schema + + + class double( + schemas.Float64Schema + ): + pass + float64 = schemas.Float64Schema + + + class arrayWithUniqueItems( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'arrayWithUniqueItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class string( + schemas.StrSchema + ): + pass + binary = schemas.BinarySchema + dateTime = schemas.DateTimeSchema + uuid = schemas.UUIDSchema + uuidNoExample = schemas.UUIDSchema + + + class pattern_with_digits( + schemas.StrSchema + ): + pass + + + class pattern_with_digits_and_delimiter( + schemas.StrSchema + ): + pass + noneProp = schemas.NoneSchema + __annotations__ = { + "number": number, + "byte": byte, + "date": date, + "password": password, + "integer": integer, + "int32": int32, + "int32withValidations": int32withValidations, + "int64": int64, + "float": _float, + "float32": float32, + "double": double, + "float64": float64, + "arrayWithUniqueItems": arrayWithUniqueItems, + "string": string, + "binary": binary, + "dateTime": dateTime, + "uuid": uuid, + "uuidNoExample": uuidNoExample, + "pattern_with_digits": pattern_with_digits, + "pattern_with_digits_and_delimiter": pattern_with_digits_and_delimiter, + "noneProp": noneProp, + } + + date: MetaOapg.properties.date + number: MetaOapg.properties.number + password: MetaOapg.properties.password + byte: MetaOapg.properties.byte + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float32"]) -> MetaOapg.properties.float32: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["float64"]) -> MetaOapg.properties.float64: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + date: typing.Union[MetaOapg.properties.date, str, date, ], + number: typing.Union[MetaOapg.properties.number, decimal.Decimal, int, float, ], + password: typing.Union[MetaOapg.properties.password, str, ], + byte: typing.Union[MetaOapg.properties.byte, str, ], + integer: typing.Union[MetaOapg.properties.integer, decimal.Decimal, int, schemas.Unset] = schemas.unset, + int32: typing.Union[MetaOapg.properties.int32, decimal.Decimal, int, schemas.Unset] = schemas.unset, + int32withValidations: typing.Union[MetaOapg.properties.int32withValidations, decimal.Decimal, int, schemas.Unset] = schemas.unset, + int64: typing.Union[MetaOapg.properties.int64, decimal.Decimal, int, schemas.Unset] = schemas.unset, + float32: typing.Union[MetaOapg.properties.float32, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + double: typing.Union[MetaOapg.properties.double, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + float64: typing.Union[MetaOapg.properties.float64, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + arrayWithUniqueItems: typing.Union[MetaOapg.properties.arrayWithUniqueItems, list, tuple, schemas.Unset] = schemas.unset, + string: typing.Union[MetaOapg.properties.string, str, schemas.Unset] = schemas.unset, + binary: typing.Union[MetaOapg.properties.binary, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, + uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, + uuidNoExample: typing.Union[MetaOapg.properties.uuidNoExample, str, uuid.UUID, schemas.Unset] = schemas.unset, + pattern_with_digits: typing.Union[MetaOapg.properties.pattern_with_digits, str, schemas.Unset] = schemas.unset, + pattern_with_digits_and_delimiter: typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, str, schemas.Unset] = schemas.unset, + noneProp: typing.Union[MetaOapg.properties.noneProp, None, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FormatTest': + return super().__new__( + cls, + *args, + date=date, + number=number, + password=password, + byte=byte, + integer=integer, + int32=int32, + int32withValidations=int32withValidations, + int64=int64, + float32=float32, + double=double, + float64=float64, + arrayWithUniqueItems=arrayWithUniqueItems, + string=string, + binary=binary, + dateTime=dateTime, + uuid=uuid, + uuidNoExample=uuidNoExample, + pattern_with_digits=pattern_with_digits, + pattern_with_digits_and_delimiter=pattern_with_digits_and_delimiter, + noneProp=noneProp, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.py new file mode 100644 index 00000000000..556b85187cd --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FromSchema( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + data = schemas.StrSchema + id = schemas.IntSchema + __annotations__ = { + "data": data, + "id": id, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + data: typing.Union[MetaOapg.properties.data, str, schemas.Unset] = schemas.unset, + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FromSchema': + return super().__new__( + cls, + *args, + data=data, + id=id, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.pyi new file mode 100644 index 00000000000..556b85187cd --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/from_schema.pyi @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FromSchema( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + data = schemas.StrSchema + id = schemas.IntSchema + __annotations__ = { + "data": data, + "id": id, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["data"]) -> MetaOapg.properties.data: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["data"]) -> typing.Union[MetaOapg.properties.data, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["data", "id", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + data: typing.Union[MetaOapg.properties.data, str, schemas.Unset] = schemas.unset, + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FromSchema': + return super().__new__( + cls, + *args, + data=data, + id=id, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.py new file mode 100644 index 00000000000..f6ef0853554 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Fruit( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + color = schemas.StrSchema + __annotations__ = { + "color": color, + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Apple, + Banana, + ] + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Fruit': + return super().__new__( + cls, + *args, + color=color, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.apple import Apple +from petstore_api.components.schema.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.pyi new file mode 100644 index 00000000000..f6ef0853554 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit.pyi @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Fruit( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + color = schemas.StrSchema + __annotations__ = { + "color": color, + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Apple, + Banana, + ] + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Fruit': + return super().__new__( + cls, + *args, + color=color, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.apple import Apple +from petstore_api.components.schema.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.py new file mode 100644 index 00000000000..bb2c8fcd777 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FruitReq( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + one_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + AppleReq, + BananaReq, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FruitReq': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.apple_req import AppleReq +from petstore_api.components.schema.banana_req import BananaReq diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.pyi new file mode 100644 index 00000000000..bb2c8fcd777 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/fruit_req.pyi @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class FruitReq( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + one_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + AppleReq, + BananaReq, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'FruitReq': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.apple_req import AppleReq +from petstore_api.components.schema.banana_req import BananaReq diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.py new file mode 100644 index 00000000000..3a3c7762db8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class GmFruit( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + color = schemas.StrSchema + __annotations__ = { + "color": color, + } + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Apple, + Banana, + ] + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GmFruit': + return super().__new__( + cls, + *args, + color=color, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.apple import Apple +from petstore_api.components.schema.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.pyi new file mode 100644 index 00000000000..3a3c7762db8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/gm_fruit.pyi @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class GmFruit( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + color = schemas.StrSchema + __annotations__ = { + "color": color, + } + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Apple, + Banana, + ] + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + color: typing.Union[MetaOapg.properties.color, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GmFruit': + return super().__new__( + cls, + *args, + color=color, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.apple import Apple +from petstore_api.components.schema.banana import Banana diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.py new file mode 100644 index 00000000000..235eb386557 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class GrandparentAnimal( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "pet_type", + } + + @staticmethod + def discriminator(): + return { + 'pet_type': { + 'ChildCat': ChildCat, + 'ParentPet': ParentPet, + } + } + + class properties: + pet_type = schemas.StrSchema + __annotations__ = { + "pet_type": pet_type, + } + + pet_type: MetaOapg.properties.pet_type + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + pet_type: typing.Union[MetaOapg.properties.pet_type, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GrandparentAnimal': + return super().__new__( + cls, + *args, + pet_type=pet_type, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.child_cat import ChildCat +from petstore_api.components.schema.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.pyi new file mode 100644 index 00000000000..235eb386557 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/grandparent_animal.pyi @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class GrandparentAnimal( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "pet_type", + } + + @staticmethod + def discriminator(): + return { + 'pet_type': { + 'ChildCat': ChildCat, + 'ParentPet': ParentPet, + } + } + + class properties: + pet_type = schemas.StrSchema + __annotations__ = { + "pet_type": pet_type, + } + + pet_type: MetaOapg.properties.pet_type + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + pet_type: typing.Union[MetaOapg.properties.pet_type, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'GrandparentAnimal': + return super().__new__( + cls, + *args, + pet_type=pet_type, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.child_cat import ChildCat +from petstore_api.components.schema.parent_pet import ParentPet diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.py new file mode 100644 index 00000000000..f56f17aad80 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class HasOnlyReadOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + bar = schemas.StrSchema + foo = schemas.StrSchema + __annotations__ = { + "bar": bar, + "foo": foo, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HasOnlyReadOnly': + return super().__new__( + cls, + *args, + bar=bar, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.pyi new file mode 100644 index 00000000000..f56f17aad80 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/has_only_read_only.pyi @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class HasOnlyReadOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + bar = schemas.StrSchema + foo = schemas.StrSchema + __annotations__ = { + "bar": bar, + "foo": foo, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HasOnlyReadOnly': + return super().__new__( + cls, + *args, + bar=bar, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.py new file mode 100644 index 00000000000..840a5ad96f1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class HealthCheckResult( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. + """ + + + class MetaOapg: + + class properties: + + + class NullableMessage( + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NullableMessage': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + __annotations__ = { + "NullableMessage": NullableMessage, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + NullableMessage: typing.Union[MetaOapg.properties.NullableMessage, None, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HealthCheckResult': + return super().__new__( + cls, + *args, + NullableMessage=NullableMessage, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.pyi new file mode 100644 index 00000000000..840a5ad96f1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/health_check_result.pyi @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class HealthCheckResult( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. + """ + + + class MetaOapg: + + class properties: + + + class NullableMessage( + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NullableMessage': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + __annotations__ = { + "NullableMessage": NullableMessage, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + NullableMessage: typing.Union[MetaOapg.properties.NullableMessage, None, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HealthCheckResult': + return super().__new__( + cls, + *args, + NullableMessage=NullableMessage, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.py new file mode 100644 index 00000000000..18cd8df6434 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnum( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 0: "POSITIVE_0", + 1: "POSITIVE_1", + 2: "POSITIVE_2", + } + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def POSITIVE_2(cls): + return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.pyi new file mode 100644 index 00000000000..5f88412337f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum.pyi @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnum( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def POSITIVE_2(cls): + return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.py new file mode 100644 index 00000000000..615680bd126 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnumBig( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 10: "POSITIVE_10", + 11: "POSITIVE_11", + 12: "POSITIVE_12", + } + + @schemas.classproperty + def POSITIVE_10(cls): + return cls(10) + + @schemas.classproperty + def POSITIVE_11(cls): + return cls(11) + + @schemas.classproperty + def POSITIVE_12(cls): + return cls(12) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.pyi new file mode 100644 index 00000000000..939443fcaaa --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_big.pyi @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnumBig( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_10(cls): + return cls(10) + + @schemas.classproperty + def POSITIVE_11(cls): + return cls(11) + + @schemas.classproperty + def POSITIVE_12(cls): + return cls(12) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.py new file mode 100644 index 00000000000..6ab7f2f2130 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnumOneValue( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 0: "POSITIVE_0", + } + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.pyi new file mode 100644 index 00000000000..1e911e5f24b --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_one_value.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnumOneValue( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.py new file mode 100644 index 00000000000..87b44b36f16 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnumWithDefaultValue( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 0: "POSITIVE_0", + 1: "POSITIVE_1", + 2: "POSITIVE_2", + } + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def POSITIVE_2(cls): + return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.pyi new file mode 100644 index 00000000000..9ecbb8d1630 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_enum_with_default_value.pyi @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerEnumWithDefaultValue( + schemas.EnumBase, + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def POSITIVE_2(cls): + return cls(2) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.py new file mode 100644 index 00000000000..ac4541fad1f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerMax10( + schemas.Int64Schema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'int64' + inclusive_maximum = 10 diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.pyi new file mode 100644 index 00000000000..7e0c4ee3373 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_max10.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerMax10( + schemas.Int64Schema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.py new file mode 100644 index 00000000000..8424c1012a0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerMin15( + schemas.Int64Schema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'int64' + inclusive_minimum = 15 diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.pyi new file mode 100644 index 00000000000..73d4df6c230 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/integer_min15.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IntegerMin15( + schemas.Int64Schema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.py new file mode 100644 index 00000000000..cdd2c0a8fa9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IsoscelesTriangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class triangleType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "IsoscelesTriangle": "ISOSCELES_TRIANGLE", + } + + @schemas.classproperty + def ISOSCELES_TRIANGLE(cls): + return cls("IsoscelesTriangle") + __annotations__ = { + "triangleType": triangleType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + TriangleInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'IsoscelesTriangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.pyi new file mode 100644 index 00000000000..52ae719a82d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/isosceles_triangle.pyi @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class IsoscelesTriangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class triangleType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def ISOSCELES_TRIANGLE(cls): + return cls("IsoscelesTriangle") + __annotations__ = { + "triangleType": triangleType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + TriangleInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'IsoscelesTriangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.py new file mode 100644 index 00000000000..675bfa56567 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequest( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class items( + schemas.ComposedSchema, + ): + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + JSONPatchRequestAddReplaceTest, + JSONPatchRequestRemove, + JSONPatchRequestMoveCopy, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequest': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + +from petstore_api.components.schema.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest +from petstore_api.components.schema.json_patch_request_move_copy import JSONPatchRequestMoveCopy +from petstore_api.components.schema.json_patch_request_remove import JSONPatchRequestRemove diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.pyi new file mode 100644 index 00000000000..675bfa56567 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request.pyi @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequest( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class items( + schemas.ComposedSchema, + ): + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + JSONPatchRequestAddReplaceTest, + JSONPatchRequestRemove, + JSONPatchRequestMoveCopy, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequest': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + +from petstore_api.components.schema.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest +from petstore_api.components.schema.json_patch_request_move_copy import JSONPatchRequestMoveCopy +from petstore_api.components.schema.json_patch_request_remove import JSONPatchRequestRemove diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.py new file mode 100644 index 00000000000..bf95ea98af7 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequestAddReplaceTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "op", + "path", + "value", + } + + class properties: + path = schemas.StrSchema + value = schemas.AnyTypeSchema + + + class op( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "add": "ADD", + "replace": "REPLACE", + "test": "TEST", + } + + @schemas.classproperty + def ADD(cls): + return cls("add") + + @schemas.classproperty + def REPLACE(cls): + return cls("replace") + + @schemas.classproperty + def TEST(cls): + return cls("test") + __annotations__ = { + "path": path, + "value": value, + "op": op, + } + additional_properties = schemas.NotAnyTypeSchema + + op: MetaOapg.properties.op + path: MetaOapg.properties.path + value: MetaOapg.properties.value + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + op: typing.Union[MetaOapg.properties.op, str, ], + path: typing.Union[MetaOapg.properties.path, str, ], + value: typing.Union[MetaOapg.properties.value, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequestAddReplaceTest': + return super().__new__( + cls, + *args, + op=op, + path=path, + value=value, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.pyi new file mode 100644 index 00000000000..50e1a870bdc --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_add_replace_test.pyi @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequestAddReplaceTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "op", + "path", + "value", + } + + class properties: + path = schemas.StrSchema + value = schemas.AnyTypeSchema + + + class op( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def ADD(cls): + return cls("add") + + @schemas.classproperty + def REPLACE(cls): + return cls("replace") + + @schemas.classproperty + def TEST(cls): + return cls("test") + __annotations__ = { + "path": path, + "value": value, + "op": op, + } + additional_properties = schemas.NotAnyTypeSchema + + op: MetaOapg.properties.op + path: MetaOapg.properties.path + value: MetaOapg.properties.value + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + op: typing.Union[MetaOapg.properties.op, str, ], + path: typing.Union[MetaOapg.properties.path, str, ], + value: typing.Union[MetaOapg.properties.value, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequestAddReplaceTest': + return super().__new__( + cls, + *args, + op=op, + path=path, + value=value, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.py new file mode 100644 index 00000000000..0b84fba0970 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequestMoveCopy( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "op", + "path", + "from", + } + + class properties: + _from = schemas.StrSchema + path = schemas.StrSchema + + + class op( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "move": "MOVE", + "copy": "COPY", + } + + @schemas.classproperty + def MOVE(cls): + return cls("move") + + @schemas.classproperty + def COPY(cls): + return cls("copy") + __annotations__ = { + "from": _from, + "path": path, + "op": op, + } + additional_properties = schemas.NotAnyTypeSchema + + op: MetaOapg.properties.op + path: MetaOapg.properties.path + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + op: typing.Union[MetaOapg.properties.op, str, ], + path: typing.Union[MetaOapg.properties.path, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequestMoveCopy': + return super().__new__( + cls, + *args, + op=op, + path=path, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.pyi new file mode 100644 index 00000000000..0654ee60fb8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_move_copy.pyi @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequestMoveCopy( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "op", + "path", + "from", + } + + class properties: + _from = schemas.StrSchema + path = schemas.StrSchema + + + class op( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def MOVE(cls): + return cls("move") + + @schemas.classproperty + def COPY(cls): + return cls("copy") + __annotations__ = { + "from": _from, + "path": path, + "op": op, + } + additional_properties = schemas.NotAnyTypeSchema + + op: MetaOapg.properties.op + path: MetaOapg.properties.path + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + op: typing.Union[MetaOapg.properties.op, str, ], + path: typing.Union[MetaOapg.properties.path, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequestMoveCopy': + return super().__new__( + cls, + *args, + op=op, + path=path, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.py new file mode 100644 index 00000000000..4e15b41cefb --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequestRemove( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "op", + "path", + } + + class properties: + path = schemas.StrSchema + + + class op( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "remove": "REMOVE", + } + + @schemas.classproperty + def REMOVE(cls): + return cls("remove") + __annotations__ = { + "path": path, + "op": op, + } + additional_properties = schemas.NotAnyTypeSchema + + op: MetaOapg.properties.op + path: MetaOapg.properties.path + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + op: typing.Union[MetaOapg.properties.op, str, ], + path: typing.Union[MetaOapg.properties.path, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequestRemove': + return super().__new__( + cls, + *args, + op=op, + path=path, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.pyi new file mode 100644 index 00000000000..325cbe8a98e --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/json_patch_request_remove.pyi @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class JSONPatchRequestRemove( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "op", + "path", + } + + class properties: + path = schemas.StrSchema + + + class op( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def REMOVE(cls): + return cls("remove") + __annotations__ = { + "path": path, + "op": op, + } + additional_properties = schemas.NotAnyTypeSchema + + op: MetaOapg.properties.op + path: MetaOapg.properties.path + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + op: typing.Union[MetaOapg.properties.op, str, ], + path: typing.Union[MetaOapg.properties.path, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'JSONPatchRequestRemove': + return super().__new__( + cls, + *args, + op=op, + path=path, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.py new file mode 100644 index 00000000000..a8855eb09de --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Mammal( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'className': { + 'Pig': Pig, + 'whale': Whale, + 'zebra': Zebra, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Whale, + Zebra, + Pig, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Mammal': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.pig import Pig +from petstore_api.components.schema.whale import Whale +from petstore_api.components.schema.zebra import Zebra diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.pyi new file mode 100644 index 00000000000..a8855eb09de --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mammal.pyi @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Mammal( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'className': { + 'Pig': Pig, + 'whale': Whale, + 'zebra': Zebra, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Whale, + Zebra, + Pig, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Mammal': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.pig import Pig +from petstore_api.components.schema.whale import Whale +from petstore_api.components.schema.zebra import Zebra diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.py new file mode 100644 index 00000000000..621eb8a1584 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class MapTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class map_map_of_string( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'map_map_of_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class map_of_enum_string( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "UPPER": "UPPER", + "lower": "LOWER", + } + + @schemas.classproperty + def UPPER(cls): + return cls("UPPER") + + @schemas.classproperty + def LOWER(cls): + return cls("lower") + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_of_enum_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class direct_map( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'direct_map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @staticmethod + def indirect_map() -> typing.Type['StringBooleanMap']: + return StringBooleanMap + __annotations__ = { + "map_map_of_string": map_map_of_string, + "map_of_enum_string": map_of_enum_string, + "direct_map": direct_map, + "indirect_map": indirect_map, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["indirect_map"]) -> 'StringBooleanMap': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + map_map_of_string: typing.Union[MetaOapg.properties.map_map_of_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_of_enum_string: typing.Union[MetaOapg.properties.map_of_enum_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + direct_map: typing.Union[MetaOapg.properties.direct_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + indirect_map: typing.Union['StringBooleanMap', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MapTest': + return super().__new__( + cls, + *args, + map_map_of_string=map_map_of_string, + map_of_enum_string=map_of_enum_string, + direct_map=direct_map, + indirect_map=indirect_map, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.string_boolean_map import StringBooleanMap diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.pyi new file mode 100644 index 00000000000..47a35a292a9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/map_test.pyi @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class MapTest( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class map_map_of_string( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.StrSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'map_map_of_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class map_of_enum_string( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def UPPER(cls): + return cls("UPPER") + + @schemas.classproperty + def LOWER(cls): + return cls("lower") + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, str, ], + ) -> 'map_of_enum_string': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class direct_map( + schemas.DictSchema + ): + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'direct_map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @staticmethod + def indirect_map() -> typing.Type['StringBooleanMap']: + return StringBooleanMap + __annotations__ = { + "map_map_of_string": map_map_of_string, + "map_of_enum_string": map_of_enum_string, + "direct_map": direct_map, + "indirect_map": indirect_map, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["indirect_map"]) -> 'StringBooleanMap': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + map_map_of_string: typing.Union[MetaOapg.properties.map_map_of_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + map_of_enum_string: typing.Union[MetaOapg.properties.map_of_enum_string, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + direct_map: typing.Union[MetaOapg.properties.direct_map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + indirect_map: typing.Union['StringBooleanMap', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MapTest': + return super().__new__( + cls, + *args, + map_map_of_string=map_map_of_string, + map_of_enum_string=map_of_enum_string, + direct_map=direct_map, + indirect_map=indirect_map, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.string_boolean_map import StringBooleanMap diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py new file mode 100644 index 00000000000..b32867af785 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class MixedPropertiesAndAdditionalPropertiesClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + uuid = schemas.UUIDSchema + dateTime = schemas.DateTimeSchema + + + class map( + schemas.DictSchema + ): + + + class MetaOapg: + + @staticmethod + def additional_properties() -> typing.Type['Animal']: + return Animal + + def __getitem__(self, name: typing.Union[str, ]) -> 'Animal': + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> 'Animal': + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: 'Animal', + ) -> 'map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "uuid": uuid, + "dateTime": dateTime, + "map": map, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map"]) -> MetaOapg.properties.map: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, + dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, + map: typing.Union[MetaOapg.properties.map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MixedPropertiesAndAdditionalPropertiesClass': + return super().__new__( + cls, + *args, + uuid=uuid, + dateTime=dateTime, + map=map, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.pyi new file mode 100644 index 00000000000..b32867af785 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/mixed_properties_and_additional_properties_class.pyi @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class MixedPropertiesAndAdditionalPropertiesClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + uuid = schemas.UUIDSchema + dateTime = schemas.DateTimeSchema + + + class map( + schemas.DictSchema + ): + + + class MetaOapg: + + @staticmethod + def additional_properties() -> typing.Type['Animal']: + return Animal + + def __getitem__(self, name: typing.Union[str, ]) -> 'Animal': + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> 'Animal': + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: 'Animal', + ) -> 'map': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "uuid": uuid, + "dateTime": dateTime, + "map": map, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["map"]) -> MetaOapg.properties.map: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + uuid: typing.Union[MetaOapg.properties.uuid, str, uuid.UUID, schemas.Unset] = schemas.unset, + dateTime: typing.Union[MetaOapg.properties.dateTime, str, datetime, schemas.Unset] = schemas.unset, + map: typing.Union[MetaOapg.properties.map, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MixedPropertiesAndAdditionalPropertiesClass': + return super().__new__( + cls, + *args, + uuid=uuid, + dateTime=dateTime, + map=map, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.animal import Animal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.py new file mode 100644 index 00000000000..7cdc34c5768 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Model200Response( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + model with an invalid class name for python, starts with a number + """ + + + class MetaOapg: + + class properties: + name = schemas.Int32Schema + _class = schemas.StrSchema + __annotations__ = { + "name": name, + "class": _class, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["class"]) -> MetaOapg.properties._class: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Model200Response': + return super().__new__( + cls, + *args, + name=name, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.pyi new file mode 100644 index 00000000000..7cdc34c5768 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model200_response.pyi @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Model200Response( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + model with an invalid class name for python, starts with a number + """ + + + class MetaOapg: + + class properties: + name = schemas.Int32Schema + _class = schemas.StrSchema + __annotations__ = { + "name": name, + "class": _class, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["class"]) -> MetaOapg.properties._class: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Model200Response': + return super().__new__( + cls, + *args, + name=name, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.py new file mode 100644 index 00000000000..1549dc1120d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ModelReturn( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Model for testing reserved words + """ + + + class MetaOapg: + + class properties: + _return = schemas.Int32Schema + __annotations__ = { + "return": _return, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["return"]) -> MetaOapg.properties._return: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["return", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["return", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelReturn': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.pyi new file mode 100644 index 00000000000..1549dc1120d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/model_return.pyi @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ModelReturn( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Model for testing reserved words + """ + + + class MetaOapg: + + class properties: + _return = schemas.Int32Schema + __annotations__ = { + "return": _return, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["return"]) -> MetaOapg.properties._return: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["return", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["return", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelReturn': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/money.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/money.py new file mode 100644 index 00000000000..f51f066004b --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/money.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Money( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "amount", + "currency", + } + + class properties: + amount = schemas.DecimalSchema + + @staticmethod + def currency() -> typing.Type['Currency']: + return Currency + __annotations__ = { + "amount": amount, + "currency": currency, + } + + amount: MetaOapg.properties.amount + currency: 'Currency' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + amount: typing.Union[MetaOapg.properties.amount, str, ], + currency: 'Currency', + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Money': + return super().__new__( + cls, + *args, + amount=amount, + currency=currency, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.currency import Currency diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/money.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/money.pyi new file mode 100644 index 00000000000..f51f066004b --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/money.pyi @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Money( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "amount", + "currency", + } + + class properties: + amount = schemas.DecimalSchema + + @staticmethod + def currency() -> typing.Type['Currency']: + return Currency + __annotations__ = { + "amount": amount, + "currency": currency, + } + + amount: MetaOapg.properties.amount + currency: 'Currency' + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + amount: typing.Union[MetaOapg.properties.amount, str, ], + currency: 'Currency', + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Money': + return super().__new__( + cls, + *args, + amount=amount, + currency=currency, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.currency import Currency diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/name.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/name.py new file mode 100644 index 00000000000..e67d017f241 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/name.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Name( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Model for testing model name same as property name + """ + + + class MetaOapg: + required = { + "name", + } + + class properties: + name = schemas.Int32Schema + snake_case = schemas.Int32Schema + _property = schemas.StrSchema + __annotations__ = { + "name": name, + "snake_case": snake_case, + "property": _property, + } + + + name: MetaOapg.properties.name + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["property"]) -> MetaOapg.properties._property: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, ], + snake_case: typing.Union[MetaOapg.properties.snake_case, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Name': + return super().__new__( + cls, + *args, + name=name, + snake_case=snake_case, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/name.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/name.pyi new file mode 100644 index 00000000000..e67d017f241 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/name.pyi @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Name( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Model for testing model name same as property name + """ + + + class MetaOapg: + required = { + "name", + } + + class properties: + name = schemas.Int32Schema + snake_case = schemas.Int32Schema + _property = schemas.StrSchema + __annotations__ = { + "name": name, + "snake_case": snake_case, + "property": _property, + } + + + name: MetaOapg.properties.name + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["property"]) -> MetaOapg.properties._property: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + name: typing.Union[MetaOapg.properties.name, decimal.Decimal, int, ], + snake_case: typing.Union[MetaOapg.properties.snake_case, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Name': + return super().__new__( + cls, + *args, + name=name, + snake_case=snake_case, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.py new file mode 100644 index 00000000000..cacfe6027ea --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NoAdditionalProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "id", + } + + class properties: + id = schemas.Int64Schema + petId = schemas.Int64Schema + __annotations__ = { + "id": id, + "petId": petId, + } + additional_properties = schemas.NotAnyTypeSchema + + id: MetaOapg.properties.id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, ], + petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NoAdditionalProperties': + return super().__new__( + cls, + *args, + id=id, + petId=petId, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.pyi new file mode 100644 index 00000000000..cacfe6027ea --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/no_additional_properties.pyi @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NoAdditionalProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "id", + } + + class properties: + id = schemas.Int64Schema + petId = schemas.Int64Schema + __annotations__ = { + "id": id, + "petId": petId, + } + additional_properties = schemas.NotAnyTypeSchema + + id: MetaOapg.properties.id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, ], + petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NoAdditionalProperties': + return super().__new__( + cls, + *args, + id=id, + petId=petId, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.py new file mode 100644 index 00000000000..0d3c13b4576 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.py @@ -0,0 +1,576 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NullableClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class integer_prop( + schemas.IntBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneDecimalMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'integer_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class number_prop( + schemas.NumberBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneDecimalMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, decimal.Decimal, int, float, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'number_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class boolean_prop( + schemas.BoolBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneBoolMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, bool, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'boolean_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class string_prop( + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'string_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class date_prop( + schemas.DateBase, + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + class MetaOapg: + format = 'date' + + + def __new__( + cls, + *args: typing.Union[None, str, date, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'date_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class datetime_prop( + schemas.DateTimeBase, + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + class MetaOapg: + format = 'date-time' + + + def __new__( + cls, + *args: typing.Union[None, str, datetime, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'datetime_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class array_nullable_prop( + schemas.ListBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneTupleMixin + ): + + + class MetaOapg: + items = schemas.DictSchema + + + def __new__( + cls, + *args: typing.Union[list, tuple, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class array_and_items_nullable_prop( + schemas.ListBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneTupleMixin + ): + + + class MetaOapg: + + + class items( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + def __new__( + cls, + *args: typing.Union[list, tuple, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_and_items_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class array_items_nullable( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_items_nullable': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class object_nullable_prop( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + class MetaOapg: + additional_properties = schemas.DictSchema + + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'object_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class object_and_items_nullable_prop( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], + ) -> 'object_and_items_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class object_items_nullable( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], + ) -> 'object_items_nullable': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "integer_prop": integer_prop, + "number_prop": number_prop, + "boolean_prop": boolean_prop, + "string_prop": string_prop, + "date_prop": date_prop, + "datetime_prop": datetime_prop, + "array_nullable_prop": array_nullable_prop, + "array_and_items_nullable_prop": array_and_items_nullable_prop, + "array_items_nullable": array_items_nullable, + "object_nullable_prop": object_nullable_prop, + "object_and_items_nullable_prop": object_and_items_nullable_prop, + "object_items_nullable": object_items_nullable, + } + + + class additional_properties( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ... + + @typing.overload + def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + integer_prop: typing.Union[MetaOapg.properties.integer_prop, None, decimal.Decimal, int, schemas.Unset] = schemas.unset, + number_prop: typing.Union[MetaOapg.properties.number_prop, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + boolean_prop: typing.Union[MetaOapg.properties.boolean_prop, None, bool, schemas.Unset] = schemas.unset, + string_prop: typing.Union[MetaOapg.properties.string_prop, None, str, schemas.Unset] = schemas.unset, + date_prop: typing.Union[MetaOapg.properties.date_prop, None, str, date, schemas.Unset] = schemas.unset, + datetime_prop: typing.Union[MetaOapg.properties.datetime_prop, None, str, datetime, schemas.Unset] = schemas.unset, + array_nullable_prop: typing.Union[MetaOapg.properties.array_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, + array_and_items_nullable_prop: typing.Union[MetaOapg.properties.array_and_items_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, + array_items_nullable: typing.Union[MetaOapg.properties.array_items_nullable, list, tuple, schemas.Unset] = schemas.unset, + object_nullable_prop: typing.Union[MetaOapg.properties.object_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, + object_and_items_nullable_prop: typing.Union[MetaOapg.properties.object_and_items_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, + object_items_nullable: typing.Union[MetaOapg.properties.object_items_nullable, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], + ) -> 'NullableClass': + return super().__new__( + cls, + *args, + integer_prop=integer_prop, + number_prop=number_prop, + boolean_prop=boolean_prop, + string_prop=string_prop, + date_prop=date_prop, + datetime_prop=datetime_prop, + array_nullable_prop=array_nullable_prop, + array_and_items_nullable_prop=array_and_items_nullable_prop, + array_items_nullable=array_items_nullable, + object_nullable_prop=object_nullable_prop, + object_and_items_nullable_prop=object_and_items_nullable_prop, + object_items_nullable=object_items_nullable, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.pyi new file mode 100644 index 00000000000..0d3c13b4576 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_class.pyi @@ -0,0 +1,576 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NullableClass( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class integer_prop( + schemas.IntBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneDecimalMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'integer_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class number_prop( + schemas.NumberBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneDecimalMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, decimal.Decimal, int, float, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'number_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class boolean_prop( + schemas.BoolBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneBoolMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, bool, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'boolean_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class string_prop( + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'string_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class date_prop( + schemas.DateBase, + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + class MetaOapg: + format = 'date' + + + def __new__( + cls, + *args: typing.Union[None, str, date, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'date_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class datetime_prop( + schemas.DateTimeBase, + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin + ): + + + class MetaOapg: + format = 'date-time' + + + def __new__( + cls, + *args: typing.Union[None, str, datetime, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'datetime_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class array_nullable_prop( + schemas.ListBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneTupleMixin + ): + + + class MetaOapg: + items = schemas.DictSchema + + + def __new__( + cls, + *args: typing.Union[list, tuple, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class array_and_items_nullable_prop( + schemas.ListBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneTupleMixin + ): + + + class MetaOapg: + + + class items( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + def __new__( + cls, + *args: typing.Union[list, tuple, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_and_items_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) + + + class array_items_nullable( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'items': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, None, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'array_items_nullable': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + + class object_nullable_prop( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + class MetaOapg: + additional_properties = schemas.DictSchema + + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], + ) -> 'object_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class object_and_items_nullable_prop( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], + ) -> 'object_and_items_nullable_prop': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class object_items_nullable( + schemas.DictSchema + ): + + + class MetaOapg: + + + class additional_properties( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], + ) -> 'object_items_nullable': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "integer_prop": integer_prop, + "number_prop": number_prop, + "boolean_prop": boolean_prop, + "string_prop": string_prop, + "date_prop": date_prop, + "datetime_prop": datetime_prop, + "array_nullable_prop": array_nullable_prop, + "array_and_items_nullable_prop": array_and_items_nullable_prop, + "array_items_nullable": array_items_nullable, + "object_nullable_prop": object_nullable_prop, + "object_and_items_nullable_prop": object_and_items_nullable_prop, + "object_items_nullable": object_items_nullable, + } + + + class additional_properties( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'additional_properties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ... + + @typing.overload + def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + integer_prop: typing.Union[MetaOapg.properties.integer_prop, None, decimal.Decimal, int, schemas.Unset] = schemas.unset, + number_prop: typing.Union[MetaOapg.properties.number_prop, None, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + boolean_prop: typing.Union[MetaOapg.properties.boolean_prop, None, bool, schemas.Unset] = schemas.unset, + string_prop: typing.Union[MetaOapg.properties.string_prop, None, str, schemas.Unset] = schemas.unset, + date_prop: typing.Union[MetaOapg.properties.date_prop, None, str, date, schemas.Unset] = schemas.unset, + datetime_prop: typing.Union[MetaOapg.properties.datetime_prop, None, str, datetime, schemas.Unset] = schemas.unset, + array_nullable_prop: typing.Union[MetaOapg.properties.array_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, + array_and_items_nullable_prop: typing.Union[MetaOapg.properties.array_and_items_nullable_prop, list, tuple, None, schemas.Unset] = schemas.unset, + array_items_nullable: typing.Union[MetaOapg.properties.array_items_nullable, list, tuple, schemas.Unset] = schemas.unset, + object_nullable_prop: typing.Union[MetaOapg.properties.object_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, + object_and_items_nullable_prop: typing.Union[MetaOapg.properties.object_and_items_nullable_prop, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, + object_items_nullable: typing.Union[MetaOapg.properties.object_items_nullable, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, None, ], + ) -> 'NullableClass': + return super().__new__( + cls, + *args, + integer_prop=integer_prop, + number_prop=number_prop, + boolean_prop=boolean_prop, + string_prop=string_prop, + date_prop=date_prop, + datetime_prop=datetime_prop, + array_nullable_prop=array_nullable_prop, + array_and_items_nullable_prop=array_and_items_nullable_prop, + array_items_nullable=array_items_nullable, + object_nullable_prop=object_nullable_prop, + object_and_items_nullable_prop=object_and_items_nullable_prop, + object_items_nullable=object_items_nullable, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.py new file mode 100644 index 00000000000..5c898279a22 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NullableShape( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) + """ + + + class MetaOapg: + one_of_2 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Triangle, + Quadrilateral, + cls.one_of_2, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NullableShape': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.pyi new file mode 100644 index 00000000000..5c898279a22 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_shape.pyi @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NullableShape( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + The value may be a shape or the 'null' value. For a composed schema to validate a null payload, one of its chosen oneOf schemas must be type null or nullable (introduced in OAS schema >= 3.0) + """ + + + class MetaOapg: + one_of_2 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Triangle, + Quadrilateral, + cls.one_of_2, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NullableShape': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.py new file mode 100644 index 00000000000..94353cf0fd2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NullableString( + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NullableString': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.pyi new file mode 100644 index 00000000000..94353cf0fd2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/nullable_string.pyi @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NullableString( + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NullableString': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/number.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number.py new file mode 100644 index 00000000000..7210b911ced --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +Number = schemas.NumberSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/number.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number.pyi new file mode 100644 index 00000000000..7210b911ced --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +Number = schemas.NumberSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.py new file mode 100644 index 00000000000..91aaaa507b8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NumberOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + JustNumber = schemas.NumberSchema + __annotations__ = { + "JustNumber": JustNumber, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + JustNumber: typing.Union[MetaOapg.properties.JustNumber, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NumberOnly': + return super().__new__( + cls, + *args, + JustNumber=JustNumber, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.pyi new file mode 100644 index 00000000000..91aaaa507b8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_only.pyi @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NumberOnly( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + JustNumber = schemas.NumberSchema + __annotations__ = { + "JustNumber": JustNumber, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + JustNumber: typing.Union[MetaOapg.properties.JustNumber, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NumberOnly': + return super().__new__( + cls, + *args, + JustNumber=JustNumber, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.py new file mode 100644 index 00000000000..f8b63e35856 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NumberWithValidations( + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + inclusive_maximum = 20 + inclusive_minimum = 10 diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.pyi new file mode 100644 index 00000000000..4e92a920061 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/number_with_validations.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class NumberWithValidations( + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.py new file mode 100644 index 00000000000..05dc6ddd565 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +ObjectInterface = schemas.DictSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.pyi new file mode 100644 index 00000000000..05dc6ddd565 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_interface.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +ObjectInterface = schemas.DictSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.py new file mode 100644 index 00000000000..6c5d6fdd75b --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectModelWithRefProps( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def myNumber() -> typing.Type['NumberWithValidations']: + return NumberWithValidations + + @staticmethod + def myString() -> typing.Type['String']: + return String + + @staticmethod + def myBoolean() -> typing.Type['Boolean']: + return Boolean + __annotations__ = { + "myNumber": myNumber, + "myString": myString, + "myBoolean": myBoolean, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["myNumber"]) -> 'NumberWithValidations': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["myString"]) -> 'String': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["myBoolean"]) -> 'Boolean': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["myString"]) -> typing.Union['String', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["myBoolean"]) -> typing.Union['Boolean', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + myNumber: typing.Union['NumberWithValidations', schemas.Unset] = schemas.unset, + myString: typing.Union['String', schemas.Unset] = schemas.unset, + myBoolean: typing.Union['Boolean', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectModelWithRefProps': + return super().__new__( + cls, + *args, + myNumber=myNumber, + myString=myString, + myBoolean=myBoolean, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.boolean import Boolean +from petstore_api.components.schema.number_with_validations import NumberWithValidations +from petstore_api.components.schema.string import String diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.pyi new file mode 100644 index 00000000000..6c5d6fdd75b --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_model_with_ref_props.pyi @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectModelWithRefProps( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def myNumber() -> typing.Type['NumberWithValidations']: + return NumberWithValidations + + @staticmethod + def myString() -> typing.Type['String']: + return String + + @staticmethod + def myBoolean() -> typing.Type['Boolean']: + return Boolean + __annotations__ = { + "myNumber": myNumber, + "myString": myString, + "myBoolean": myBoolean, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["myNumber"]) -> 'NumberWithValidations': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["myString"]) -> 'String': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["myBoolean"]) -> 'Boolean': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["myString"]) -> typing.Union['String', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["myBoolean"]) -> typing.Union['Boolean', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + myNumber: typing.Union['NumberWithValidations', schemas.Unset] = schemas.unset, + myString: typing.Union['String', schemas.Unset] = schemas.unset, + myBoolean: typing.Union['Boolean', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectModelWithRefProps': + return super().__new__( + cls, + *args, + myNumber=myNumber, + myString=myString, + myBoolean=myBoolean, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.boolean import Boolean +from petstore_api.components.schema.number_with_validations import NumberWithValidations +from petstore_api.components.schema.string import String diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py new file mode 100644 index 00000000000..5f6e53f224d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithAllOfWithReqTestPropFromUnsetAddProp( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + required = { + "test", + } + + class properties: + name = schemas.StrSchema + __annotations__ = { + "name": name, + } + + test: schemas.AnyTypeSchema + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + test: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + test=test, + name=name, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + ObjectWithOptionalTestProp, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithAllOfWithReqTestPropFromUnsetAddProp': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.object_with_optional_test_prop import ObjectWithOptionalTestProp diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi new file mode 100644 index 00000000000..5f6e53f224d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithAllOfWithReqTestPropFromUnsetAddProp( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + required = { + "test", + } + + class properties: + name = schemas.StrSchema + __annotations__ = { + "name": name, + } + + test: schemas.AnyTypeSchema + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + test: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + test=test, + name=name, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + ObjectWithOptionalTestProp, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithAllOfWithReqTestPropFromUnsetAddProp': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.object_with_optional_test_prop import ObjectWithOptionalTestProp diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.py new file mode 100644 index 00000000000..4b66a667ddf --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithDecimalProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def length() -> typing.Type['DecimalPayload']: + return DecimalPayload + width = schemas.DecimalSchema + + @staticmethod + def cost() -> typing.Type['Money']: + return Money + __annotations__ = { + "length": length, + "width": width, + "cost": cost, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["length"]) -> 'DecimalPayload': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["width"]) -> MetaOapg.properties.width: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cost"]) -> 'Money': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["length"]) -> typing.Union['DecimalPayload', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + length: typing.Union['DecimalPayload', schemas.Unset] = schemas.unset, + width: typing.Union[MetaOapg.properties.width, str, schemas.Unset] = schemas.unset, + cost: typing.Union['Money', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithDecimalProperties': + return super().__new__( + cls, + *args, + length=length, + width=width, + cost=cost, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.decimal_payload import DecimalPayload +from petstore_api.components.schema.money import Money diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.pyi new file mode 100644 index 00000000000..4b66a667ddf --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_decimal_properties.pyi @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithDecimalProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def length() -> typing.Type['DecimalPayload']: + return DecimalPayload + width = schemas.DecimalSchema + + @staticmethod + def cost() -> typing.Type['Money']: + return Money + __annotations__ = { + "length": length, + "width": width, + "cost": cost, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["length"]) -> 'DecimalPayload': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["width"]) -> MetaOapg.properties.width: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["cost"]) -> 'Money': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["length"]) -> typing.Union['DecimalPayload', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + length: typing.Union['DecimalPayload', schemas.Unset] = schemas.unset, + width: typing.Union[MetaOapg.properties.width, str, schemas.Unset] = schemas.unset, + cost: typing.Union['Money', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithDecimalProperties': + return super().__new__( + cls, + *args, + length=length, + width=width, + cost=cost, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.decimal_payload import DecimalPayload +from petstore_api.components.schema.money import Money diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.py new file mode 100644 index 00000000000..0e6aa7d4a1f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithDifficultlyNamedProps( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + model with properties that have invalid names for python + """ + + + class MetaOapg: + required = { + "123-list", + } + + class properties: + _123_list = schemas.StrSchema + special_property_name = schemas.Int64Schema + _123_number = schemas.IntSchema + __annotations__ = { + "123-list": _123_list, + "$special[property.name]": special_property_name, + "123Number": _123_number, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["123Number"]) -> MetaOapg.properties._123_number: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithDifficultlyNamedProps': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.pyi new file mode 100644 index 00000000000..0e6aa7d4a1f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_difficultly_named_props.pyi @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithDifficultlyNamedProps( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + model with properties that have invalid names for python + """ + + + class MetaOapg: + required = { + "123-list", + } + + class properties: + _123_list = schemas.StrSchema + special_property_name = schemas.Int64Schema + _123_number = schemas.IntSchema + __annotations__ = { + "123-list": _123_list, + "$special[property.name]": special_property_name, + "123Number": _123_number, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["123Number"]) -> MetaOapg.properties._123_number: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithDifficultlyNamedProps': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.py new file mode 100644 index 00000000000..31e422370ff --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithInlineCompositionProperty( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class someProp( + schemas.ComposedSchema, + ): + + + class MetaOapg: + + + class all_of_0( + schemas.StrSchema + ): + + + class MetaOapg: + min_length = 1 + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'someProp': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "someProp": someProp, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + someProp: typing.Union[MetaOapg.properties.someProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithInlineCompositionProperty': + return super().__new__( + cls, + *args, + someProp=someProp, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.pyi new file mode 100644 index 00000000000..294520bd232 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_inline_composition_property.pyi @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithInlineCompositionProperty( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class someProp( + schemas.ComposedSchema, + ): + + + class MetaOapg: + + + class all_of_0( + schemas.StrSchema + ): + pass + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'someProp': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + __annotations__ = { + "someProp": someProp, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + someProp: typing.Union[MetaOapg.properties.someProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithInlineCompositionProperty': + return super().__new__( + cls, + *args, + someProp=someProp, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.py new file mode 100644 index 00000000000..c4c2f466ace --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithInvalidNamedRefedProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "!reference", + "from", + } + + class properties: + + @staticmethod + def _from() -> typing.Type['FromSchema']: + return FromSchema + + @staticmethod + def reference() -> typing.Type['ArrayWithValidationsInItems']: + return ArrayWithValidationsInItems + __annotations__ = { + "from": _from, + "!reference": reference, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithInvalidNamedRefedProperties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api.components.schema.from_schema import FromSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.pyi new file mode 100644 index 00000000000..c4c2f466ace --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_invalid_named_refed_properties.pyi @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithInvalidNamedRefedProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "!reference", + "from", + } + + class properties: + + @staticmethod + def _from() -> typing.Type['FromSchema']: + return FromSchema + + @staticmethod + def reference() -> typing.Type['ArrayWithValidationsInItems']: + return ArrayWithValidationsInItems + __annotations__ = { + "from": _from, + "!reference": reference, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> 'FromSchema': ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["!reference"]) -> 'ArrayWithValidationsInItems': ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["from", "!reference", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithInvalidNamedRefedProperties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api.components.schema.from_schema import FromSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.py new file mode 100644 index 00000000000..07cae57d4c2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithOptionalTestProp( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + test = schemas.StrSchema + __annotations__ = { + "test": test, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["test"]) -> MetaOapg.properties.test: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["test", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["test"]) -> typing.Union[MetaOapg.properties.test, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["test", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + test: typing.Union[MetaOapg.properties.test, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithOptionalTestProp': + return super().__new__( + cls, + *args, + test=test, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.pyi new file mode 100644 index 00000000000..07cae57d4c2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_optional_test_prop.pyi @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithOptionalTestProp( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + test = schemas.StrSchema + __annotations__ = { + "test": test, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["test"]) -> MetaOapg.properties.test: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["test", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["test"]) -> typing.Union[MetaOapg.properties.test, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["test", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + test: typing.Union[MetaOapg.properties.test, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithOptionalTestProp': + return super().__new__( + cls, + *args, + test=test, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.py new file mode 100644 index 00000000000..50c22698177 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithValidations( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + min_properties = 2 + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithValidations': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.pyi new file mode 100644 index 00000000000..f45e30eed5f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/object_with_validations.pyi @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ObjectWithValidations( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectWithValidations': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/order.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/order.py new file mode 100644 index 00000000000..6d653b0ab07 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/order.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Order( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + id = schemas.Int64Schema + petId = schemas.Int64Schema + quantity = schemas.Int32Schema + shipDate = schemas.DateTimeSchema + + + class status( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "placed": "PLACED", + "approved": "APPROVED", + "delivered": "DELIVERED", + } + + @schemas.classproperty + def PLACED(cls): + return cls("placed") + + @schemas.classproperty + def APPROVED(cls): + return cls("approved") + + @schemas.classproperty + def DELIVERED(cls): + return cls("delivered") + complete = schemas.BoolSchema + __annotations__ = { + "id": id, + "petId": petId, + "quantity": quantity, + "shipDate": shipDate, + "status": status, + "complete": complete, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["complete"]) -> MetaOapg.properties.complete: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, + quantity: typing.Union[MetaOapg.properties.quantity, decimal.Decimal, int, schemas.Unset] = schemas.unset, + shipDate: typing.Union[MetaOapg.properties.shipDate, str, datetime, schemas.Unset] = schemas.unset, + status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, + complete: typing.Union[MetaOapg.properties.complete, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Order': + return super().__new__( + cls, + *args, + id=id, + petId=petId, + quantity=quantity, + shipDate=shipDate, + status=status, + complete=complete, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/order.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/order.pyi new file mode 100644 index 00000000000..ccbca89e082 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/order.pyi @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Order( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + id = schemas.Int64Schema + petId = schemas.Int64Schema + quantity = schemas.Int32Schema + shipDate = schemas.DateTimeSchema + + + class status( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def PLACED(cls): + return cls("placed") + + @schemas.classproperty + def APPROVED(cls): + return cls("approved") + + @schemas.classproperty + def DELIVERED(cls): + return cls("delivered") + complete = schemas.BoolSchema + __annotations__ = { + "id": id, + "petId": petId, + "quantity": quantity, + "shipDate": shipDate, + "status": status, + "complete": complete, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["complete"]) -> MetaOapg.properties.complete: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + petId: typing.Union[MetaOapg.properties.petId, decimal.Decimal, int, schemas.Unset] = schemas.unset, + quantity: typing.Union[MetaOapg.properties.quantity, decimal.Decimal, int, schemas.Unset] = schemas.unset, + shipDate: typing.Union[MetaOapg.properties.shipDate, str, datetime, schemas.Unset] = schemas.unset, + status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, + complete: typing.Union[MetaOapg.properties.complete, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Order': + return super().__new__( + cls, + *args, + id=id, + petId=petId, + quantity=quantity, + shipDate=shipDate, + status=status, + complete=complete, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.py new file mode 100644 index 00000000000..689ef1cf2be --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ParentPet( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'pet_type': { + 'ChildCat': ChildCat, + } + } + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + GrandparentAnimal, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ParentPet': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.child_cat import ChildCat +from petstore_api.components.schema.grandparent_animal import GrandparentAnimal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.pyi new file mode 100644 index 00000000000..689ef1cf2be --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/parent_pet.pyi @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ParentPet( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'pet_type': { + 'ChildCat': ChildCat, + } + } + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + GrandparentAnimal, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ParentPet': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.child_cat import ChildCat +from petstore_api.components.schema.grandparent_animal import GrandparentAnimal diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.py new file mode 100644 index 00000000000..641e73dc2e2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Pet( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Pet object that needs to be added to the store + """ + + + class MetaOapg: + required = { + "photoUrls", + "name", + } + + class properties: + name = schemas.StrSchema + + + class photoUrls( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'photoUrls': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + id = schemas.Int64Schema + + @staticmethod + def category() -> typing.Type['Category']: + return Category + + + class tags( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Tag']: + return Tag + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Tag'], typing.List['Tag']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'tags': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Tag': + return super().__getitem__(i) + + + class status( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "available": "AVAILABLE", + "pending": "PENDING", + "sold": "SOLD", + } + + @schemas.classproperty + def AVAILABLE(cls): + return cls("available") + + @schemas.classproperty + def PENDING(cls): + return cls("pending") + + @schemas.classproperty + def SOLD(cls): + return cls("sold") + __annotations__ = { + "name": name, + "photoUrls": photoUrls, + "id": id, + "category": category, + "tags": tags, + "status": status, + } + + photoUrls: MetaOapg.properties.photoUrls + name: MetaOapg.properties.name + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'Category': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["tags"]) -> MetaOapg.properties.tags: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + photoUrls: typing.Union[MetaOapg.properties.photoUrls, list, tuple, ], + name: typing.Union[MetaOapg.properties.name, str, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + category: typing.Union['Category', schemas.Unset] = schemas.unset, + tags: typing.Union[MetaOapg.properties.tags, list, tuple, schemas.Unset] = schemas.unset, + status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Pet': + return super().__new__( + cls, + *args, + photoUrls=photoUrls, + name=name, + id=id, + category=category, + tags=tags, + status=status, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.category import Category +from petstore_api.components.schema.tag import Tag diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.pyi new file mode 100644 index 00000000000..d4b90d6aa9a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pet.pyi @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Pet( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Pet object that needs to be added to the store + """ + + + class MetaOapg: + required = { + "photoUrls", + "name", + } + + class properties: + name = schemas.StrSchema + + + class photoUrls( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.StrSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'photoUrls': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + id = schemas.Int64Schema + + @staticmethod + def category() -> typing.Type['Category']: + return Category + + + class tags( + schemas.ListSchema + ): + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['Tag']: + return Tag + + def __new__( + cls, + arg: typing.Union[typing.Tuple['Tag'], typing.List['Tag']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'tags': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'Tag': + return super().__getitem__(i) + + + class status( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def AVAILABLE(cls): + return cls("available") + + @schemas.classproperty + def PENDING(cls): + return cls("pending") + + @schemas.classproperty + def SOLD(cls): + return cls("sold") + __annotations__ = { + "name": name, + "photoUrls": photoUrls, + "id": id, + "category": category, + "tags": tags, + "status": status, + } + + photoUrls: MetaOapg.properties.photoUrls + name: MetaOapg.properties.name + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'Category': ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["tags"]) -> MetaOapg.properties.tags: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + photoUrls: typing.Union[MetaOapg.properties.photoUrls, list, tuple, ], + name: typing.Union[MetaOapg.properties.name, str, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + category: typing.Union['Category', schemas.Unset] = schemas.unset, + tags: typing.Union[MetaOapg.properties.tags, list, tuple, schemas.Unset] = schemas.unset, + status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Pet': + return super().__new__( + cls, + *args, + photoUrls=photoUrls, + name=name, + id=id, + category=category, + tags=tags, + status=status, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.category import Category +from petstore_api.components.schema.tag import Tag diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.py new file mode 100644 index 00000000000..00e7176f543 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Pig( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'className': { + 'BasquePig': BasquePig, + 'DanishPig': DanishPig, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + BasquePig, + DanishPig, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Pig': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.basque_pig import BasquePig +from petstore_api.components.schema.danish_pig import DanishPig diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.pyi new file mode 100644 index 00000000000..00e7176f543 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/pig.pyi @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Pig( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'className': { + 'BasquePig': BasquePig, + 'DanishPig': DanishPig, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + BasquePig, + DanishPig, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Pig': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.basque_pig import BasquePig +from petstore_api.components.schema.danish_pig import DanishPig diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/player.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/player.py new file mode 100644 index 00000000000..d08a18d2ee5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/player.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Player( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + a model that includes a self reference this forces properties and additionalProperties to be lazy loaded in python models because the Player class has not fully loaded when defining properties + """ + + + class MetaOapg: + + class properties: + name = schemas.StrSchema + + @staticmethod + def enemyPlayer() -> typing.Type['Player']: + return Player + __annotations__ = { + "name": name, + "enemyPlayer": enemyPlayer, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enemyPlayer"]) -> 'Player': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + enemyPlayer: typing.Union['Player', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Player': + return super().__new__( + cls, + *args, + name=name, + enemyPlayer=enemyPlayer, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/player.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/player.pyi new file mode 100644 index 00000000000..d08a18d2ee5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/player.pyi @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Player( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + a model that includes a self reference this forces properties and additionalProperties to be lazy loaded in python models because the Player class has not fully loaded when defining properties + """ + + + class MetaOapg: + + class properties: + name = schemas.StrSchema + + @staticmethod + def enemyPlayer() -> typing.Type['Player']: + return Player + __annotations__ = { + "name": name, + "enemyPlayer": enemyPlayer, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["enemyPlayer"]) -> 'Player': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + enemyPlayer: typing.Union['Player', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Player': + return super().__new__( + cls, + *args, + name=name, + enemyPlayer=enemyPlayer, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.py new file mode 100644 index 00000000000..3e65298e232 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Quadrilateral( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'quadrilateralType': { + 'ComplexQuadrilateral': ComplexQuadrilateral, + 'SimpleQuadrilateral': SimpleQuadrilateral, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + SimpleQuadrilateral, + ComplexQuadrilateral, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Quadrilateral': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral +from petstore_api.components.schema.simple_quadrilateral import SimpleQuadrilateral diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.pyi new file mode 100644 index 00000000000..3e65298e232 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral.pyi @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Quadrilateral( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'quadrilateralType': { + 'ComplexQuadrilateral': ComplexQuadrilateral, + 'SimpleQuadrilateral': SimpleQuadrilateral, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + SimpleQuadrilateral, + ComplexQuadrilateral, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Quadrilateral': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral +from petstore_api.components.schema.simple_quadrilateral import SimpleQuadrilateral diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.py new file mode 100644 index 00000000000..90c85c2388f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class QuadrilateralInterface( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "shapeType", + "quadrilateralType", + } + + class properties: + + + class shapeType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "Quadrilateral": "QUADRILATERAL", + } + + @schemas.classproperty + def QUADRILATERAL(cls): + return cls("Quadrilateral") + quadrilateralType = schemas.StrSchema + __annotations__ = { + "shapeType": shapeType, + "quadrilateralType": quadrilateralType, + } + + + shapeType: MetaOapg.properties.shapeType + quadrilateralType: MetaOapg.properties.quadrilateralType + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], + quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'QuadrilateralInterface': + return super().__new__( + cls, + *args, + shapeType=shapeType, + quadrilateralType=quadrilateralType, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.pyi new file mode 100644 index 00000000000..92505429048 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/quadrilateral_interface.pyi @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class QuadrilateralInterface( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "shapeType", + "quadrilateralType", + } + + class properties: + + + class shapeType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def QUADRILATERAL(cls): + return cls("Quadrilateral") + quadrilateralType = schemas.StrSchema + __annotations__ = { + "shapeType": shapeType, + "quadrilateralType": quadrilateralType, + } + + + shapeType: MetaOapg.properties.shapeType + quadrilateralType: MetaOapg.properties.quadrilateralType + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], + quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'QuadrilateralInterface': + return super().__new__( + cls, + *args, + shapeType=shapeType, + quadrilateralType=quadrilateralType, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.py new file mode 100644 index 00000000000..c849de19067 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ReadOnlyFirst( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + bar = schemas.StrSchema + baz = schemas.StrSchema + __annotations__ = { + "bar": bar, + "baz": baz, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + baz: typing.Union[MetaOapg.properties.baz, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ReadOnlyFirst': + return super().__new__( + cls, + *args, + bar=bar, + baz=baz, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.pyi new file mode 100644 index 00000000000..c849de19067 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/read_only_first.pyi @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ReadOnlyFirst( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + bar = schemas.StrSchema + baz = schemas.StrSchema + __annotations__ = { + "bar": bar, + "baz": baz, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + baz: typing.Union[MetaOapg.properties.baz, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ReadOnlyFirst': + return super().__new__( + cls, + *args, + bar=bar, + baz=baz, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.py new file mode 100644 index 00000000000..0cc98570394 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ScaleneTriangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class triangleType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "ScaleneTriangle": "SCALENE_TRIANGLE", + } + + @schemas.classproperty + def SCALENE_TRIANGLE(cls): + return cls("ScaleneTriangle") + __annotations__ = { + "triangleType": triangleType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + TriangleInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ScaleneTriangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.pyi new file mode 100644 index 00000000000..1f8f4ea4ed7 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/scalene_triangle.pyi @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ScaleneTriangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class triangleType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def SCALENE_TRIANGLE(cls): + return cls("ScaleneTriangle") + __annotations__ = { + "triangleType": triangleType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + TriangleInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ScaleneTriangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.triangle_interface import TriangleInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.py new file mode 100644 index 00000000000..7765294c692 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Shape( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'shapeType': { + 'Quadrilateral': Quadrilateral, + 'Triangle': Triangle, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Triangle, + Quadrilateral, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Shape': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.pyi new file mode 100644 index 00000000000..7765294c692 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape.pyi @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Shape( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'shapeType': { + 'Quadrilateral': Quadrilateral, + 'Triangle': Triangle, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + Triangle, + Quadrilateral, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Shape': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.py new file mode 100644 index 00000000000..9f16cf6dc5f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ShapeOrNull( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'shapeType': { + 'Quadrilateral': Quadrilateral, + 'Triangle': Triangle, + } + } + one_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + Triangle, + Quadrilateral, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ShapeOrNull': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.pyi new file mode 100644 index 00000000000..9f16cf6dc5f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/shape_or_null.pyi @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class ShapeOrNull( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'shapeType': { + 'Quadrilateral': Quadrilateral, + 'Triangle': Triangle, + } + } + one_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + Triangle, + Quadrilateral, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ShapeOrNull': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api.components.schema.triangle import Triangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.py new file mode 100644 index 00000000000..4aef7074700 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class SimpleQuadrilateral( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class quadrilateralType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "SimpleQuadrilateral": "SIMPLE_QUADRILATERAL", + } + + @schemas.classproperty + def SIMPLE_QUADRILATERAL(cls): + return cls("SimpleQuadrilateral") + __annotations__ = { + "quadrilateralType": quadrilateralType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + quadrilateralType=quadrilateralType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + QuadrilateralInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SimpleQuadrilateral': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.pyi new file mode 100644 index 00000000000..1b3d58dcaa3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/simple_quadrilateral.pyi @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class SimpleQuadrilateral( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_1( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + + + class quadrilateralType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def SIMPLE_QUADRILATERAL(cls): + return cls("SimpleQuadrilateral") + __annotations__ = { + "quadrilateralType": quadrilateralType, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + quadrilateralType: typing.Union[MetaOapg.properties.quadrilateralType, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + quadrilateralType=quadrilateralType, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + QuadrilateralInterface, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SimpleQuadrilateral': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.py new file mode 100644 index 00000000000..94ed07b7f2a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class SomeObject( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + ObjectInterface, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SomeObject': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.object_interface import ObjectInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.pyi new file mode 100644 index 00000000000..94ed07b7f2a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/some_object.pyi @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class SomeObject( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + ObjectInterface, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SomeObject': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.object_interface import ObjectInterface diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.py new file mode 100644 index 00000000000..ca1f5c6ab84 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class SpecialModelName( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + model with an invalid class name for python + """ + + + class MetaOapg: + + class properties: + a = schemas.StrSchema + __annotations__ = { + "a": a, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + a: typing.Union[MetaOapg.properties.a, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SpecialModelName': + return super().__new__( + cls, + *args, + a=a, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.pyi new file mode 100644 index 00000000000..ca1f5c6ab84 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/special_model_name.pyi @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class SpecialModelName( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + model with an invalid class name for python + """ + + + class MetaOapg: + + class properties: + a = schemas.StrSchema + __annotations__ = { + "a": a, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + a: typing.Union[MetaOapg.properties.a, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'SpecialModelName': + return super().__new__( + cls, + *args, + a=a, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string.py new file mode 100644 index 00000000000..9e0907b4269 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +String = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string.pyi new file mode 100644 index 00000000000..9e0907b4269 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 +String = schemas.StrSchema diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.py new file mode 100644 index 00000000000..9d4a6136b55 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringBooleanMap( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'StringBooleanMap': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.pyi new file mode 100644 index 00000000000..9d4a6136b55 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_boolean_map.pyi @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringBooleanMap( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'StringBooleanMap': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.py new file mode 100644 index 00000000000..abc1696bc14 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringEnum( + schemas.EnumBase, + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "placed": "PLACED", + "approved": "APPROVED", + "delivered": "DELIVERED", + "single quoted": "SINGLE_QUOTED", + "multiple\nlines": "MULTIPLE_LINES", + "double quote \n with newline": "DOUBLE_QUOTE_WITH_NEWLINE", + schemas.NoneClass.NONE: "NONE", + } + + @schemas.classproperty + def PLACED(cls): + return cls("placed") + + @schemas.classproperty + def APPROVED(cls): + return cls("approved") + + @schemas.classproperty + def DELIVERED(cls): + return cls("delivered") + + @schemas.classproperty + def SINGLE_QUOTED(cls): + return cls("single quoted") + + @schemas.classproperty + def MULTIPLE_LINES(cls): + return cls("multiple\nlines") + + @schemas.classproperty + def DOUBLE_QUOTE_WITH_NEWLINE(cls): + return cls("double quote \n with newline") + + @schemas.classproperty + def NONE(cls): + return cls(None) + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'StringEnum': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.pyi new file mode 100644 index 00000000000..abc1696bc14 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum.pyi @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringEnum( + schemas.EnumBase, + schemas.StrBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneStrMixin +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "placed": "PLACED", + "approved": "APPROVED", + "delivered": "DELIVERED", + "single quoted": "SINGLE_QUOTED", + "multiple\nlines": "MULTIPLE_LINES", + "double quote \n with newline": "DOUBLE_QUOTE_WITH_NEWLINE", + schemas.NoneClass.NONE: "NONE", + } + + @schemas.classproperty + def PLACED(cls): + return cls("placed") + + @schemas.classproperty + def APPROVED(cls): + return cls("approved") + + @schemas.classproperty + def DELIVERED(cls): + return cls("delivered") + + @schemas.classproperty + def SINGLE_QUOTED(cls): + return cls("single quoted") + + @schemas.classproperty + def MULTIPLE_LINES(cls): + return cls("multiple\nlines") + + @schemas.classproperty + def DOUBLE_QUOTE_WITH_NEWLINE(cls): + return cls("double quote \n with newline") + + @schemas.classproperty + def NONE(cls): + return cls(None) + + + def __new__( + cls, + *args: typing.Union[None, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'StringEnum': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.py new file mode 100644 index 00000000000..85260096555 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringEnumWithDefaultValue( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "placed": "PLACED", + "approved": "APPROVED", + "delivered": "DELIVERED", + } + + @schemas.classproperty + def PLACED(cls): + return cls("placed") + + @schemas.classproperty + def APPROVED(cls): + return cls("approved") + + @schemas.classproperty + def DELIVERED(cls): + return cls("delivered") diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.pyi new file mode 100644 index 00000000000..e51581c628f --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_enum_with_default_value.pyi @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringEnumWithDefaultValue( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def PLACED(cls): + return cls("placed") + + @schemas.classproperty + def APPROVED(cls): + return cls("approved") + + @schemas.classproperty + def DELIVERED(cls): + return cls("delivered") diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.py new file mode 100644 index 00000000000..61ff6fcc31d --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringWithValidation( + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + min_length = 7 diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.pyi new file mode 100644 index 00000000000..df0be025130 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/string_with_validation.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class StringWithValidation( + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.py new file mode 100644 index 00000000000..a0176eead36 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Tag( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + id = schemas.Int64Schema + name = schemas.StrSchema + __annotations__ = { + "id": id, + "name": name, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Tag': + return super().__new__( + cls, + *args, + id=id, + name=name, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.pyi new file mode 100644 index 00000000000..a0176eead36 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/tag.pyi @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Tag( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + id = schemas.Int64Schema + name = schemas.StrSchema + __annotations__ = { + "id": id, + "name": name, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Tag': + return super().__new__( + cls, + *args, + id=id, + name=name, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.py new file mode 100644 index 00000000000..7197dcfb5d7 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Triangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'triangleType': { + 'EquilateralTriangle': EquilateralTriangle, + 'IsoscelesTriangle': IsoscelesTriangle, + 'ScaleneTriangle': ScaleneTriangle, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + EquilateralTriangle, + IsoscelesTriangle, + ScaleneTriangle, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Triangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle +from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle +from petstore_api.components.schema.scalene_triangle import ScaleneTriangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.pyi new file mode 100644 index 00000000000..7197dcfb5d7 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle.pyi @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Triangle( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'triangleType': { + 'EquilateralTriangle': EquilateralTriangle, + 'IsoscelesTriangle': IsoscelesTriangle, + 'ScaleneTriangle': ScaleneTriangle, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + EquilateralTriangle, + IsoscelesTriangle, + ScaleneTriangle, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Triangle': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle +from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle +from petstore_api.components.schema.scalene_triangle import ScaleneTriangle diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.py new file mode 100644 index 00000000000..7ac28c0031c --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class TriangleInterface( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "shapeType", + "triangleType", + } + + class properties: + + + class shapeType( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "Triangle": "TRIANGLE", + } + + @schemas.classproperty + def TRIANGLE(cls): + return cls("Triangle") + triangleType = schemas.StrSchema + __annotations__ = { + "shapeType": shapeType, + "triangleType": triangleType, + } + + + shapeType: MetaOapg.properties.shapeType + triangleType: MetaOapg.properties.triangleType + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'TriangleInterface': + return super().__new__( + cls, + *args, + shapeType=shapeType, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.pyi new file mode 100644 index 00000000000..86b525d359a --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/triangle_interface.pyi @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class TriangleInterface( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "shapeType", + "triangleType", + } + + class properties: + + + class shapeType( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def TRIANGLE(cls): + return cls("Triangle") + triangleType = schemas.StrSchema + __annotations__ = { + "shapeType": shapeType, + "triangleType": triangleType, + } + + + shapeType: MetaOapg.properties.shapeType + triangleType: MetaOapg.properties.triangleType + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + shapeType: typing.Union[MetaOapg.properties.shapeType, str, ], + triangleType: typing.Union[MetaOapg.properties.triangleType, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'TriangleInterface': + return super().__new__( + cls, + *args, + shapeType=shapeType, + triangleType=triangleType, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/user.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/user.py new file mode 100644 index 00000000000..c8beb19d825 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/user.py @@ -0,0 +1,241 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class User( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + id = schemas.Int64Schema + username = schemas.StrSchema + firstName = schemas.StrSchema + lastName = schemas.StrSchema + email = schemas.StrSchema + password = schemas.StrSchema + phone = schemas.StrSchema + userStatus = schemas.Int32Schema + objectWithNoDeclaredProps = schemas.DictSchema + + + class objectWithNoDeclaredPropsNullable( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'objectWithNoDeclaredPropsNullable': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anyTypeProp = schemas.AnyTypeSchema + + + class anyTypeExceptNullProp( + schemas.ComposedSchema, + ): + + + class MetaOapg: + not_schema = schemas.NoneSchema + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'anyTypeExceptNullProp': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anyTypePropNullable = schemas.AnyTypeSchema + __annotations__ = { + "id": id, + "username": username, + "firstName": firstName, + "lastName": lastName, + "email": email, + "password": password, + "phone": phone, + "userStatus": userStatus, + "objectWithNoDeclaredProps": objectWithNoDeclaredProps, + "objectWithNoDeclaredPropsNullable": objectWithNoDeclaredPropsNullable, + "anyTypeProp": anyTypeProp, + "anyTypeExceptNullProp": anyTypeExceptNullProp, + "anyTypePropNullable": anyTypePropNullable, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + username: typing.Union[MetaOapg.properties.username, str, schemas.Unset] = schemas.unset, + firstName: typing.Union[MetaOapg.properties.firstName, str, schemas.Unset] = schemas.unset, + lastName: typing.Union[MetaOapg.properties.lastName, str, schemas.Unset] = schemas.unset, + email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, + password: typing.Union[MetaOapg.properties.password, str, schemas.Unset] = schemas.unset, + phone: typing.Union[MetaOapg.properties.phone, str, schemas.Unset] = schemas.unset, + userStatus: typing.Union[MetaOapg.properties.userStatus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + objectWithNoDeclaredProps: typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + objectWithNoDeclaredPropsNullable: typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, + anyTypeProp: typing.Union[MetaOapg.properties.anyTypeProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + anyTypeExceptNullProp: typing.Union[MetaOapg.properties.anyTypeExceptNullProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + anyTypePropNullable: typing.Union[MetaOapg.properties.anyTypePropNullable, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'User': + return super().__new__( + cls, + *args, + id=id, + username=username, + firstName=firstName, + lastName=lastName, + email=email, + password=password, + phone=phone, + userStatus=userStatus, + objectWithNoDeclaredProps=objectWithNoDeclaredProps, + objectWithNoDeclaredPropsNullable=objectWithNoDeclaredPropsNullable, + anyTypeProp=anyTypeProp, + anyTypeExceptNullProp=anyTypeExceptNullProp, + anyTypePropNullable=anyTypePropNullable, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/user.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/user.pyi new file mode 100644 index 00000000000..c8beb19d825 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/user.pyi @@ -0,0 +1,241 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class User( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + id = schemas.Int64Schema + username = schemas.StrSchema + firstName = schemas.StrSchema + lastName = schemas.StrSchema + email = schemas.StrSchema + password = schemas.StrSchema + phone = schemas.StrSchema + userStatus = schemas.Int32Schema + objectWithNoDeclaredProps = schemas.DictSchema + + + class objectWithNoDeclaredPropsNullable( + schemas.DictBase, + schemas.NoneBase, + schemas.Schema, + schemas.NoneFrozenDictMixin + ): + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'objectWithNoDeclaredPropsNullable': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anyTypeProp = schemas.AnyTypeSchema + + + class anyTypeExceptNullProp( + schemas.ComposedSchema, + ): + + + class MetaOapg: + not_schema = schemas.NoneSchema + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'anyTypeExceptNullProp': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + anyTypePropNullable = schemas.AnyTypeSchema + __annotations__ = { + "id": id, + "username": username, + "firstName": firstName, + "lastName": lastName, + "email": email, + "password": password, + "phone": phone, + "userStatus": userStatus, + "objectWithNoDeclaredProps": objectWithNoDeclaredProps, + "objectWithNoDeclaredPropsNullable": objectWithNoDeclaredPropsNullable, + "anyTypeProp": anyTypeProp, + "anyTypeExceptNullProp": anyTypeExceptNullProp, + "anyTypePropNullable": anyTypePropNullable, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + id: typing.Union[MetaOapg.properties.id, decimal.Decimal, int, schemas.Unset] = schemas.unset, + username: typing.Union[MetaOapg.properties.username, str, schemas.Unset] = schemas.unset, + firstName: typing.Union[MetaOapg.properties.firstName, str, schemas.Unset] = schemas.unset, + lastName: typing.Union[MetaOapg.properties.lastName, str, schemas.Unset] = schemas.unset, + email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, + password: typing.Union[MetaOapg.properties.password, str, schemas.Unset] = schemas.unset, + phone: typing.Union[MetaOapg.properties.phone, str, schemas.Unset] = schemas.unset, + userStatus: typing.Union[MetaOapg.properties.userStatus, decimal.Decimal, int, schemas.Unset] = schemas.unset, + objectWithNoDeclaredProps: typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + objectWithNoDeclaredPropsNullable: typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, dict, frozendict.frozendict, None, schemas.Unset] = schemas.unset, + anyTypeProp: typing.Union[MetaOapg.properties.anyTypeProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + anyTypeExceptNullProp: typing.Union[MetaOapg.properties.anyTypeExceptNullProp, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + anyTypePropNullable: typing.Union[MetaOapg.properties.anyTypePropNullable, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'User': + return super().__new__( + cls, + *args, + id=id, + username=username, + firstName=firstName, + lastName=lastName, + email=email, + password=password, + phone=phone, + userStatus=userStatus, + objectWithNoDeclaredProps=objectWithNoDeclaredProps, + objectWithNoDeclaredPropsNullable=objectWithNoDeclaredPropsNullable, + anyTypeProp=anyTypeProp, + anyTypeExceptNullProp=anyTypeExceptNullProp, + anyTypePropNullable=anyTypePropNullable, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.py new file mode 100644 index 00000000000..92a3825e376 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class UUIDString( + schemas.UUIDSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uuid' + min_length = 1 diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.pyi new file mode 100644 index 00000000000..80495060cf8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/uuid_string.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class UUIDString( + schemas.UUIDSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.py new file mode 100644 index 00000000000..b645789bd15 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Whale( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "whale": "WHALE", + } + + @schemas.classproperty + def WHALE(cls): + return cls("whale") + hasBaleen = schemas.BoolSchema + hasTeeth = schemas.BoolSchema + __annotations__ = { + "className": className, + "hasBaleen": hasBaleen, + "hasTeeth": hasTeeth, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + hasBaleen: typing.Union[MetaOapg.properties.hasBaleen, bool, schemas.Unset] = schemas.unset, + hasTeeth: typing.Union[MetaOapg.properties.hasTeeth, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Whale': + return super().__new__( + cls, + *args, + className=className, + hasBaleen=hasBaleen, + hasTeeth=hasTeeth, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.pyi new file mode 100644 index 00000000000..48e2538cb8c --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/whale.pyi @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Whale( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def WHALE(cls): + return cls("whale") + hasBaleen = schemas.BoolSchema + hasTeeth = schemas.BoolSchema + __annotations__ = { + "className": className, + "hasBaleen": hasBaleen, + "hasTeeth": hasTeeth, + } + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + hasBaleen: typing.Union[MetaOapg.properties.hasBaleen, bool, schemas.Unset] = schemas.unset, + hasTeeth: typing.Union[MetaOapg.properties.hasTeeth, bool, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Whale': + return super().__new__( + cls, + *args, + className=className, + hasBaleen=hasBaleen, + hasTeeth=hasTeeth, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.py new file mode 100644 index 00000000000..960a43f5921 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Zebra( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "zebra": "ZEBRA", + } + + @schemas.classproperty + def ZEBRA(cls): + return cls("zebra") + + + class type( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "plains": "PLAINS", + "mountain": "MOUNTAIN", + "grevys": "GREVYS", + } + + @schemas.classproperty + def PLAINS(cls): + return cls("plains") + + @schemas.classproperty + def MOUNTAIN(cls): + return cls("mountain") + + @schemas.classproperty + def GREVYS(cls): + return cls("grevys") + __annotations__ = { + "className": className, + "type": type, + } + additional_properties = schemas.AnyTypeSchema + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + + @typing.overload + def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'Zebra': + return super().__new__( + cls, + *args, + className=className, + type=type, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.pyi b/samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.pyi new file mode 100644 index 00000000000..3666395b313 --- /dev/null +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/zebra.pyi @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from petstore_api import schemas # noqa: F401 + + +class Zebra( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "className", + } + + class properties: + + + class className( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def ZEBRA(cls): + return cls("zebra") + + + class type( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def PLAINS(cls): + return cls("plains") + + @schemas.classproperty + def MOUNTAIN(cls): + return cls("mountain") + + @schemas.classproperty + def GREVYS(cls): + return cls("grevys") + __annotations__ = { + "className": className, + "type": type, + } + additional_properties = schemas.AnyTypeSchema + + className: MetaOapg.properties.className + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... + + @typing.overload + def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + className: typing.Union[MetaOapg.properties.className, str, ], + type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + ) -> 'Zebra': + return super().__new__( + cls, + *args, + className=className, + type=type, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_class.py new file mode 100644 index 00000000000..8aa09106708 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_class.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.additional_properties_class import AdditionalPropertiesClass +from petstore_api import configuration + + +class TestAdditionalPropertiesClass(unittest.TestCase): + """AdditionalPropertiesClass unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_validator.py b/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_validator.py new file mode 100644 index 00000000000..f1ec27f7a68 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_validator.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.additional_properties_validator import AdditionalPropertiesValidator +from petstore_api import configuration + + +class TestAdditionalPropertiesValidator(unittest.TestCase): + """AdditionalPropertiesValidator unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_with_array_of_enums.py new file mode 100644 index 00000000000..ebacf6f2566 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_additional_properties_with_array_of_enums.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api import configuration + + +class TestAdditionalPropertiesWithArrayOfEnums(unittest.TestCase): + """AdditionalPropertiesWithArrayOfEnums unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_address.py b/samples/openapi3/client/petstore/python/test/components/schema/test_address.py new file mode 100644 index 00000000000..aa3b444923c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_address.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.address import Address +from petstore_api import configuration + + +class TestAddress(unittest.TestCase): + """Address unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_animal.py b/samples/openapi3/client/petstore/python/test/components/schema/test_animal.py new file mode 100644 index 00000000000..02b0b28c776 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_animal.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.animal import Animal +from petstore_api import configuration + + +class TestAnimal(unittest.TestCase): + """Animal unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_animal_farm.py b/samples/openapi3/client/petstore/python/test/components/schema/test_animal_farm.py new file mode 100644 index 00000000000..c81ee608560 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_animal_farm.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.animal_farm import AnimalFarm +from petstore_api import configuration + + +class TestAnimalFarm(unittest.TestCase): + """AnimalFarm unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_any_type_and_format.py b/samples/openapi3/client/petstore/python/test/components/schema/test_any_type_and_format.py new file mode 100644 index 00000000000..312389fdcee --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_any_type_and_format.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.any_type_and_format import AnyTypeAndFormat +from petstore_api import configuration + + +class TestAnyTypeAndFormat(unittest.TestCase): + """AnyTypeAndFormat unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_any_type_not_string.py b/samples/openapi3/client/petstore/python/test/components/schema/test_any_type_not_string.py new file mode 100644 index 00000000000..b8392bdc42f --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_any_type_not_string.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.any_type_not_string import AnyTypeNotString +from petstore_api import configuration + + +class TestAnyTypeNotString(unittest.TestCase): + """AnyTypeNotString unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_api_response.py b/samples/openapi3/client/petstore/python/test/components/schema/test_api_response.py new file mode 100644 index 00000000000..09b2c9e8dfc --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_api_response.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.api_response import ApiResponse +from petstore_api import configuration + + +class TestApiResponse(unittest.TestCase): + """ApiResponse unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_apple.py b/samples/openapi3/client/petstore/python/test/components/schema/test_apple.py new file mode 100644 index 00000000000..3662d1e2aee --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_apple.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.apple import Apple +from petstore_api import configuration + + +class TestApple(unittest.TestCase): + """Apple unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_apple_req.py b/samples/openapi3/client/petstore/python/test/components/schema/test_apple_req.py new file mode 100644 index 00000000000..a8709008fa3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_apple_req.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.apple_req import AppleReq +from petstore_api import configuration + + +class TestAppleReq(unittest.TestCase): + """AppleReq unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_array_holding_any_type.py b/samples/openapi3/client/petstore/python/test/components/schema/test_array_holding_any_type.py new file mode 100644 index 00000000000..dc453e72a83 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_array_holding_any_type.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.array_holding_any_type import ArrayHoldingAnyType +from petstore_api import configuration + + +class TestArrayHoldingAnyType(unittest.TestCase): + """ArrayHoldingAnyType unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_array_of_number_only.py new file mode 100644 index 00000000000..1170d7bbc2b --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_array_of_number_only.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly +from petstore_api import configuration + + +class TestArrayOfArrayOfNumberOnly(unittest.TestCase): + """ArrayOfArrayOfNumberOnly unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_enums.py b/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_enums.py new file mode 100644 index 00000000000..595474d7a1a --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_enums.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.array_of_enums import ArrayOfEnums +from petstore_api import configuration + + +class TestArrayOfEnums(unittest.TestCase): + """ArrayOfEnums unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_number_only.py new file mode 100644 index 00000000000..f538c7eb0fe --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_array_of_number_only.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.array_of_number_only import ArrayOfNumberOnly +from petstore_api import configuration + + +class TestArrayOfNumberOnly(unittest.TestCase): + """ArrayOfNumberOnly unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_array_test.py b/samples/openapi3/client/petstore/python/test/components/schema/test_array_test.py new file mode 100644 index 00000000000..3d74d16746f --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_array_test.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.array_test import ArrayTest +from petstore_api import configuration + + +class TestArrayTest(unittest.TestCase): + """ArrayTest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_array_with_validations_in_items.py b/samples/openapi3/client/petstore/python/test/components/schema/test_array_with_validations_in_items.py new file mode 100644 index 00000000000..b3fbd82f6a1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_array_with_validations_in_items.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api import configuration + + +class TestArrayWithValidationsInItems(unittest.TestCase): + """ArrayWithValidationsInItems unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_banana.py b/samples/openapi3/client/petstore/python/test/components/schema/test_banana.py new file mode 100644 index 00000000000..dcbfbfc2d48 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_banana.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.banana import Banana +from petstore_api import configuration + + +class TestBanana(unittest.TestCase): + """Banana unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_banana_req.py b/samples/openapi3/client/petstore/python/test/components/schema/test_banana_req.py new file mode 100644 index 00000000000..508ef000715 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_banana_req.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.banana_req import BananaReq +from petstore_api import configuration + + +class TestBananaReq(unittest.TestCase): + """BananaReq unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_bar.py b/samples/openapi3/client/petstore/python/test/components/schema/test_bar.py new file mode 100644 index 00000000000..4c583f22c2c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_bar.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.bar import Bar +from petstore_api import configuration + + +class TestBar(unittest.TestCase): + """Bar unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_basque_pig.py b/samples/openapi3/client/petstore/python/test/components/schema/test_basque_pig.py new file mode 100644 index 00000000000..1da70dbe0b1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_basque_pig.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.basque_pig import BasquePig +from petstore_api import configuration + + +class TestBasquePig(unittest.TestCase): + """BasquePig unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_boolean.py b/samples/openapi3/client/petstore/python/test/components/schema/test_boolean.py new file mode 100644 index 00000000000..e0e2048d72c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_boolean.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.boolean import Boolean +from petstore_api import configuration + + +class TestBoolean(unittest.TestCase): + """Boolean unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_boolean_enum.py b/samples/openapi3/client/petstore/python/test/components/schema/test_boolean_enum.py new file mode 100644 index 00000000000..1509659f4f8 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_boolean_enum.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.boolean_enum import BooleanEnum +from petstore_api import configuration + + +class TestBooleanEnum(unittest.TestCase): + """BooleanEnum unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_capitalization.py b/samples/openapi3/client/petstore/python/test/components/schema/test_capitalization.py new file mode 100644 index 00000000000..f3873a5f6d5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_capitalization.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.capitalization import Capitalization +from petstore_api import configuration + + +class TestCapitalization(unittest.TestCase): + """Capitalization unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_cat.py b/samples/openapi3/client/petstore/python/test/components/schema/test_cat.py new file mode 100644 index 00000000000..2356ee93d36 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_cat.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.cat import Cat +from petstore_api import configuration + + +class TestCat(unittest.TestCase): + """Cat unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_category.py b/samples/openapi3/client/petstore/python/test/components/schema/test_category.py new file mode 100644 index 00000000000..0bdb489d0bb --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_category.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.category import Category +from petstore_api import configuration + + +class TestCategory(unittest.TestCase): + """Category unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_child_cat.py b/samples/openapi3/client/petstore/python/test/components/schema/test_child_cat.py new file mode 100644 index 00000000000..c7f781d5cd3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_child_cat.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.child_cat import ChildCat +from petstore_api import configuration + + +class TestChildCat(unittest.TestCase): + """ChildCat unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_class_model.py b/samples/openapi3/client/petstore/python/test/components/schema/test_class_model.py new file mode 100644 index 00000000000..c3323c671b0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_class_model.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.class_model import ClassModel +from petstore_api import configuration + + +class TestClassModel(unittest.TestCase): + """ClassModel unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_client.py b/samples/openapi3/client/petstore/python/test/components/schema/test_client.py new file mode 100644 index 00000000000..723dfd34d6c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_client.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.client import Client +from petstore_api import configuration + + +class TestClient(unittest.TestCase): + """Client unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_complex_quadrilateral.py b/samples/openapi3/client/petstore/python/test/components/schema/test_complex_quadrilateral.py new file mode 100644 index 00000000000..7bc5faf4f32 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_complex_quadrilateral.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral +from petstore_api import configuration + + +class TestComplexQuadrilateral(unittest.TestCase): + """ComplexQuadrilateral unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_any_of_different_types_no_validations.py new file mode 100644 index 00000000000..bd0605c1943 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_any_of_different_types_no_validations.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_any_of_different_types_no_validations import ComposedAnyOfDifferentTypesNoValidations +from petstore_api import configuration + + +class TestComposedAnyOfDifferentTypesNoValidations(unittest.TestCase): + """ComposedAnyOfDifferentTypesNoValidations unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_array.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_array.py new file mode 100644 index 00000000000..95b9c6230ba --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_array.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_array import ComposedArray +from petstore_api import configuration + + +class TestComposedArray(unittest.TestCase): + """ComposedArray unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_bool.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_bool.py new file mode 100644 index 00000000000..1c38e60b7a3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_bool.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_bool import ComposedBool +from petstore_api import configuration + + +class TestComposedBool(unittest.TestCase): + """ComposedBool unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_none.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_none.py new file mode 100644 index 00000000000..279e44b258a --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_none.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_none import ComposedNone +from petstore_api import configuration + + +class TestComposedNone(unittest.TestCase): + """ComposedNone unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_number.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_number.py new file mode 100644 index 00000000000..84519b919a9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_number.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_number import ComposedNumber +from petstore_api import configuration + + +class TestComposedNumber(unittest.TestCase): + """ComposedNumber unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_object.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_object.py new file mode 100644 index 00000000000..ab3ad73a628 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_object.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_object import ComposedObject +from petstore_api import configuration + + +class TestComposedObject(unittest.TestCase): + """ComposedObject unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_one_of_different_types.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_one_of_different_types.py new file mode 100644 index 00000000000..49a0483e30c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_one_of_different_types.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api import configuration + + +class TestComposedOneOfDifferentTypes(unittest.TestCase): + """ComposedOneOfDifferentTypes unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_composed_string.py b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_string.py new file mode 100644 index 00000000000..83b45c26226 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_composed_string.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.composed_string import ComposedString +from petstore_api import configuration + + +class TestComposedString(unittest.TestCase): + """ComposedString unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_currency.py b/samples/openapi3/client/petstore/python/test/components/schema/test_currency.py new file mode 100644 index 00000000000..515f156bb46 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_currency.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.currency import Currency +from petstore_api import configuration + + +class TestCurrency(unittest.TestCase): + """Currency unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_danish_pig.py b/samples/openapi3/client/petstore/python/test/components/schema/test_danish_pig.py new file mode 100644 index 00000000000..f66f2e0af27 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_danish_pig.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.danish_pig import DanishPig +from petstore_api import configuration + + +class TestDanishPig(unittest.TestCase): + """DanishPig unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_date_time_test.py b/samples/openapi3/client/petstore/python/test/components/schema/test_date_time_test.py new file mode 100644 index 00000000000..4979d3f1724 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_date_time_test.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.date_time_test import DateTimeTest +from petstore_api import configuration + + +class TestDateTimeTest(unittest.TestCase): + """DateTimeTest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_date_time_with_validations.py b/samples/openapi3/client/petstore/python/test/components/schema/test_date_time_with_validations.py new file mode 100644 index 00000000000..5cdc679472b --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_date_time_with_validations.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.date_time_with_validations import DateTimeWithValidations +from petstore_api import configuration + + +class TestDateTimeWithValidations(unittest.TestCase): + """DateTimeWithValidations unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_date_with_validations.py b/samples/openapi3/client/petstore/python/test/components/schema/test_date_with_validations.py new file mode 100644 index 00000000000..cfab4f00713 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_date_with_validations.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.date_with_validations import DateWithValidations +from petstore_api import configuration + + +class TestDateWithValidations(unittest.TestCase): + """DateWithValidations unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_decimal_payload.py b/samples/openapi3/client/petstore/python/test/components/schema/test_decimal_payload.py new file mode 100644 index 00000000000..870c95061a6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_decimal_payload.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.decimal_payload import DecimalPayload +from petstore_api import configuration + + +class TestDecimalPayload(unittest.TestCase): + """DecimalPayload unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_dog.py b/samples/openapi3/client/petstore/python/test/components/schema/test_dog.py new file mode 100644 index 00000000000..f30d06c8439 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_dog.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.dog import Dog +from petstore_api import configuration + + +class TestDog(unittest.TestCase): + """Dog unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_drawing.py b/samples/openapi3/client/petstore/python/test/components/schema/test_drawing.py new file mode 100644 index 00000000000..31fe628596b --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_drawing.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.drawing import Drawing +from petstore_api import configuration + + +class TestDrawing(unittest.TestCase): + """Drawing unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_enum_arrays.py b/samples/openapi3/client/petstore/python/test/components/schema/test_enum_arrays.py new file mode 100644 index 00000000000..b44ecaca694 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_enum_arrays.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.enum_arrays import EnumArrays +from petstore_api import configuration + + +class TestEnumArrays(unittest.TestCase): + """EnumArrays unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_enum_class.py b/samples/openapi3/client/petstore/python/test/components/schema/test_enum_class.py new file mode 100644 index 00000000000..b5019034b60 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_enum_class.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.enum_class import EnumClass +from petstore_api import configuration + + +class TestEnumClass(unittest.TestCase): + """EnumClass unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_enum_test.py b/samples/openapi3/client/petstore/python/test/components/schema/test_enum_test.py new file mode 100644 index 00000000000..e13c90df04d --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_enum_test.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.enum_test import EnumTest +from petstore_api import configuration + + +class TestEnumTest(unittest.TestCase): + """EnumTest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_equilateral_triangle.py b/samples/openapi3/client/petstore/python/test/components/schema/test_equilateral_triangle.py new file mode 100644 index 00000000000..a017d0a5ea2 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_equilateral_triangle.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle +from petstore_api import configuration + + +class TestEquilateralTriangle(unittest.TestCase): + """EquilateralTriangle unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_file.py b/samples/openapi3/client/petstore/python/test/components/schema/test_file.py new file mode 100644 index 00000000000..dd610b6b7f6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_file.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.file import File +from petstore_api import configuration + + +class TestFile(unittest.TestCase): + """File unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python/test/components/schema/test_file_schema_test_class.py new file mode 100644 index 00000000000..aeef3d815a1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_file_schema_test_class.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass +from petstore_api import configuration + + +class TestFileSchemaTestClass(unittest.TestCase): + """FileSchemaTestClass unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_foo.py b/samples/openapi3/client/petstore/python/test/components/schema/test_foo.py new file mode 100644 index 00000000000..42a074eb2f5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_foo.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.foo import Foo +from petstore_api import configuration + + +class TestFoo(unittest.TestCase): + """Foo unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_format_test.py b/samples/openapi3/client/petstore/python/test/components/schema/test_format_test.py new file mode 100644 index 00000000000..1f7154c23cc --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_format_test.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.format_test import FormatTest +from petstore_api import configuration + + +class TestFormatTest(unittest.TestCase): + """FormatTest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_from_schema.py b/samples/openapi3/client/petstore/python/test/components/schema/test_from_schema.py new file mode 100644 index 00000000000..8f38981ced3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_from_schema.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.from_schema import FromSchema +from petstore_api import configuration + + +class TestFromSchema(unittest.TestCase): + """FromSchema unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_fruit.py b/samples/openapi3/client/petstore/python/test/components/schema/test_fruit.py new file mode 100644 index 00000000000..6898cbdbde3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_fruit.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.fruit import Fruit +from petstore_api import configuration + + +class TestFruit(unittest.TestCase): + """Fruit unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_fruit_req.py b/samples/openapi3/client/petstore/python/test/components/schema/test_fruit_req.py new file mode 100644 index 00000000000..8f170b0e371 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_fruit_req.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.fruit_req import FruitReq +from petstore_api import configuration + + +class TestFruitReq(unittest.TestCase): + """FruitReq unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_gm_fruit.py b/samples/openapi3/client/petstore/python/test/components/schema/test_gm_fruit.py new file mode 100644 index 00000000000..0629c5c7fe6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_gm_fruit.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.gm_fruit import GmFruit +from petstore_api import configuration + + +class TestGmFruit(unittest.TestCase): + """GmFruit unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_grandparent_animal.py b/samples/openapi3/client/petstore/python/test/components/schema/test_grandparent_animal.py new file mode 100644 index 00000000000..1ff81b7d942 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_grandparent_animal.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.grandparent_animal import GrandparentAnimal +from petstore_api import configuration + + +class TestGrandparentAnimal(unittest.TestCase): + """GrandparentAnimal unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_has_only_read_only.py b/samples/openapi3/client/petstore/python/test/components/schema/test_has_only_read_only.py new file mode 100644 index 00000000000..aeee8e7e0f3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_has_only_read_only.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.has_only_read_only import HasOnlyReadOnly +from petstore_api import configuration + + +class TestHasOnlyReadOnly(unittest.TestCase): + """HasOnlyReadOnly unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_health_check_result.py b/samples/openapi3/client/petstore/python/test/components/schema/test_health_check_result.py new file mode 100644 index 00000000000..6cffea38e63 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_health_check_result.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.health_check_result import HealthCheckResult +from petstore_api import configuration + + +class TestHealthCheckResult(unittest.TestCase): + """HealthCheckResult unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum.py b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum.py new file mode 100644 index 00000000000..126d4b980c1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.integer_enum import IntegerEnum +from petstore_api import configuration + + +class TestIntegerEnum(unittest.TestCase): + """IntegerEnum unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_big.py b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_big.py new file mode 100644 index 00000000000..b56d3a85fd3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_big.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.integer_enum_big import IntegerEnumBig +from petstore_api import configuration + + +class TestIntegerEnumBig(unittest.TestCase): + """IntegerEnumBig unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_one_value.py b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_one_value.py new file mode 100644 index 00000000000..ba41c9ea341 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_one_value.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue +from petstore_api import configuration + + +class TestIntegerEnumOneValue(unittest.TestCase): + """IntegerEnumOneValue unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_with_default_value.py new file mode 100644 index 00000000000..7a9bd46f6c5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_enum_with_default_value.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.integer_enum_with_default_value import IntegerEnumWithDefaultValue +from petstore_api import configuration + + +class TestIntegerEnumWithDefaultValue(unittest.TestCase): + """IntegerEnumWithDefaultValue unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_integer_max10.py b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_max10.py new file mode 100644 index 00000000000..cf3001d643a --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_max10.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.integer_max10 import IntegerMax10 +from petstore_api import configuration + + +class TestIntegerMax10(unittest.TestCase): + """IntegerMax10 unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_integer_min15.py b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_min15.py new file mode 100644 index 00000000000..e7639c72d76 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_integer_min15.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.integer_min15 import IntegerMin15 +from petstore_api import configuration + + +class TestIntegerMin15(unittest.TestCase): + """IntegerMin15 unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_isosceles_triangle.py b/samples/openapi3/client/petstore/python/test/components/schema/test_isosceles_triangle.py new file mode 100644 index 00000000000..1e39b2cd02c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_isosceles_triangle.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle +from petstore_api import configuration + + +class TestIsoscelesTriangle(unittest.TestCase): + """IsoscelesTriangle unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request.py b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request.py new file mode 100644 index 00000000000..83a3196d66b --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.json_patch_request import JSONPatchRequest +from petstore_api import configuration + + +class TestJSONPatchRequest(unittest.TestCase): + """JSONPatchRequest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_add_replace_test.py b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_add_replace_test.py new file mode 100644 index 00000000000..20227e4b64b --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_add_replace_test.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest +from petstore_api import configuration + + +class TestJSONPatchRequestAddReplaceTest(unittest.TestCase): + """JSONPatchRequestAddReplaceTest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_move_copy.py b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_move_copy.py new file mode 100644 index 00000000000..e5382437cc0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_move_copy.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.json_patch_request_move_copy import JSONPatchRequestMoveCopy +from petstore_api import configuration + + +class TestJSONPatchRequestMoveCopy(unittest.TestCase): + """JSONPatchRequestMoveCopy unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_remove.py b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_remove.py new file mode 100644 index 00000000000..e0e7ce7d034 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_json_patch_request_remove.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.json_patch_request_remove import JSONPatchRequestRemove +from petstore_api import configuration + + +class TestJSONPatchRequestRemove(unittest.TestCase): + """JSONPatchRequestRemove unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_mammal.py b/samples/openapi3/client/petstore/python/test/components/schema/test_mammal.py new file mode 100644 index 00000000000..e6139351be3 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_mammal.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.mammal import Mammal +from petstore_api import configuration + + +class TestMammal(unittest.TestCase): + """Mammal unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_map_test.py b/samples/openapi3/client/petstore/python/test/components/schema/test_map_test.py new file mode 100644 index 00000000000..3d613b722f5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_map_test.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.map_test import MapTest +from petstore_api import configuration + + +class TestMapTest(unittest.TestCase): + """MapTest unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/components/schema/test_mixed_properties_and_additional_properties_class.py new file mode 100644 index 00000000000..fc2364b3ba6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_mixed_properties_and_additional_properties_class.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass +from petstore_api import configuration + + +class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): + """MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_model200_response.py b/samples/openapi3/client/petstore/python/test/components/schema/test_model200_response.py new file mode 100644 index 00000000000..e631d076d52 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_model200_response.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.model200_response import Model200Response +from petstore_api import configuration + + +class TestModel200Response(unittest.TestCase): + """Model200Response unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_model_return.py b/samples/openapi3/client/petstore/python/test/components/schema/test_model_return.py new file mode 100644 index 00000000000..ce39809c273 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_model_return.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.model_return import ModelReturn +from petstore_api import configuration + + +class TestModelReturn(unittest.TestCase): + """ModelReturn unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_money.py b/samples/openapi3/client/petstore/python/test/components/schema/test_money.py new file mode 100644 index 00000000000..c714cd3f071 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_money.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.money import Money +from petstore_api import configuration + + +class TestMoney(unittest.TestCase): + """Money unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_name.py b/samples/openapi3/client/petstore/python/test/components/schema/test_name.py new file mode 100644 index 00000000000..2528d3de6d1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_name.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.name import Name +from petstore_api import configuration + + +class TestName(unittest.TestCase): + """Name unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_no_additional_properties.py b/samples/openapi3/client/petstore/python/test/components/schema/test_no_additional_properties.py new file mode 100644 index 00000000000..fa33821fd1e --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_no_additional_properties.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.no_additional_properties import NoAdditionalProperties +from petstore_api import configuration + + +class TestNoAdditionalProperties(unittest.TestCase): + """NoAdditionalProperties unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_class.py b/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_class.py new file mode 100644 index 00000000000..131c65d796f --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_class.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.nullable_class import NullableClass +from petstore_api import configuration + + +class TestNullableClass(unittest.TestCase): + """NullableClass unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_shape.py b/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_shape.py new file mode 100644 index 00000000000..4c0aec52f2c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_shape.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.nullable_shape import NullableShape +from petstore_api import configuration + + +class TestNullableShape(unittest.TestCase): + """NullableShape unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_string.py b/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_string.py new file mode 100644 index 00000000000..fe75a05dfff --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_nullable_string.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.nullable_string import NullableString +from petstore_api import configuration + + +class TestNullableString(unittest.TestCase): + """NullableString unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_number.py b/samples/openapi3/client/petstore/python/test/components/schema/test_number.py new file mode 100644 index 00000000000..635bf94b01b --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_number.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.number import Number +from petstore_api import configuration + + +class TestNumber(unittest.TestCase): + """Number unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_number_only.py b/samples/openapi3/client/petstore/python/test/components/schema/test_number_only.py new file mode 100644 index 00000000000..7ab3095e52d --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_number_only.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.number_only import NumberOnly +from petstore_api import configuration + + +class TestNumberOnly(unittest.TestCase): + """NumberOnly unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_number_with_validations.py b/samples/openapi3/client/petstore/python/test/components/schema/test_number_with_validations.py new file mode 100644 index 00000000000..691fd5fb799 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_number_with_validations.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.number_with_validations import NumberWithValidations +from petstore_api import configuration + + +class TestNumberWithValidations(unittest.TestCase): + """NumberWithValidations unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_interface.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_interface.py new file mode 100644 index 00000000000..538b94fa113 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_interface.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_interface import ObjectInterface +from petstore_api import configuration + + +class TestObjectInterface(unittest.TestCase): + """ObjectInterface unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_model_with_ref_props.py new file mode 100644 index 00000000000..75f6583793a --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_model_with_ref_props.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api import configuration + + +class TestObjectModelWithRefProps(unittest.TestCase): + """ObjectModelWithRefProps unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py new file mode 100644 index 00000000000..d2da2132ed1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp +from petstore_api import configuration + + +class TestObjectWithAllOfWithReqTestPropFromUnsetAddProp(unittest.TestCase): + """ObjectWithAllOfWithReqTestPropFromUnsetAddProp unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_decimal_properties.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_decimal_properties.py new file mode 100644 index 00000000000..da11142371d --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_decimal_properties.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_decimal_properties import ObjectWithDecimalProperties +from petstore_api import configuration + + +class TestObjectWithDecimalProperties(unittest.TestCase): + """ObjectWithDecimalProperties unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_difficultly_named_props.py new file mode 100644 index 00000000000..12714bd8309 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_difficultly_named_props.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps +from petstore_api import configuration + + +class TestObjectWithDifficultlyNamedProps(unittest.TestCase): + """ObjectWithDifficultlyNamedProps unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_inline_composition_property.py new file mode 100644 index 00000000000..4a9759281c0 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_inline_composition_property.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_inline_composition_property import ObjectWithInlineCompositionProperty +from petstore_api import configuration + + +class TestObjectWithInlineCompositionProperty(unittest.TestCase): + """ObjectWithInlineCompositionProperty unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_invalid_named_refed_properties.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_invalid_named_refed_properties.py new file mode 100644 index 00000000000..941fdb58d0c --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_invalid_named_refed_properties.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties +from petstore_api import configuration + + +class TestObjectWithInvalidNamedRefedProperties(unittest.TestCase): + """ObjectWithInvalidNamedRefedProperties unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_optional_test_prop.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_optional_test_prop.py new file mode 100644 index 00000000000..8da69416663 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_optional_test_prop.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_optional_test_prop import ObjectWithOptionalTestProp +from petstore_api import configuration + + +class TestObjectWithOptionalTestProp(unittest.TestCase): + """ObjectWithOptionalTestProp unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_validations.py b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_validations.py new file mode 100644 index 00000000000..c2a32b31ab1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_object_with_validations.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.object_with_validations import ObjectWithValidations +from petstore_api import configuration + + +class TestObjectWithValidations(unittest.TestCase): + """ObjectWithValidations unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_order.py b/samples/openapi3/client/petstore/python/test/components/schema/test_order.py new file mode 100644 index 00000000000..16e105fb98d --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_order.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.order import Order +from petstore_api import configuration + + +class TestOrder(unittest.TestCase): + """Order unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_parent_pet.py b/samples/openapi3/client/petstore/python/test/components/schema/test_parent_pet.py new file mode 100644 index 00000000000..cd59bd34bc4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_parent_pet.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.parent_pet import ParentPet +from petstore_api import configuration + + +class TestParentPet(unittest.TestCase): + """ParentPet unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_pet.py b/samples/openapi3/client/petstore/python/test/components/schema/test_pet.py new file mode 100644 index 00000000000..e80a51e38c1 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_pet.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.pet import Pet +from petstore_api import configuration + + +class TestPet(unittest.TestCase): + """Pet unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_pig.py b/samples/openapi3/client/petstore/python/test/components/schema/test_pig.py new file mode 100644 index 00000000000..8305491ba38 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_pig.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.pig import Pig +from petstore_api import configuration + + +class TestPig(unittest.TestCase): + """Pig unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_player.py b/samples/openapi3/client/petstore/python/test/components/schema/test_player.py new file mode 100644 index 00000000000..3cea2f7fcf7 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_player.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.player import Player +from petstore_api import configuration + + +class TestPlayer(unittest.TestCase): + """Player unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral.py b/samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral.py new file mode 100644 index 00000000000..bd0df64b143 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.quadrilateral import Quadrilateral +from petstore_api import configuration + + +class TestQuadrilateral(unittest.TestCase): + """Quadrilateral unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral_interface.py b/samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral_interface.py new file mode 100644 index 00000000000..579a02747de --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_quadrilateral_interface.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface +from petstore_api import configuration + + +class TestQuadrilateralInterface(unittest.TestCase): + """QuadrilateralInterface unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_read_only_first.py b/samples/openapi3/client/petstore/python/test/components/schema/test_read_only_first.py new file mode 100644 index 00000000000..2b8f9ec8866 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_read_only_first.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.read_only_first import ReadOnlyFirst +from petstore_api import configuration + + +class TestReadOnlyFirst(unittest.TestCase): + """ReadOnlyFirst unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_scalene_triangle.py b/samples/openapi3/client/petstore/python/test/components/schema/test_scalene_triangle.py new file mode 100644 index 00000000000..c1d5563ff49 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_scalene_triangle.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.scalene_triangle import ScaleneTriangle +from petstore_api import configuration + + +class TestScaleneTriangle(unittest.TestCase): + """ScaleneTriangle unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_shape.py b/samples/openapi3/client/petstore/python/test/components/schema/test_shape.py new file mode 100644 index 00000000000..f1d6498d9e6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_shape.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.shape import Shape +from petstore_api import configuration + + +class TestShape(unittest.TestCase): + """Shape unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_shape_or_null.py b/samples/openapi3/client/petstore/python/test/components/schema/test_shape_or_null.py new file mode 100644 index 00000000000..5c070603dde --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_shape_or_null.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.shape_or_null import ShapeOrNull +from petstore_api import configuration + + +class TestShapeOrNull(unittest.TestCase): + """ShapeOrNull unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_simple_quadrilateral.py b/samples/openapi3/client/petstore/python/test/components/schema/test_simple_quadrilateral.py new file mode 100644 index 00000000000..491b3199a27 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_simple_quadrilateral.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.simple_quadrilateral import SimpleQuadrilateral +from petstore_api import configuration + + +class TestSimpleQuadrilateral(unittest.TestCase): + """SimpleQuadrilateral unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_some_object.py b/samples/openapi3/client/petstore/python/test/components/schema/test_some_object.py new file mode 100644 index 00000000000..cd3924eb896 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_some_object.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.some_object import SomeObject +from petstore_api import configuration + + +class TestSomeObject(unittest.TestCase): + """SomeObject unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_special_model_name.py b/samples/openapi3/client/petstore/python/test/components/schema/test_special_model_name.py new file mode 100644 index 00000000000..33a3ab307d5 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_special_model_name.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.special_model_name import SpecialModelName +from petstore_api import configuration + + +class TestSpecialModelName(unittest.TestCase): + """SpecialModelName unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_string.py b/samples/openapi3/client/petstore/python/test/components/schema/test_string.py new file mode 100644 index 00000000000..31e1c2a1a88 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_string.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.string import String +from petstore_api import configuration + + +class TestString(unittest.TestCase): + """String unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_string_boolean_map.py b/samples/openapi3/client/petstore/python/test/components/schema/test_string_boolean_map.py new file mode 100644 index 00000000000..dc662a16980 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_string_boolean_map.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.string_boolean_map import StringBooleanMap +from petstore_api import configuration + + +class TestStringBooleanMap(unittest.TestCase): + """StringBooleanMap unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_string_enum.py b/samples/openapi3/client/petstore/python/test/components/schema/test_string_enum.py new file mode 100644 index 00000000000..e17bc3a0ef6 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_string_enum.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.string_enum import StringEnum +from petstore_api import configuration + + +class TestStringEnum(unittest.TestCase): + """StringEnum unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_string_enum_with_default_value.py b/samples/openapi3/client/petstore/python/test/components/schema/test_string_enum_with_default_value.py new file mode 100644 index 00000000000..ff82ef6b7a9 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_string_enum_with_default_value.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.string_enum_with_default_value import StringEnumWithDefaultValue +from petstore_api import configuration + + +class TestStringEnumWithDefaultValue(unittest.TestCase): + """StringEnumWithDefaultValue unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_string_with_validation.py b/samples/openapi3/client/petstore/python/test/components/schema/test_string_with_validation.py new file mode 100644 index 00000000000..db4ed01ca72 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_string_with_validation.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.string_with_validation import StringWithValidation +from petstore_api import configuration + + +class TestStringWithValidation(unittest.TestCase): + """StringWithValidation unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_tag.py b/samples/openapi3/client/petstore/python/test/components/schema/test_tag.py new file mode 100644 index 00000000000..f33a75587eb --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_tag.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.tag import Tag +from petstore_api import configuration + + +class TestTag(unittest.TestCase): + """Tag unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_triangle.py b/samples/openapi3/client/petstore/python/test/components/schema/test_triangle.py new file mode 100644 index 00000000000..d1834fa382e --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_triangle.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.triangle import Triangle +from petstore_api import configuration + + +class TestTriangle(unittest.TestCase): + """Triangle unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_triangle_interface.py b/samples/openapi3/client/petstore/python/test/components/schema/test_triangle_interface.py new file mode 100644 index 00000000000..e2dd99318ae --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_triangle_interface.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.triangle_interface import TriangleInterface +from petstore_api import configuration + + +class TestTriangleInterface(unittest.TestCase): + """TriangleInterface unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_user.py b/samples/openapi3/client/petstore/python/test/components/schema/test_user.py new file mode 100644 index 00000000000..4eb5097f44f --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_user.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.user import User +from petstore_api import configuration + + +class TestUser(unittest.TestCase): + """User unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_uuid_string.py b/samples/openapi3/client/petstore/python/test/components/schema/test_uuid_string.py new file mode 100644 index 00000000000..1356e156ea4 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_uuid_string.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.uuid_string import UUIDString +from petstore_api import configuration + + +class TestUUIDString(unittest.TestCase): + """UUIDString unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_whale.py b/samples/openapi3/client/petstore/python/test/components/schema/test_whale.py new file mode 100644 index 00000000000..bd860a01602 --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_whale.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.whale import Whale +from petstore_api import configuration + + +class TestWhale(unittest.TestCase): + """Whale unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/components/schema/test_zebra.py b/samples/openapi3/client/petstore/python/test/components/schema/test_zebra.py new file mode 100644 index 00000000000..d53a83960ae --- /dev/null +++ b/samples/openapi3/client/petstore/python/test/components/schema/test_zebra.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + OpenAPI Petstore + + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Generated by: https://openapi-generator.tech +""" + +import unittest + +import petstore_api +from petstore_api.components.schema.zebra import Zebra +from petstore_api import configuration + + +class TestZebra(unittest.TestCase): + """Zebra unit test stubs""" + _configuration = configuration.Configuration() + + +if __name__ == '__main__': + unittest.main() From 9cc591523ba415ff7ca5d3565a0c58624c6d7ec3 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 09:09:38 -0700 Subject: [PATCH 05/11] Replaces model import with components.schema --- .../openapi3/client/petstore/python/README.md | 4 +-- .../components/schema/__init__.py | 2 +- .../test_additional_properties_class.py | 2 +- .../test_additional_properties_validator.py | 2 +- ...ditional_properties_with_array_of_enums.py | 2 +- .../python/test/test_models/test_address.py | 2 +- .../python/test/test_models/test_animal.py | 2 +- .../test/test_models/test_animal_farm.py | 2 +- .../test_models/test_any_type_and_format.py | 2 +- .../test_models/test_any_type_not_string.py | 2 +- .../test/test_models/test_api_response.py | 2 +- .../python/test/test_models/test_apple.py | 2 +- .../python/test/test_models/test_apple_req.py | 2 +- .../test_array_holding_any_type.py | 2 +- .../test_array_of_array_of_number_only.py | 2 +- .../test/test_models/test_array_of_enums.py | 2 +- .../test_models/test_array_of_number_only.py | 2 +- .../test/test_models/test_array_test.py | 2 +- .../test_array_with_validations_in_items.py | 2 +- .../python/test/test_models/test_banana.py | 2 +- .../test/test_models/test_banana_req.py | 2 +- .../python/test/test_models/test_bar.py | 2 +- .../test/test_models/test_basque_pig.py | 2 +- .../python/test/test_models/test_boolean.py | 2 +- .../test/test_models/test_boolean_enum.py | 2 +- .../test/test_models/test_capitalization.py | 2 +- .../python/test/test_models/test_cat.py | 2 +- .../python/test/test_models/test_category.py | 2 +- .../python/test/test_models/test_child_cat.py | 2 +- .../test/test_models/test_class_model.py | 2 +- .../python/test/test_models/test_client.py | 2 +- .../test_models/test_complex_quadrilateral.py | 2 +- ...d_any_of_different_types_no_validations.py | 2 +- .../test/test_models/test_composed_array.py | 2 +- .../test/test_models/test_composed_bool.py | 2 +- .../test/test_models/test_composed_none.py | 2 +- .../test/test_models/test_composed_number.py | 2 +- .../test/test_models/test_composed_object.py | 2 +- .../test_composed_one_of_different_types.py | 2 +- .../test/test_models/test_composed_string.py | 2 +- .../python/test/test_models/test_currency.py | 2 +- .../test/test_models/test_danish_pig.py | 2 +- .../test/test_models/test_date_time_test.py | 2 +- .../test_date_time_with_validations.py | 2 +- .../test_models/test_date_with_validations.py | 2 +- .../test/test_models/test_decimal_payload.py | 2 +- .../python/test/test_models/test_dog.py | 2 +- .../python/test/test_models/test_drawing.py | 2 +- .../test/test_models/test_enum_arrays.py | 2 +- .../test/test_models/test_enum_class.py | 2 +- .../python/test/test_models/test_enum_test.py | 2 +- .../test_models/test_equilateral_triangle.py | 2 +- .../python/test/test_models/test_file.py | 2 +- .../test_file_schema_test_class.py | 2 +- .../python/test/test_models/test_foo.py | 2 +- .../test/test_models/test_format_test.py | 2 +- .../test/test_models/test_from_schema.py | 2 +- .../python/test/test_models/test_fruit.py | 2 +- .../python/test/test_models/test_fruit_req.py | 2 +- .../python/test/test_models/test_gm_fruit.py | 2 +- .../test_models/test_grandparent_animal.py | 2 +- .../test_models/test_has_only_read_only.py | 2 +- .../test_models/test_health_check_result.py | 2 +- .../test/test_models/test_integer_enum.py | 2 +- .../test/test_models/test_integer_enum_big.py | 2 +- .../test_integer_enum_one_value.py | 2 +- .../test_integer_enum_with_default_value.py | 2 +- .../test/test_models/test_integer_max10.py | 2 +- .../test/test_models/test_integer_min15.py | 2 +- .../test_models/test_isosceles_triangle.py | 2 +- .../test_models/test_json_patch_request.py | 2 +- ...est_json_patch_request_add_replace_test.py | 2 +- .../test_json_patch_request_move_copy.py | 2 +- .../test_json_patch_request_remove.py | 2 +- .../python/test/test_models/test_mammal.py | 2 +- .../python/test/test_models/test_map_test.py | 2 +- ...perties_and_additional_properties_class.py | 2 +- .../test_models/test_model200_response.py | 2 +- .../test/test_models/test_model_return.py | 2 +- .../python/test/test_models/test_money.py | 2 +- .../python/test/test_models/test_name.py | 2 +- .../test_no_additional_properties.py | 2 +- .../test/test_models/test_nullable_class.py | 2 +- .../test/test_models/test_nullable_shape.py | 2 +- .../test/test_models/test_nullable_string.py | 2 +- .../python/test/test_models/test_number.py | 2 +- .../test/test_models/test_number_only.py | 2 +- .../test_number_with_validations.py | 2 +- .../test/test_models/test_object_interface.py | 2 +- .../test_object_model_with_ref_props.py | 2 +- ..._with_req_test_prop_from_unset_add_prop.py | 2 +- .../test_object_with_decimal_properties.py | 2 +- ...est_object_with_difficultly_named_props.py | 2 +- ...object_with_inline_composition_property.py | 2 +- ...ect_with_invalid_named_refed_properties.py | 2 +- .../test_object_with_optional_test_prop.py | 2 +- .../test_object_with_validations.py | 2 +- .../python/test/test_models/test_order.py | 2 +- .../test/test_models/test_parent_pet.py | 2 +- .../python/test/test_models/test_pet.py | 2 +- .../python/test/test_models/test_pig.py | 2 +- .../python/test/test_models/test_player.py | 2 +- .../test/test_models/test_quadrilateral.py | 2 +- .../test_quadrilateral_interface.py | 2 +- .../test/test_models/test_read_only_first.py | 2 +- .../test/test_models/test_scalene_triangle.py | 2 +- .../python/test/test_models/test_shape.py | 2 +- .../test/test_models/test_shape_or_null.py | 2 +- .../test_models/test_simple_quadrilateral.py | 2 +- .../test/test_models/test_some_object.py | 2 +- .../test_models/test_special_model_name.py | 2 +- .../python/test/test_models/test_string.py | 2 +- .../test_models/test_string_boolean_map.py | 2 +- .../test/test_models/test_string_enum.py | 2 +- .../test_string_enum_with_default_value.py | 2 +- .../test_string_with_validation.py | 2 +- .../python/test/test_models/test_tag.py | 2 +- .../python/test/test_models/test_triangle.py | 2 +- .../test_models/test_triangle_interface.py | 2 +- .../python/test/test_models/test_user.py | 2 +- .../test/test_models/test_uuid_string.py | 2 +- .../python/test/test_models/test_whale.py | 2 +- .../python/test/test_models/test_zebra.py | 2 +- .../test_additional_properties_class.py | 2 +- .../test_additional_properties_validator.py | 2 +- .../python/tests_manual/test_animal.py | 6 ++-- .../tests_manual/test_any_type_and_format.py | 2 +- .../tests_manual/test_any_type_not_string.py | 2 +- .../test_array_holding_any_type.py | 2 +- .../test_array_with_validations_in_items.py | 2 +- .../python/tests_manual/test_boolean_enum.py | 2 +- .../test_combine_object_schemas.py | 14 +++++----- .../tests_manual/test_combine_schemas.py | 18 ++++++------ .../python/tests_manual/test_composed_bool.py | 2 +- .../python/tests_manual/test_composed_none.py | 2 +- .../tests_manual/test_composed_number.py | 2 +- .../tests_manual/test_composed_object.py | 2 +- .../test_composed_one_of_different_types.py | 8 +++--- .../tests_manual/test_composed_string.py | 2 +- .../test_date_time_with_validations.py | 2 +- .../test_date_with_validations.py | 2 +- .../tests_manual/test_decimal_payload.py | 2 +- .../tests_manual/test_deserialization.py | 24 ++++++++-------- .../test_discard_unknown_properties.py | 2 +- .../python/tests_manual/test_drawing.py | 18 ++++++------ .../python/tests_manual/test_fake_api.py | 20 ++++++------- .../python/tests_manual/test_format_test.py | 2 +- .../python/tests_manual/test_fruit.py | 6 ++-- .../python/tests_manual/test_fruit_req.py | 6 ++-- .../python/tests_manual/test_gm_fruit.py | 6 ++-- .../tests_manual/test_http_signature.py | 2 +- .../test_integer_enum_one_value.py | 2 +- .../python/tests_manual/test_mammal.py | 10 +++---- .../python/tests_manual/test_money.py | 2 +- .../test_no_additional_properties.py | 2 +- .../tests_manual/test_nullable_string.py | 2 +- .../test_number_with_validations.py | 2 +- .../test_object_model_with_ref_props.py | 4 +-- ..._with_req_test_prop_from_unset_add_prop.py | 2 +- ...est_object_with_difficultly_named_props.py | 2 +- ...object_with_inline_composition_property.py | 2 +- ...ect_with_invalid_named_refed_properties.py | 6 ++-- .../test_object_with_validations.py | 2 +- .../python/tests_manual/test_parent_pet.py | 4 +-- .../test_paths/test_pet_pet_id/test_get.py | 2 +- .../python/tests_manual/test_quadrilateral.py | 6 ++-- .../python/tests_manual/test_shape.py | 16 +++++------ .../python/tests_manual/test_string_enum.py | 2 +- .../python/tests_manual/test_triangle.py | 10 +++---- .../python/tests_manual/test_user_api.py | 2 +- .../python/tests_manual/test_uuid_string.py | 2 +- .../python/tests_manual/test_validate.py | 28 +++++++++---------- .../python/tests_manual/test_whale.py | 2 +- 173 files changed, 261 insertions(+), 261 deletions(-) diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index bd1eb80b05f..fed1279903d 100644 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -406,7 +406,7 @@ Class | Method | HTTP request | Description ## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in petstore_api.apis and petstore_api.models may fail with a +If the OpenAPI document is large, imports in petstore_api.apis and petstore_api.components.schemas may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: Solution 1: @@ -421,5 +421,5 @@ import sys sys.setrecursionlimit(1500) import petstore_api from petstore_api.apis import * -from petstore_api.models import * +from petstore_api.components.schemas import * ``` diff --git a/samples/openapi3/client/petstore/python/petstore_api/components/schema/__init__.py b/samples/openapi3/client/petstore/python/petstore_api/components/schema/__init__.py index 027452f37a8..bc3f877293f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/components/schema/__init__.py +++ b/samples/openapi3/client/petstore/python/petstore_api/components/schema/__init__.py @@ -2,4 +2,4 @@ # reference which would not work in python2 # do not import all models into this module because that uses a lot of memory and stack frames # if you need the ability to import all models from one package, import them with -# from petstore_api.models import ModelA, ModelB +# from petstore_api.components.schemas import ModelA, ModelB diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py index 672b8b4876b..8aa09106708 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.additional_properties_class import AdditionalPropertiesClass +from petstore_api.components.schema.additional_properties_class import AdditionalPropertiesClass from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py index fa0fe198d79..f1ec27f7a68 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.additional_properties_validator import AdditionalPropertiesValidator +from petstore_api.components.schema.additional_properties_validator import AdditionalPropertiesValidator from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py index 02669a5f7f3..ebacf6f2566 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums +from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_address.py b/samples/openapi3/client/petstore/python/test/test_models/test_address.py index 4bd63aebe19..aa3b444923c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_address.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_address.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.address import Address +from petstore_api.components.schema.address import Address from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_animal.py b/samples/openapi3/client/petstore/python/test/test_models/test_animal.py index 4a9b77d617d..02b0b28c776 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_animal.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_animal.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.animal import Animal +from petstore_api.components.schema.animal import Animal from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py b/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py index 4237b91351c..c81ee608560 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.animal_farm import AnimalFarm +from petstore_api.components.schema.animal_farm import AnimalFarm from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py b/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py index dbd95d3b024..312389fdcee 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.any_type_and_format import AnyTypeAndFormat +from petstore_api.components.schema.any_type_and_format import AnyTypeAndFormat from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py index 74de79873d3..b8392bdc42f 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.any_type_not_string import AnyTypeNotString +from petstore_api.components.schema.any_type_not_string import AnyTypeNotString from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py b/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py index 2631b83ff3d..09b2c9e8dfc 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.api_response import ApiResponse +from petstore_api.components.schema.api_response import ApiResponse from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_apple.py b/samples/openapi3/client/petstore/python/test/test_models/test_apple.py index 66c9241a73e..3662d1e2aee 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_apple.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_apple.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.apple import Apple +from petstore_api.components.schema.apple import Apple from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py b/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py index 4d20e890cff..a8709008fa3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.apple_req import AppleReq +from petstore_api.components.schema.apple_req import AppleReq from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py index bb9a2603a01..dc453e72a83 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.array_holding_any_type import ArrayHoldingAnyType +from petstore_api.components.schema.array_holding_any_type import ArrayHoldingAnyType from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py index 9991efe6573..1170d7bbc2b 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly +from petstore_api.components.schema.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py index 1040dabae94..595474d7a1a 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.array_of_enums import ArrayOfEnums +from petstore_api.components.schema.array_of_enums import ArrayOfEnums from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py index 9eca2c7a9ee..f538c7eb0fe 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.array_of_number_only import ArrayOfNumberOnly +from petstore_api.components.schema.array_of_number_only import ArrayOfNumberOnly from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py index 3c5610cd20b..3d74d16746f 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.array_test import ArrayTest +from petstore_api.components.schema.array_test import ArrayTest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py index 6c38306b1e4..b3fbd82f6a1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_banana.py b/samples/openapi3/client/petstore/python/test/test_models/test_banana.py index a0406ea1b8f..dcbfbfc2d48 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_banana.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_banana.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.banana import Banana +from petstore_api.components.schema.banana import Banana from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py b/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py index 39ac3c40453..508ef000715 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.banana_req import BananaReq +from petstore_api.components.schema.banana_req import BananaReq from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_bar.py b/samples/openapi3/client/petstore/python/test/test_models/test_bar.py index 52419122ba8..4c583f22c2c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_bar.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_bar.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.bar import Bar +from petstore_api.components.schema.bar import Bar from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py b/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py index f21a84f4dcf..1da70dbe0b1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.basque_pig import BasquePig +from petstore_api.components.schema.basque_pig import BasquePig from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py b/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py index cb65350ae50..e0e2048d72c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.boolean import Boolean +from petstore_api.components.schema.boolean import Boolean from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py b/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py index 0a1a1fa3cb8..1509659f4f8 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.boolean_enum import BooleanEnum +from petstore_api.components.schema.boolean_enum import BooleanEnum from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py b/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py index a595cfd15ad..f3873a5f6d5 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.capitalization import Capitalization +from petstore_api.components.schema.capitalization import Capitalization from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_cat.py b/samples/openapi3/client/petstore/python/test/test_models/test_cat.py index c8330904ba1..2356ee93d36 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_cat.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_cat.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.cat import Cat +from petstore_api.components.schema.cat import Cat from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_category.py b/samples/openapi3/client/petstore/python/test/test_models/test_category.py index ef8f9dcdf46..0bdb489d0bb 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_category.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_category.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.category import Category +from petstore_api.components.schema.category import Category from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py b/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py index 724f0e593c8..c7f781d5cd3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.child_cat import ChildCat +from petstore_api.components.schema.child_cat import ChildCat from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py b/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py index 133ffbab20b..c3323c671b0 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.class_model import ClassModel +from petstore_api.components.schema.class_model import ClassModel from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_client.py b/samples/openapi3/client/petstore/python/test/test_models/test_client.py index 6849d17a0e1..723dfd34d6c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_client.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_client.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.client import Client +from petstore_api.components.schema.client import Client from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py b/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py index 0391cbde55d..7bc5faf4f32 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral +from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py index 0acd76ea3a8..bd0605c1943 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_any_of_different_types_no_validations import ComposedAnyOfDifferentTypesNoValidations +from petstore_api.components.schema.composed_any_of_different_types_no_validations import ComposedAnyOfDifferentTypesNoValidations from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py index 20b69b37bc0..95b9c6230ba 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_array import ComposedArray +from petstore_api.components.schema.composed_array import ComposedArray from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py index 24d0a279056..1c38e60b7a3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_bool import ComposedBool +from petstore_api.components.schema.composed_bool import ComposedBool from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py index 8fdacab439a..279e44b258a 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_none import ComposedNone +from petstore_api.components.schema.composed_none import ComposedNone from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py index 14a26ab11f3..84519b919a9 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_number import ComposedNumber +from petstore_api.components.schema.composed_number import ComposedNumber from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py index dfc7d535604..ab3ad73a628 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_object import ComposedObject +from petstore_api.components.schema.composed_object import ComposedObject from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py index 6c003f5468f..49a0483e30c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py index 943dceabba5..83b45c26226 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.composed_string import ComposedString +from petstore_api.components.schema.composed_string import ComposedString from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_currency.py b/samples/openapi3/client/petstore/python/test/test_models/test_currency.py index cb57f69cfd3..515f156bb46 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_currency.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_currency.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.currency import Currency +from petstore_api.components.schema.currency import Currency from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py b/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py index 600c5d2b42c..f66f2e0af27 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.danish_pig import DanishPig +from petstore_api.components.schema.danish_pig import DanishPig from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py index 4dca8a44e0d..4979d3f1724 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.date_time_test import DateTimeTest +from petstore_api.components.schema.date_time_test import DateTimeTest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py index bb42a49ca27..5cdc679472b 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.date_time_with_validations import DateTimeWithValidations +from petstore_api.components.schema.date_time_with_validations import DateTimeWithValidations from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py index f69834dbe4e..cfab4f00713 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.date_with_validations import DateWithValidations +from petstore_api.components.schema.date_with_validations import DateWithValidations from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py b/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py index cbdc32d522a..870c95061a6 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.decimal_payload import DecimalPayload +from petstore_api.components.schema.decimal_payload import DecimalPayload from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_dog.py b/samples/openapi3/client/petstore/python/test/test_models/test_dog.py index b98ff3d616a..f30d06c8439 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_dog.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_dog.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.dog import Dog +from petstore_api.components.schema.dog import Dog from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py b/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py index ef7ebae2245..31fe628596b 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.drawing import Drawing +from petstore_api.components.schema.drawing import Drawing from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py b/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py index 9677bdb09d7..b44ecaca694 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.enum_arrays import EnumArrays +from petstore_api.components.schema.enum_arrays import EnumArrays from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py index 186d2f9ea40..b5019034b60 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.enum_class import EnumClass +from petstore_api.components.schema.enum_class import EnumClass from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py index 12b5a83ecc1..e13c90df04d 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.enum_test import EnumTest +from petstore_api.components.schema.enum_test import EnumTest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py index a730b002a18..a017d0a5ea2 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.equilateral_triangle import EquilateralTriangle +from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_file.py b/samples/openapi3/client/petstore/python/test/test_models/test_file.py index f16976abafe..dd610b6b7f6 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_file.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_file.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.file import File +from petstore_api.components.schema.file import File from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py index 804b3929aaf..aeef3d815a1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.file_schema_test_class import FileSchemaTestClass +from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_foo.py b/samples/openapi3/client/petstore/python/test/test_models/test_foo.py index b7f7f822e3a..42a074eb2f5 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_foo.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_foo.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.foo import Foo +from petstore_api.components.schema.foo import Foo from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py index 29260143794..1f7154c23cc 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.format_test import FormatTest +from petstore_api.components.schema.format_test import FormatTest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py b/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py index 09cf54a1f6c..8f38981ced3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.from_schema import FromSchema +from petstore_api.components.schema.from_schema import FromSchema from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py b/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py index 18d6acdbbb0..6898cbdbde3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.fruit import Fruit +from petstore_api.components.schema.fruit import Fruit from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py b/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py index b3b595f5f28..8f170b0e371 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.fruit_req import FruitReq +from petstore_api.components.schema.fruit_req import FruitReq from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py b/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py index af0199ec494..0629c5c7fe6 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.gm_fruit import GmFruit +from petstore_api.components.schema.gm_fruit import GmFruit from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py b/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py index 748ebdd5b99..1ff81b7d942 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.grandparent_animal import GrandparentAnimal +from petstore_api.components.schema.grandparent_animal import GrandparentAnimal from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py index 84e2c36490a..aeee8e7e0f3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.has_only_read_only import HasOnlyReadOnly +from petstore_api.components.schema.has_only_read_only import HasOnlyReadOnly from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py b/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py index cfbd7180491..6cffea38e63 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.health_check_result import HealthCheckResult +from petstore_api.components.schema.health_check_result import HealthCheckResult from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py index 7cdaa27f8aa..126d4b980c1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.integer_enum import IntegerEnum +from petstore_api.components.schema.integer_enum import IntegerEnum from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py index 64f39bd58c6..b56d3a85fd3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.integer_enum_big import IntegerEnumBig +from petstore_api.components.schema.integer_enum_big import IntegerEnumBig from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py index 16052a6086d..ba41c9ea341 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py index ffa57385fbe..7a9bd46f6c5 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.integer_enum_with_default_value import IntegerEnumWithDefaultValue +from petstore_api.components.schema.integer_enum_with_default_value import IntegerEnumWithDefaultValue from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py index 46d8c0a7254..cf3001d643a 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.integer_max10 import IntegerMax10 +from petstore_api.components.schema.integer_max10 import IntegerMax10 from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py index 660bf12cd69..e7639c72d76 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.integer_min15 import IntegerMin15 +from petstore_api.components.schema.integer_min15 import IntegerMin15 from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py index 4d82f1056ab..1e39b2cd02c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.isosceles_triangle import IsoscelesTriangle +from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py index 87ab0b27615..83a3196d66b 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.json_patch_request import JSONPatchRequest +from petstore_api.components.schema.json_patch_request import JSONPatchRequest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py index bcabf025afe..20227e4b64b 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest +from petstore_api.components.schema.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py index 388b38f27a5..e5382437cc0 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.json_patch_request_move_copy import JSONPatchRequestMoveCopy +from petstore_api.components.schema.json_patch_request_move_copy import JSONPatchRequestMoveCopy from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py index fe2001a85cb..e0e7ce7d034 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.json_patch_request_remove import JSONPatchRequestRemove +from petstore_api.components.schema.json_patch_request_remove import JSONPatchRequestRemove from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py b/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py index 402d785f461..e6139351be3 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py index c07747e22a0..3d613b722f5 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.map_test import MapTest +from petstore_api.components.schema.map_test import MapTest from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py index aa8f05809ea..fc2364b3ba6 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass +from petstore_api.components.schema.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py b/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py index 175bce11574..e631d076d52 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.model200_response import Model200Response +from petstore_api.components.schema.model200_response import Model200Response from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py b/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py index 97cc726a7a4..ce39809c273 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.model_return import ModelReturn +from petstore_api.components.schema.model_return import ModelReturn from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_money.py b/samples/openapi3/client/petstore/python/test/test_models/test_money.py index 51977ceb525..c714cd3f071 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_money.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_money.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.money import Money +from petstore_api.components.schema.money import Money from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_name.py b/samples/openapi3/client/petstore/python/test/test_models/test_name.py index 67aa3937383..2528d3de6d1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_name.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_name.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.name import Name +from petstore_api.components.schema.name import Name from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py b/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py index 560d41b85b6..fa33821fd1e 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.no_additional_properties import NoAdditionalProperties +from petstore_api.components.schema.no_additional_properties import NoAdditionalProperties from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py index 48e6a9dfca4..131c65d796f 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.nullable_class import NullableClass +from petstore_api.components.schema.nullable_class import NullableClass from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py index 5fbf48eb049..4c0aec52f2c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.nullable_shape import NullableShape +from petstore_api.components.schema.nullable_shape import NullableShape from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py index e25a516b7c3..fe75a05dfff 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.nullable_string import NullableString +from petstore_api.components.schema.nullable_string import NullableString from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_number.py b/samples/openapi3/client/petstore/python/test/test_models/test_number.py index 3a82e0c8ac4..635bf94b01b 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_number.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_number.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.number import Number +from petstore_api.components.schema.number import Number from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py index 58b824ecd87..7ab3095e52d 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.number_only import NumberOnly +from petstore_api.components.schema.number_only import NumberOnly from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py index a4074910185..691fd5fb799 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py index 3745bece9d0..538b94fa113 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_interface import ObjectInterface +from petstore_api.components.schema.object_interface import ObjectInterface from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py index 76145b49d05..75f6583793a 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py index 7f9078b4d72..d2da2132ed1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp +from petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py index 061eee9471d..da11142371d 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_decimal_properties import ObjectWithDecimalProperties +from petstore_api.components.schema.object_with_decimal_properties import ObjectWithDecimalProperties from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py index 531aa29e499..12714bd8309 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps +from petstore_api.components.schema.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py index 4d2ebb2ae4d..4a9759281c0 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_inline_composition_property import ObjectWithInlineCompositionProperty +from petstore_api.components.schema.object_with_inline_composition_property import ObjectWithInlineCompositionProperty from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py index b4bae2d5e6b..941fdb58d0c 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties +from petstore_api.components.schema.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py index fbd21e71b9f..8da69416663 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp +from petstore_api.components.schema.object_with_optional_test_prop import ObjectWithOptionalTestProp from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py index 61aa651da9a..c2a32b31ab1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_validations import ObjectWithValidations +from petstore_api.components.schema.object_with_validations import ObjectWithValidations from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_order.py b/samples/openapi3/client/petstore/python/test/test_models/test_order.py index a46866bc958..16e105fb98d 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_order.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_order.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.order import Order +from petstore_api.components.schema.order import Order from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py b/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py index 1a738ebadcb..cd59bd34bc4 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.parent_pet import ParentPet +from petstore_api.components.schema.parent_pet import ParentPet from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_pet.py b/samples/openapi3/client/petstore/python/test/test_models/test_pet.py index bfe07aec750..e80a51e38c1 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_pet.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_pet.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_pig.py b/samples/openapi3/client/petstore/python/test/test_models/test_pig.py index 17e9f30ed28..8305491ba38 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_pig.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_pig.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.pig import Pig +from petstore_api.components.schema.pig import Pig from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_player.py b/samples/openapi3/client/petstore/python/test/test_models/test_player.py index 3a8ce50907e..3cea2f7fcf7 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_player.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_player.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.player import Player +from petstore_api.components.schema.player import Player from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py b/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py index 14db504bcf8..bd0df64b143 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.quadrilateral import Quadrilateral +from petstore_api.components.schema.quadrilateral import Quadrilateral from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py b/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py index bd903fc4f3a..579a02747de 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.quadrilateral_interface import QuadrilateralInterface +from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py b/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py index 12a8689951e..2b8f9ec8866 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.read_only_first import ReadOnlyFirst +from petstore_api.components.schema.read_only_first import ReadOnlyFirst from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py index 3d0ba995a6b..c1d5563ff49 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.scalene_triangle import ScaleneTriangle +from petstore_api.components.schema.scalene_triangle import ScaleneTriangle from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_shape.py b/samples/openapi3/client/petstore/python/test/test_models/test_shape.py index 644bae29d8d..f1d6498d9e6 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_shape.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_shape.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.shape import Shape +from petstore_api.components.schema.shape import Shape from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py b/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py index 1c91dc2c7c6..5c070603dde 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.shape_or_null import ShapeOrNull +from petstore_api.components.schema.shape_or_null import ShapeOrNull from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py b/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py index d548e8549c6..491b3199a27 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.simple_quadrilateral import SimpleQuadrilateral +from petstore_api.components.schema.simple_quadrilateral import SimpleQuadrilateral from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py b/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py index 8e5c966c580..cd3924eb896 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.some_object import SomeObject +from petstore_api.components.schema.some_object import SomeObject from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py b/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py index d6f945d0691..33a3ab307d5 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.special_model_name import SpecialModelName +from petstore_api.components.schema.special_model_name import SpecialModelName from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_string.py index b868db50009..31e1c2a1a88 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_string.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.string import String +from petstore_api.components.schema.string import String from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py index c24f051d9e5..dc662a16980 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.string_boolean_map import StringBooleanMap +from petstore_api.components.schema.string_boolean_map import StringBooleanMap from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py index eb44771116d..e17bc3a0ef6 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py index c7d690c6ad5..ff82ef6b7a9 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.string_enum_with_default_value import StringEnumWithDefaultValue +from petstore_api.components.schema.string_enum_with_default_value import StringEnumWithDefaultValue from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py index 3f08996edfa..db4ed01ca72 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_with_validation import StringWithValidation from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_tag.py b/samples/openapi3/client/petstore/python/test/test_models/test_tag.py index 037216a10fe..f33a75587eb 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_tag.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_tag.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.tag import Tag +from petstore_api.components.schema.tag import Tag from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py index 853f1e14168..d1834fa382e 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.triangle import Triangle +from petstore_api.components.schema.triangle import Triangle from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py b/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py index 75fddda7d96..e2dd99318ae 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.triangle_interface import TriangleInterface +from petstore_api.components.schema.triangle_interface import TriangleInterface from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_user.py b/samples/openapi3/client/petstore/python/test/test_models/test_user.py index fcc8d79b3e4..4eb5097f44f 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_user.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_user.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.user import User +from petstore_api.components.schema.user import User from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py index 27a64c0c440..1356e156ea4 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.uuid_string import UUIDString +from petstore_api.components.schema.uuid_string import UUIDString from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_whale.py b/samples/openapi3/client/petstore/python/test/test_models/test_whale.py index b3316eb84a1..bd860a01602 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_whale.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_whale.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.whale import Whale +from petstore_api.components.schema.whale import Whale from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py b/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py index a3ce520e9de..d53a83960ae 100644 --- a/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py +++ b/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.zebra import Zebra +from petstore_api.components.schema.zebra import Zebra from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_class.py b/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_class.py index 589beb05cde..a27941748d4 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_class.py @@ -11,7 +11,7 @@ import unittest -from petstore_api.model.additional_properties_class import AdditionalPropertiesClass +from petstore_api.components.schema.additional_properties_class import AdditionalPropertiesClass from petstore_api import schemas diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_validator.py b/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_validator.py index a54404c542a..2d87e700684 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_validator.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_additional_properties_validator.py @@ -11,7 +11,7 @@ import unittest -from petstore_api.model.additional_properties_validator import AdditionalPropertiesValidator +from petstore_api.components.schema.additional_properties_validator import AdditionalPropertiesValidator from petstore_api import schemas, exceptions diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_animal.py b/samples/openapi3/client/petstore/python/tests_manual/test_animal.py index 68bb19bd249..ac23f457b83 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_animal.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_animal.py @@ -15,9 +15,9 @@ import frozendict import petstore_api -from petstore_api.model.cat import Cat -from petstore_api.model.dog import Dog -from petstore_api.model.animal import Animal +from petstore_api.components.schema.cat import Cat +from petstore_api.components.schema.dog import Dog +from petstore_api.components.schema.animal import Animal from petstore_api.schemas import StrSchema, BoolSchema diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_any_type_and_format.py b/samples/openapi3/client/petstore/python/tests_manual/test_any_type_and_format.py index 3882982711a..d4592dc19c0 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_any_type_and_format.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_any_type_and_format.py @@ -14,7 +14,7 @@ import unittest import uuid -from petstore_api.model.any_type_and_format import AnyTypeAndFormat +from petstore_api.components.schema.any_type_and_format import AnyTypeAndFormat from petstore_api import exceptions diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_any_type_not_string.py b/samples/openapi3/client/petstore/python/tests_manual/test_any_type_not_string.py index 88e16175e11..6b67c935dd3 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_any_type_not_string.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_any_type_not_string.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.any_type_not_string import AnyTypeNotString +from petstore_api.components.schema.any_type_not_string import AnyTypeNotString class TestAnyTypeNotString(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_array_holding_any_type.py b/samples/openapi3/client/petstore/python/tests_manual/test_array_holding_any_type.py index 6addb31d8fc..634005ebf9e 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_array_holding_any_type.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_array_holding_any_type.py @@ -15,7 +15,7 @@ from datetime import date, datetime, timezone import petstore_api -from petstore_api.model.array_holding_any_type import ArrayHoldingAnyType +from petstore_api.components.schema.array_holding_any_type import ArrayHoldingAnyType from petstore_api.schemas import NoneClass, BoolClass diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_array_with_validations_in_items.py b/samples/openapi3/client/petstore/python/tests_manual/test_array_with_validations_in_items.py index 1d3eccb68ed..cdd48110993 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_array_with_validations_in_items.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_array_with_validations_in_items.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems class TestArrayWithValidationsInItems(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_boolean_enum.py b/samples/openapi3/client/petstore/python/tests_manual/test_boolean_enum.py index 530755c0681..d376b4cbd5e 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_boolean_enum.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_boolean_enum.py @@ -13,7 +13,7 @@ import unittest import petstore_api -from petstore_api.model.boolean_enum import BooleanEnum +from petstore_api.components.schema.boolean_enum import BooleanEnum class TestBooleanEnum(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_combine_object_schemas.py b/samples/openapi3/client/petstore/python/tests_manual/test_combine_object_schemas.py index cdbd7b1747c..b48202d4622 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_combine_object_schemas.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_combine_object_schemas.py @@ -15,13 +15,13 @@ import petstore_api from petstore_api.schemas import AnyTypeSchema, DictSchema, IntSchema, StrSchema, Float32Schema, DateSchema -from petstore_api.model.danish_pig import DanishPig -from petstore_api.model.basque_pig import BasquePig -from petstore_api.model.no_additional_properties import NoAdditionalProperties -from petstore_api.model.address import Address -from petstore_api.model.apple_req import AppleReq -from petstore_api.model.banana_req import BananaReq -from petstore_api.model.player import Player +from petstore_api.components.schema.danish_pig import DanishPig +from petstore_api.components.schema.basque_pig import BasquePig +from petstore_api.components.schema.no_additional_properties import NoAdditionalProperties +from petstore_api.components.schema.address import Address +from petstore_api.components.schema.apple_req import AppleReq +from petstore_api.components.schema.banana_req import BananaReq +from petstore_api.components.schema.player import Player class TestCombineObjectSchemas(unittest.TestCase): pass diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_combine_schemas.py b/samples/openapi3/client/petstore/python/tests_manual/test_combine_schemas.py index f77f71ec46a..bd3a3bfef05 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_combine_schemas.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_combine_schemas.py @@ -14,15 +14,15 @@ import unittest import petstore_api -from petstore_api.model.date_with_validations import DateWithValidations -from petstore_api.model.date_time_with_validations import DateTimeWithValidations -from petstore_api.model.string_with_validation import StringWithValidation -from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue -from petstore_api.model.integer_enum import IntegerEnum -from petstore_api.model.integer_enum_big import IntegerEnumBig -from petstore_api.model.integer_max10 import IntegerMax10 -from petstore_api.model.integer_min15 import IntegerMin15 -from petstore_api.model.nullable_string import NullableString +from petstore_api.components.schema.date_with_validations import DateWithValidations +from petstore_api.components.schema.date_time_with_validations import DateTimeWithValidations +from petstore_api.components.schema.string_with_validation import StringWithValidation +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue +from petstore_api.components.schema.integer_enum import IntegerEnum +from petstore_api.components.schema.integer_enum_big import IntegerEnumBig +from petstore_api.components.schema.integer_max10 import IntegerMax10 +from petstore_api.components.schema.integer_min15 import IntegerMin15 +from petstore_api.components.schema.nullable_string import NullableString from petstore_api.schemas import AnyTypeSchema, Schema, NoneSchema, StrSchema, none_type, Singleton diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_composed_bool.py b/samples/openapi3/client/petstore/python/tests_manual/test_composed_bool.py index 45eb1491066..f6216d5254f 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_composed_bool.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_composed_bool.py @@ -13,7 +13,7 @@ import unittest import petstore_api -from petstore_api.model.composed_bool import ComposedBool +from petstore_api.components.schema.composed_bool import ComposedBool class TestComposedBool(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_composed_none.py b/samples/openapi3/client/petstore/python/tests_manual/test_composed_none.py index a37eb26b104..d69a90fd046 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_composed_none.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_composed_none.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.composed_none import ComposedNone +from petstore_api.components.schema.composed_none import ComposedNone class TestComposedNone(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_composed_number.py b/samples/openapi3/client/petstore/python/tests_manual/test_composed_number.py index 1cd982e3f33..5ff30985cbf 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_composed_number.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_composed_number.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.composed_number import ComposedNumber +from petstore_api.components.schema.composed_number import ComposedNumber class TestComposedNumber(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_composed_object.py b/samples/openapi3/client/petstore/python/tests_manual/test_composed_object.py index 7c79c574d9b..0089e08eb86 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_composed_object.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_composed_object.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.composed_object import ComposedObject +from petstore_api.components.schema.composed_object import ComposedObject class TestComposedObject(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_composed_one_of_different_types.py b/samples/openapi3/client/petstore/python/tests_manual/test_composed_one_of_different_types.py index e98af8bb8f9..e50804a9d8b 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_composed_one_of_different_types.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_composed_one_of_different_types.py @@ -17,10 +17,10 @@ import frozendict from petstore_api.schemas import DateSchema, DateTimeSchema, Singleton, NoneClass -from petstore_api.model.animal import Animal -from petstore_api.model.cat import Cat -from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.animal import Animal +from petstore_api.components.schema.cat import Cat +from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes +from petstore_api.components.schema.number_with_validations import NumberWithValidations class TestComposedOneOfDifferentTypes(unittest.TestCase): """ComposedOneOfDifferentTypes unit test stubs""" diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_composed_string.py b/samples/openapi3/client/petstore/python/tests_manual/test_composed_string.py index aeb5ea3a972..db11edf84b7 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_composed_string.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_composed_string.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.composed_string import ComposedString +from petstore_api.components.schema.composed_string import ComposedString class TestComposedString(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_date_time_with_validations.py b/samples/openapi3/client/petstore/python/tests_manual/test_date_time_with_validations.py index 336cb29cb39..3d15803539e 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_date_time_with_validations.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_date_time_with_validations.py @@ -13,7 +13,7 @@ import unittest import petstore_api -from petstore_api.model.date_time_with_validations import DateTimeWithValidations +from petstore_api.components.schema.date_time_with_validations import DateTimeWithValidations from datetime import date, datetime, timezone diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_date_with_validations.py b/samples/openapi3/client/petstore/python/tests_manual/test_date_with_validations.py index 658470df0e6..eb6161113f9 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_date_with_validations.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_date_with_validations.py @@ -13,7 +13,7 @@ import unittest import petstore_api -from petstore_api.model.date_with_validations import DateWithValidations +from petstore_api.components.schema.date_with_validations import DateWithValidations from datetime import date, datetime diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_decimal_payload.py b/samples/openapi3/client/petstore/python/tests_manual/test_decimal_payload.py index 58f77cbf216..efd2264f830 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_decimal_payload.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_decimal_payload.py @@ -14,7 +14,7 @@ import petstore_api from petstore_api.schemas import DecimalSchema -from petstore_api.model.decimal_payload import DecimalPayload +from petstore_api.components.schema.decimal_payload import DecimalPayload class TestDecimalPayload(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_deserialization.py b/samples/openapi3/client/petstore/python/tests_manual/test_deserialization.py index ab89bfcd4f6..bd9893de0a9 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_deserialization.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_deserialization.py @@ -48,7 +48,7 @@ def test_deserialize_shape(self): - SimpleQuadrilateral by traveling through 2 discriminators """ - from petstore_api.model import shape, equilateral_triangle + from petstore_api.components.schema import shape, equilateral_triangle _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=shape.Shape), @@ -86,7 +86,7 @@ def test_deserialize_animal(self): that inherrit from Animal This is the swagger (v2) way of doing something like oneOf composition """ - from petstore_api.model import animal, dog + from petstore_api.components.schema import animal, dog _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=animal.Animal), @@ -109,7 +109,7 @@ def test_regex_constraint(self): """ Test regex pattern validation. """ - from petstore_api.model import apple + from petstore_api.components.schema import apple # Test with valid regex pattern. inst = apple.Apple( @@ -150,7 +150,7 @@ def test_deserialize_mammal(self): """ # whale test - from petstore_api.model import mammal, zebra, whale + from petstore_api.components.schema import mammal, zebra, whale _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=mammal.Mammal), @@ -190,7 +190,7 @@ def test_deserialize_float_value(self): """ Deserialize floating point values. """ - from petstore_api.model import banana + from petstore_api.components.schema import banana _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=banana.Banana), @@ -226,7 +226,7 @@ def test_deserialize_fruit_null_value(self): deserialize fruit with null value. fruitReq is a oneOf composed schema model with discriminator, including 'null' type. """ - from petstore_api.model import fruit_req + from petstore_api.components.schema import fruit_req _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=fruit_req.FruitReq), @@ -251,7 +251,7 @@ def test_deserialize_with_additional_properties(self): # The additionalProperties keyword is used to control the handling of extra stuff, # that is, properties whose names are not listed in the properties keyword. # By default any additional properties are allowed. - from petstore_api.model import dog, mammal, zebra, banana_req + from petstore_api.components.schema import dog, mammal, zebra, banana_req data = { 'className': 'Dog', 'color': 'brown', @@ -326,7 +326,7 @@ def test_deserialize_with_additional_properties_and_reference(self): Deserialize data with schemas that has the additionalProperties keyword and the schema is specified as a reference ($ref). """ - from petstore_api.model import drawing + from petstore_api.components.schema import drawing _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=drawing.Drawing), @@ -356,7 +356,7 @@ def test_deserialize_with_additional_properties_and_reference(self): _response_for_200.deserialize(response, self.configuration) def test_deserialize_NumberWithValidations(self): - from petstore_api.model.number_with_validations import NumberWithValidations + from petstore_api.components.schema.number_with_validations import NumberWithValidations from petstore_api.paths.fake_refs_number.post import response_for_200 # make sure that an exception is thrown on an invalid type value @@ -377,9 +377,9 @@ def test_deserialize_NumberWithValidations(self): self.assertEqual(response.body, number_val) def test_array_of_enums(self): - from petstore_api.model.array_of_enums import ArrayOfEnums + from petstore_api.components.schema.array_of_enums import ArrayOfEnums from petstore_api.paths.fake_refs_array_of_enums.post import response_for_200 - from petstore_api.model import string_enum + from petstore_api.components.schema import string_enum data = ["placed", None] response = self.__response(data) deserialized = response_for_200.response.deserialize(response, self.configuration) @@ -396,7 +396,7 @@ def test_multiple_of_deserialization(self): 'number': 65.0, 'float': 62.4, } - from petstore_api.model import format_test + from petstore_api.components.schema import format_test _response_for_200 = api_client.OpenApiResponse( content={ self.json_content_type: api_client.MediaType(schema=format_test.FormatTest), diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_discard_unknown_properties.py b/samples/openapi3/client/petstore/python/tests_manual/test_discard_unknown_properties.py index 97d850d56b6..2173d7cf7e8 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_discard_unknown_properties.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_discard_unknown_properties.py @@ -16,7 +16,7 @@ # import unittest # # import petstore_api -# from petstore_api.model import cat, dog, isosceles_triangle, banana_req +# from petstore_api.components.schema import cat, dog, isosceles_triangle, banana_req # from petstore_api import Configuration, signing # # from petstore_api.schemas import ( diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_drawing.py b/samples/openapi3/client/petstore/python/tests_manual/test_drawing.py index 2febc75e362..02bc73fb545 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_drawing.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_drawing.py @@ -15,9 +15,9 @@ import petstore_api from petstore_api.schemas import NoneClass -from petstore_api.model import shape -from petstore_api.model import shape_or_null -from petstore_api.model.drawing import Drawing +from petstore_api.components.schema import shape +from petstore_api.components.schema import shape_or_null +from petstore_api.components.schema.drawing import Drawing class TestDrawing(unittest.TestCase): @@ -38,7 +38,7 @@ def test_create_instances(self): shapeType="Triangle", triangleType="IsoscelesTriangle" ) - from petstore_api.model.isosceles_triangle import IsoscelesTriangle + from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle assert isinstance(inst, IsoscelesTriangle) def test_deserialize_oneof_reference(self): @@ -50,9 +50,9 @@ def test_deserialize_oneof_reference(self): shapeType="Triangle", triangleType="IsoscelesTriangle" ) - from petstore_api.model.isosceles_triangle import IsoscelesTriangle + from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle assert isinstance(isosceles_triangle, IsoscelesTriangle) - from petstore_api.model.equilateral_triangle import EquilateralTriangle + from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle inst = Drawing( mainShape=isosceles_triangle, @@ -78,7 +78,7 @@ def test_deserialize_oneof_reference(self): assert isinstance(inst, Drawing) assert isinstance(inst["mainShape"], IsoscelesTriangle) self.assertEqual(len(inst["shapes"]), 4) - from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral + from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral assert isinstance(inst["shapes"][0], EquilateralTriangle) assert isinstance(inst["shapes"][1], IsoscelesTriangle) assert isinstance(inst["shapes"][2], EquilateralTriangle) @@ -103,7 +103,7 @@ def test_deserialize_oneof_reference(self): Under the hood it is converted into a dict, and that dict payload does validate as a Shape, so this works """ - from petstore_api.model.triangle import Triangle + from petstore_api.components.schema.triangle import Triangle inst = Drawing( mainShape=isosceles_triangle, shapes=[ @@ -114,7 +114,7 @@ def test_deserialize_oneof_reference(self): ] ) self.assertEqual(len(inst["shapes"]), 1) - from petstore_api.model.triangle_interface import TriangleInterface + from petstore_api.components.schema.triangle_interface import TriangleInterface shapes = inst["shapes"] assert isinstance(shapes[0], shape.Shape) assert isinstance(shapes[0], Triangle) diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_fake_api.py b/samples/openapi3/client/petstore/python/tests_manual/test_fake_api.py index 7ce4a60e8f7..04fe9b8782c 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_fake_api.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_fake_api.py @@ -38,7 +38,7 @@ class TestFakeApi(ApiTestMixin): api = FakeApi(api_client=api_client.ApiClient(configuration=configuration)) def test_array_model(self): - from petstore_api.model import animal_farm, animal + from petstore_api.components.schema import animal_farm, animal # serialization + deserialization works with patch.object(RESTClientObject, 'request') as mock_request: @@ -66,7 +66,7 @@ def test_recursionlimit(self): assert sys.getrecursionlimit() == 1234 def test_array_of_enums(self): - from petstore_api.model import array_of_enums, string_enum + from petstore_api.components.schema import array_of_enums, string_enum # serialization + deserialization works with patch.object(RESTClientObject, 'request') as mock_request: @@ -88,7 +88,7 @@ def test_array_of_enums(self): assert api_response.body == body def test_number_with_validations(self): - from petstore_api.model import number_with_validations + from petstore_api.components.schema import number_with_validations # serialization + deserialization works with patch.object(RESTClientObject, 'request') as mock_request: @@ -109,7 +109,7 @@ def test_number_with_validations(self): assert api_response.body == value def test_composed_one_of_different_types(self): - from petstore_api.model import composed_one_of_different_types + from petstore_api.components.schema import composed_one_of_different_types # serialization + deserialization works number = composed_one_of_different_types.ComposedOneOfDifferentTypes(10.0) @@ -177,7 +177,7 @@ def test_string(self): assert api_response.body == value_simple def test_string_enum(self): - from petstore_api.model import string_enum + from petstore_api.components.schema import string_enum # serialization + deserialization works with patch.object(RESTClientObject, 'request') as mock_request: value = "placed" @@ -198,7 +198,7 @@ def test_string_enum(self): def test_mammal(self): # serialization + deserialization works - from petstore_api.model.mammal import Mammal + from petstore_api.components.schema.mammal import Mammal with patch.object(RESTClientObject, 'request') as mock_request: body = Mammal(className="BasquePig") value_simple = dict(className='BasquePig') @@ -225,7 +225,7 @@ def test_missing_or_unset_required_body(self): self.api.mammal(body=schemas.unset) def test_missing_or_unset_required_query_parameter(self): - from petstore_api.model.user import User + from petstore_api.components.schema.user import User user = User({}) # missing required query param with self.assertRaises(petstore_api.ApiTypeError): @@ -235,7 +235,7 @@ def test_missing_or_unset_required_query_parameter(self): self.api.body_with_query_params(body=schemas.unset, query_params=dict(query=schemas.unset)) def test_body_with_query_params(self): - from petstore_api.model import user + from petstore_api.components.schema import user with patch.object(RESTClientObject, 'request') as mock_request: value_simple = dict( @@ -765,8 +765,8 @@ def test_delete_endpoint_without_request_body(self): def test_json_patch(self): with patch.object(urllib3.PoolManager, 'request') as mock_request: - from petstore_api.model import json_patch_request - from petstore_api.model import json_patch_request_add_replace_test + from petstore_api.components.schema import json_patch_request + from petstore_api.components.schema import json_patch_request_add_replace_test mock_request.return_value = self.response("") body = json_patch_request.JSONPatchRequest( diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_format_test.py b/samples/openapi3/client/petstore/python/tests_manual/test_format_test.py index 960d0957517..9de52249e40 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_format_test.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_format_test.py @@ -17,7 +17,7 @@ import frozendict import petstore_api -from petstore_api.model.format_test import FormatTest +from petstore_api.components.schema.format_test import FormatTest from petstore_api.schemas import BinarySchema, BytesSchema, Singleton diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_fruit.py b/samples/openapi3/client/petstore/python/tests_manual/test_fruit.py index 6f1a2265553..8d277a56ad4 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_fruit.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_fruit.py @@ -12,9 +12,9 @@ import unittest import petstore_api -from petstore_api.model import apple -from petstore_api.model import banana -from petstore_api.model.fruit import Fruit +from petstore_api.components.schema import apple +from petstore_api.components.schema import banana +from petstore_api.components.schema.fruit import Fruit from petstore_api import schemas diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_fruit_req.py b/samples/openapi3/client/petstore/python/tests_manual/test_fruit_req.py index bdabb193648..238ff39c7fa 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_fruit_req.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_fruit_req.py @@ -13,9 +13,9 @@ import unittest import petstore_api -from petstore_api.model import apple_req -from petstore_api.model import banana_req -from petstore_api.model.fruit_req import FruitReq +from petstore_api.components.schema import apple_req +from petstore_api.components.schema import banana_req +from petstore_api.components.schema.fruit_req import FruitReq from petstore_api import schemas diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_gm_fruit.py b/samples/openapi3/client/petstore/python/tests_manual/test_gm_fruit.py index ad650460a4c..b8e4484b6c6 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_gm_fruit.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_gm_fruit.py @@ -14,9 +14,9 @@ import frozendict -from petstore_api.model import apple -from petstore_api.model import banana -from petstore_api.model.gm_fruit import GmFruit +from petstore_api.components.schema import apple +from petstore_api.components.schema import banana +from petstore_api.components.schema.gm_fruit import GmFruit from petstore_api import schemas class TestGmFruit(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_http_signature.py b/samples/openapi3/client/petstore/python/tests_manual/test_http_signature.py index 1db56c65dd2..a410083b308 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_http_signature.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_http_signature.py @@ -26,7 +26,7 @@ # from Crypto.Signature import pkcs1_15, pss, DSS # # import petstore_api -# from petstore_api.model import category, tag, pet +# from petstore_api.components.schema import category, tag, pet # from petstore_api.apis.tags.pet_api import PetApi # from petstore_api import Configuration, signing # from petstore_api.rest import ( diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_integer_enum_one_value.py b/samples/openapi3/client/petstore/python/tests_manual/test_integer_enum_one_value.py index a5d92cd0833..c12eb10bdfe 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_integer_enum_one_value.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_integer_enum_one_value.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue +from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue class TestIntegerEnumOneValue(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_mammal.py b/samples/openapi3/client/petstore/python/tests_manual/test_mammal.py index 975b02e0154..cbc14b16584 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_mammal.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_mammal.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.mammal import Mammal +from petstore_api.components.schema.mammal import Mammal class TestMammal(unittest.TestCase): @@ -31,22 +31,22 @@ def testMammal(self): # tests that we can make a BasquePig by traveling through discriminator in Pig m = Mammal(className="BasquePig") - from petstore_api.model import pig - from petstore_api.model import basque_pig + from petstore_api.components.schema import pig + from petstore_api.components.schema import basque_pig assert isinstance(m, Mammal) assert isinstance(m, basque_pig.BasquePig) assert isinstance(m, pig.Pig) # can make a Whale m = Mammal(className="whale") - from petstore_api.model import whale + from petstore_api.components.schema import whale assert isinstance(m, whale.Whale) # can use the enum value m = Mammal(className=whale.Whale.MetaOapg.properties.className.WHALE) assert isinstance(m, whale.Whale) - from petstore_api.model import zebra + from petstore_api.components.schema import zebra m = Mammal(className='zebra') assert isinstance(m, zebra.Zebra) diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_money.py b/samples/openapi3/client/petstore/python/tests_manual/test_money.py index 060132ef40b..1abf642478e 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_money.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_money.py @@ -11,7 +11,7 @@ import decimal import unittest -from petstore_api.model.money import Money +from petstore_api.components.schema.money import Money class TestMoney(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_no_additional_properties.py b/samples/openapi3/client/petstore/python/tests_manual/test_no_additional_properties.py index 723f32201bd..66110938ebc 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_no_additional_properties.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_no_additional_properties.py @@ -12,7 +12,7 @@ import decimal import unittest -from petstore_api.model.no_additional_properties import NoAdditionalProperties +from petstore_api.components.schema.no_additional_properties import NoAdditionalProperties from petstore_api import schemas class TestNoAdditionalProperties(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_nullable_string.py b/samples/openapi3/client/petstore/python/tests_manual/test_nullable_string.py index 2b2616fce95..abea23f385a 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_nullable_string.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_nullable_string.py @@ -13,7 +13,7 @@ import unittest import petstore_api -from petstore_api.model.nullable_string import NullableString +from petstore_api.components.schema.nullable_string import NullableString from petstore_api.schemas import Schema, Singleton diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_number_with_validations.py b/samples/openapi3/client/petstore/python/tests_manual/test_number_with_validations.py index 5cf1dfaa9c5..22c4fc51a6d 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_number_with_validations.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_number_with_validations.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.number_with_validations import NumberWithValidations class TestNumberWithValidations(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/tests_manual/test_object_model_with_ref_props.py index f6dde99f670..36a55958dbb 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_object_model_with_ref_props.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_object_model_with_ref_props.py @@ -14,8 +14,8 @@ import frozendict from petstore_api.schemas import BoolClass -from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps -from petstore_api.model.number_with_validations import NumberWithValidations +from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps +from petstore_api.components.schema.number_with_validations import NumberWithValidations class TestObjectModelWithRefProps(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py index 288ecddd294..b735751af0e 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py @@ -12,7 +12,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp +from petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp from petstore_api import configuration diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_difficultly_named_props.py index 386304ecc67..6b4a6fbbaf5 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_difficultly_named_props.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_difficultly_named_props.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps +from petstore_api.components.schema.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps class TestObjectWithDifficultlyNamedProps(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_inline_composition_property.py index 8105e51eab2..62af3ca4ee9 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_inline_composition_property.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_inline_composition_property.py @@ -12,7 +12,7 @@ import unittest from petstore_api import schemas, exceptions -from petstore_api.model.object_with_inline_composition_property import ObjectWithInlineCompositionProperty +from petstore_api.components.schema.object_with_inline_composition_property import ObjectWithInlineCompositionProperty class TestObjectWithInlineCompositionProperty(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_invalid_named_refed_properties.py b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_invalid_named_refed_properties.py index fb8cf4a9885..d045fab440d 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_invalid_named_refed_properties.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_invalid_named_refed_properties.py @@ -12,9 +12,9 @@ import unittest import petstore_api -from petstore_api.model.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties -from petstore_api.model.array_with_validations_in_items import ArrayWithValidationsInItems -from petstore_api.model.from_schema import FromSchema +from petstore_api.components.schema.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties +from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems +from petstore_api.components.schema.from_schema import FromSchema class TestObjectWithInvalidNamedRefedProperties(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_validations.py b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_validations.py index 3a443dfa39a..7adb34335ca 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_object_with_validations.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_object_with_validations.py @@ -14,7 +14,7 @@ import unittest import petstore_api -from petstore_api.model.object_with_validations import ObjectWithValidations +from petstore_api.components.schema.object_with_validations import ObjectWithValidations class TestObjectWithValidations(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_parent_pet.py b/samples/openapi3/client/petstore/python/tests_manual/test_parent_pet.py index 171310075ab..253aee885fb 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_parent_pet.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_parent_pet.py @@ -14,8 +14,8 @@ import unittest import petstore_api -from petstore_api.model.grandparent_animal import GrandparentAnimal -from petstore_api.model.parent_pet import ParentPet +from petstore_api.components.schema.grandparent_animal import GrandparentAnimal +from petstore_api.components.schema.parent_pet import ParentPet class TestParentPet(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_pet_pet_id/test_get.py b/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_pet_pet_id/test_get.py index 81cb92cd133..d2cca3fb332 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_pet_pet_id/test_get.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_paths/test_pet_pet_id/test_get.py @@ -14,7 +14,7 @@ from petstore_api.paths.pet_pet_id import get # noqa: E501 from petstore_api import configuration, schemas, api_client -from petstore_api.model.pet import Pet +from petstore_api.components.schema.pet import Pet from ... import ApiTestMixin diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_quadrilateral.py b/samples/openapi3/client/petstore/python/tests_manual/test_quadrilateral.py index dff97bc716a..718c47da7aa 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_quadrilateral.py @@ -14,9 +14,9 @@ import unittest import petstore_api -from petstore_api.model import complex_quadrilateral -from petstore_api.model import simple_quadrilateral -from petstore_api.model.quadrilateral import Quadrilateral +from petstore_api.components.schema import complex_quadrilateral +from petstore_api.components.schema import simple_quadrilateral +from petstore_api.components.schema.quadrilateral import Quadrilateral class TestQuadrilateral(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_shape.py b/samples/openapi3/client/petstore/python/tests_manual/test_shape.py index 80bab5b805b..c8d278a1b4f 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_shape.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_shape.py @@ -17,14 +17,14 @@ import petstore_api from petstore_api.schemas import Singleton -from petstore_api.model.shape import Shape -from petstore_api.model import complex_quadrilateral -from petstore_api.model import simple_quadrilateral -from petstore_api.model import triangle -from petstore_api.model import triangle_interface -from petstore_api.model import equilateral_triangle -from petstore_api.model import isosceles_triangle -from petstore_api.model import scalene_triangle +from petstore_api.components.schema.shape import Shape +from petstore_api.components.schema import complex_quadrilateral +from petstore_api.components.schema import simple_quadrilateral +from petstore_api.components.schema import triangle +from petstore_api.components.schema import triangle_interface +from petstore_api.components.schema import equilateral_triangle +from petstore_api.components.schema import isosceles_triangle +from petstore_api.components.schema import scalene_triangle class TestShape(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_string_enum.py b/samples/openapi3/client/petstore/python/tests_manual/test_string_enum.py index 0485242b37e..6f9df8c9a70 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_string_enum.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_string_enum.py @@ -13,7 +13,7 @@ import unittest import petstore_api -from petstore_api.model.string_enum import StringEnum +from petstore_api.components.schema.string_enum import StringEnum from petstore_api.schemas import Singleton, NoneClass diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_triangle.py b/samples/openapi3/client/petstore/python/tests_manual/test_triangle.py index 3d19a8d65fa..f45a0aeba74 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_triangle.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_triangle.py @@ -14,11 +14,11 @@ import frozendict -from petstore_api.model.equilateral_triangle import EquilateralTriangle -from petstore_api.model.isosceles_triangle import IsoscelesTriangle -from petstore_api.model.scalene_triangle import ScaleneTriangle -from petstore_api.model.triangle import Triangle -from petstore_api.model.triangle_interface import TriangleInterface +from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle +from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle +from petstore_api.components.schema.scalene_triangle import ScaleneTriangle +from petstore_api.components.schema.triangle import Triangle +from petstore_api.components.schema.triangle_interface import TriangleInterface class TestTriangle(unittest.TestCase): diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_user_api.py b/samples/openapi3/client/petstore/python/tests_manual/test_user_api.py index 5f52c56f5af..fd549ec767f 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_user_api.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_user_api.py @@ -53,7 +53,7 @@ def test_delete_user(self): pass def test_get_user_by_name(self): - from petstore_api.model import user + from petstore_api.components.schema import user # serialization + deserialization works with patch.object(RESTClientObject, 'request') as mock_request: diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_uuid_string.py b/samples/openapi3/client/petstore/python/tests_manual/test_uuid_string.py index e8715b571a7..fb944f197a1 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_uuid_string.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_uuid_string.py @@ -12,7 +12,7 @@ import unittest from petstore_api import schemas, exceptions -from petstore_api.model.uuid_string import UUIDString +from petstore_api.components.schema.uuid_string import UUIDString import uuid diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_validate.py b/samples/openapi3/client/petstore/python/tests_manual/test_validate.py index 4a61f9c7f9e..cfaec38872e 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_validate.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_validate.py @@ -6,22 +6,22 @@ import frozendict -from petstore_api.model.string_with_validation import StringWithValidation -from petstore_api.model.string_enum import StringEnum -from petstore_api.model.number_with_validations import NumberWithValidations -from petstore_api.model.array_holding_any_type import ArrayHoldingAnyType -from petstore_api.model.array_with_validations_in_items import ( +from petstore_api.components.schema.string_with_validation import StringWithValidation +from petstore_api.components.schema.string_enum import StringEnum +from petstore_api.components.schema.number_with_validations import NumberWithValidations +from petstore_api.components.schema.array_holding_any_type import ArrayHoldingAnyType +from petstore_api.components.schema.array_with_validations_in_items import ( ArrayWithValidationsInItems, ) -from petstore_api.model.foo import Foo -from petstore_api.model.animal import Animal -from petstore_api.model.dog import Dog -from petstore_api.model.boolean_enum import BooleanEnum -from petstore_api.model.pig import Pig -from petstore_api.model.danish_pig import DanishPig -from petstore_api.model.gm_fruit import GmFruit -from petstore_api.model.apple import Apple -from petstore_api.model.banana import Banana +from petstore_api.components.schema.foo import Foo +from petstore_api.components.schema.animal import Animal +from petstore_api.components.schema.dog import Dog +from petstore_api.components.schema.boolean_enum import BooleanEnum +from petstore_api.components.schema.pig import Pig +from petstore_api.components.schema.danish_pig import DanishPig +from petstore_api.components.schema.gm_fruit import GmFruit +from petstore_api.components.schema.apple import Apple +from petstore_api.components.schema.banana import Banana from petstore_api import schemas from petstore_api.schemas import ( diff --git a/samples/openapi3/client/petstore/python/tests_manual/test_whale.py b/samples/openapi3/client/petstore/python/tests_manual/test_whale.py index 7ce302faf99..27a9e8516ff 100644 --- a/samples/openapi3/client/petstore/python/tests_manual/test_whale.py +++ b/samples/openapi3/client/petstore/python/tests_manual/test_whale.py @@ -15,7 +15,7 @@ import petstore_api from petstore_api.schemas import BoolClass -from petstore_api.model.whale import Whale +from petstore_api.components.schema.whale import Whale class TestWhale(unittest.TestCase): From 0a6605d2e85b10fe3911e3997cfb1e7820d60908 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 09:45:47 -0700 Subject: [PATCH 06/11] Fixes readme imports --- .../languages/PythonClientCodegen.java | 20 ++- .../resources/python/README_common.handlebars | 10 +- ...l.handlebars => __init__schema.handlebars} | 2 +- ....handlebars => __init__schemas.handlebars} | 0 .../petstore/python/.openapi-generator/FILES | 121 ------------------ .../openapi3/client/petstore/python/README.md | 8 +- .../python/test/test_models/__init__.py | 0 .../test_additional_properties_class.py | 25 ---- .../test_additional_properties_validator.py | 25 ---- ...ditional_properties_with_array_of_enums.py | 25 ---- .../python/test/test_models/test_address.py | 25 ---- .../python/test/test_models/test_animal.py | 25 ---- .../test/test_models/test_animal_farm.py | 25 ---- .../test_models/test_any_type_and_format.py | 25 ---- .../test_models/test_any_type_not_string.py | 25 ---- .../test/test_models/test_api_response.py | 25 ---- .../python/test/test_models/test_apple.py | 25 ---- .../python/test/test_models/test_apple_req.py | 25 ---- .../test_array_holding_any_type.py | 25 ---- .../test_array_of_array_of_number_only.py | 25 ---- .../test/test_models/test_array_of_enums.py | 25 ---- .../test_models/test_array_of_number_only.py | 25 ---- .../test/test_models/test_array_test.py | 25 ---- .../test_array_with_validations_in_items.py | 25 ---- .../python/test/test_models/test_banana.py | 25 ---- .../test/test_models/test_banana_req.py | 25 ---- .../python/test/test_models/test_bar.py | 25 ---- .../test/test_models/test_basque_pig.py | 25 ---- .../python/test/test_models/test_boolean.py | 25 ---- .../test/test_models/test_boolean_enum.py | 25 ---- .../test/test_models/test_capitalization.py | 25 ---- .../python/test/test_models/test_cat.py | 25 ---- .../python/test/test_models/test_category.py | 25 ---- .../python/test/test_models/test_child_cat.py | 25 ---- .../test/test_models/test_class_model.py | 25 ---- .../python/test/test_models/test_client.py | 25 ---- .../test_models/test_complex_quadrilateral.py | 25 ---- ...d_any_of_different_types_no_validations.py | 25 ---- .../test/test_models/test_composed_array.py | 25 ---- .../test/test_models/test_composed_bool.py | 25 ---- .../test/test_models/test_composed_none.py | 25 ---- .../test/test_models/test_composed_number.py | 25 ---- .../test/test_models/test_composed_object.py | 25 ---- .../test_composed_one_of_different_types.py | 25 ---- .../test/test_models/test_composed_string.py | 25 ---- .../python/test/test_models/test_currency.py | 25 ---- .../test/test_models/test_danish_pig.py | 25 ---- .../test/test_models/test_date_time_test.py | 25 ---- .../test_date_time_with_validations.py | 25 ---- .../test_models/test_date_with_validations.py | 25 ---- .../test/test_models/test_decimal_payload.py | 25 ---- .../python/test/test_models/test_dog.py | 25 ---- .../python/test/test_models/test_drawing.py | 25 ---- .../test/test_models/test_enum_arrays.py | 25 ---- .../test/test_models/test_enum_class.py | 25 ---- .../python/test/test_models/test_enum_test.py | 25 ---- .../test_models/test_equilateral_triangle.py | 25 ---- .../python/test/test_models/test_file.py | 25 ---- .../test_file_schema_test_class.py | 25 ---- .../python/test/test_models/test_foo.py | 25 ---- .../test/test_models/test_format_test.py | 25 ---- .../test/test_models/test_from_schema.py | 25 ---- .../python/test/test_models/test_fruit.py | 25 ---- .../python/test/test_models/test_fruit_req.py | 25 ---- .../python/test/test_models/test_gm_fruit.py | 25 ---- .../test_models/test_grandparent_animal.py | 25 ---- .../test_models/test_has_only_read_only.py | 25 ---- .../test_models/test_health_check_result.py | 25 ---- .../test/test_models/test_integer_enum.py | 25 ---- .../test/test_models/test_integer_enum_big.py | 25 ---- .../test_integer_enum_one_value.py | 25 ---- .../test_integer_enum_with_default_value.py | 25 ---- .../test/test_models/test_integer_max10.py | 25 ---- .../test/test_models/test_integer_min15.py | 25 ---- .../test_models/test_isosceles_triangle.py | 25 ---- .../test_models/test_json_patch_request.py | 25 ---- ...est_json_patch_request_add_replace_test.py | 25 ---- .../test_json_patch_request_move_copy.py | 25 ---- .../test_json_patch_request_remove.py | 25 ---- .../python/test/test_models/test_mammal.py | 25 ---- .../python/test/test_models/test_map_test.py | 25 ---- ...perties_and_additional_properties_class.py | 25 ---- .../test_models/test_model200_response.py | 25 ---- .../test/test_models/test_model_return.py | 25 ---- .../python/test/test_models/test_money.py | 25 ---- .../python/test/test_models/test_name.py | 25 ---- .../test_no_additional_properties.py | 25 ---- .../test/test_models/test_nullable_class.py | 25 ---- .../test/test_models/test_nullable_shape.py | 25 ---- .../test/test_models/test_nullable_string.py | 25 ---- .../python/test/test_models/test_number.py | 25 ---- .../test/test_models/test_number_only.py | 25 ---- .../test_number_with_validations.py | 25 ---- .../test/test_models/test_object_interface.py | 25 ---- .../test_object_model_with_ref_props.py | 25 ---- ..._with_req_test_prop_from_unset_add_prop.py | 25 ---- .../test_object_with_decimal_properties.py | 25 ---- ...est_object_with_difficultly_named_props.py | 25 ---- ...object_with_inline_composition_property.py | 25 ---- ...ect_with_invalid_named_refed_properties.py | 25 ---- .../test_object_with_optional_test_prop.py | 25 ---- .../test_object_with_validations.py | 25 ---- .../python/test/test_models/test_order.py | 25 ---- .../test/test_models/test_parent_pet.py | 25 ---- .../python/test/test_models/test_pet.py | 25 ---- .../python/test/test_models/test_pig.py | 25 ---- .../python/test/test_models/test_player.py | 25 ---- .../test/test_models/test_quadrilateral.py | 25 ---- .../test_quadrilateral_interface.py | 25 ---- .../test/test_models/test_read_only_first.py | 25 ---- .../test/test_models/test_scalene_triangle.py | 25 ---- .../python/test/test_models/test_shape.py | 25 ---- .../test/test_models/test_shape_or_null.py | 25 ---- .../test_models/test_simple_quadrilateral.py | 25 ---- .../test/test_models/test_some_object.py | 25 ---- .../test_models/test_special_model_name.py | 25 ---- .../python/test/test_models/test_string.py | 25 ---- .../test_models/test_string_boolean_map.py | 25 ---- .../test/test_models/test_string_enum.py | 25 ---- .../test_string_enum_with_default_value.py | 25 ---- .../test_string_with_validation.py | 25 ---- .../python/test/test_models/test_tag.py | 25 ---- .../python/test/test_models/test_triangle.py | 25 ---- .../test_models/test_triangle_interface.py | 25 ---- .../python/test/test_models/test_user.py | 25 ---- .../test/test_models/test_uuid_string.py | 25 ---- .../python/test/test_models/test_whale.py | 25 ---- .../python/test/test_models/test_zebra.py | 25 ---- 128 files changed, 25 insertions(+), 3161 deletions(-) rename modules/openapi-json-schema-generator/src/main/resources/python/{__init__model.handlebars => __init__schema.handlebars} (82%) rename modules/openapi-json-schema-generator/src/main/resources/python/{__init__models.handlebars => __init__schemas.handlebars} (100%) delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/__init__.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_address.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_animal.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_api_response.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_apple.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_array_test.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_banana.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_bar.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_boolean.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_cat.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_category.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_class_model.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_client.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_currency.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_dog.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_drawing.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_file.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_foo.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_format_test.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_fruit.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_mammal.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_map_test.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_model_return.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_money.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_name.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_number.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_number_only.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_order.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_pet.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_pig.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_player.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_shape.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_some_object.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_string.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_tag.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_triangle.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_user.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_whale.py delete mode 100644 samples/openapi3/client/petstore/python/test/test_models/test_zebra.py diff --git a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 52f0dfbb24e..8c1277139f4 100644 --- a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -440,9 +440,15 @@ public void processOpts() { // add the models and apis folders String modelPackages = modelPackage + "s"; supportingFiles.add(new SupportingFile("__init__." + templateExtension, packagePath() + File.separatorChar + "components" , "__init__.py")); - supportingFiles.add(new SupportingFile("__init__models." + templateExtension, packagePath() + File.separatorChar + modelPackages.replace('.', File.separatorChar), "__init__.py")); - supportingFiles.add(new SupportingFile("__init__model." + templateExtension, packagePath() + File.separatorChar + modelPackage.replace('.', File.separatorChar), "__init__.py")); - supportingFiles.add(new SupportingFile("__init__apis." + templateExtension, packagePath() + File.separatorChar + apiPackage, "__init__.py")); + boolean generateModels = (boolean) additionalProperties().get(CodegenConstants.GENERATE_MODELS); + if (generateModels) { + supportingFiles.add(new SupportingFile("__init__schemas." + templateExtension, packagePath() + File.separatorChar + modelPackages.replace('.', File.separatorChar), "__init__.py")); + supportingFiles.add(new SupportingFile("__init__schema." + templateExtension, packagePath() + File.separatorChar + modelPackage.replace('.', File.separatorChar), "__init__.py")); + } + boolean generateApis = (boolean) additionalProperties().get(CodegenConstants.GENERATE_APIS); + if (generateApis) { + supportingFiles.add(new SupportingFile("__init__apis." + templateExtension, packagePath() + File.separatorChar + apiPackage, "__init__.py")); + } // Generate the 'signing.py' module, but only if the 'HTTP signature' security scheme is specified in the OAS. Map securitySchemeMap = openAPI != null ? (openAPI.getComponents() != null ? openAPI.getComponents().getSecuritySchemes() : null) : null; @@ -669,7 +675,7 @@ protected void generateEndpoints(OperationsMap objs) { tagToApiMap.put("apiClassname", "Api"); tagToApiMap.put("tagModuleNameToApiClassname", tagModuleNameToApiClassname); tagToApiMap.put("tagEnumToApiClassname", tagEnumToApiClassname); - outputFilename = packageFilename(Arrays.asList("apis", "tag_to_api.py")); + outputFilename = packageFilename(Arrays.asList(apiPackage, "tag_to_api.py")); apisFiles.add(Arrays.asList(tagToApiMap, "apis_tag_to_api.handlebars", outputFilename)); // apis.path_to_api.py Map allByPathsFileMap = new HashMap<>(); @@ -677,13 +683,13 @@ protected void generateEndpoints(OperationsMap objs) { allByPathsFileMap.put("apiClassname", "Api"); allByPathsFileMap.put("pathModuleToApiClassname", pathModuleToApiClassname); allByPathsFileMap.put("pathEnumToApiClassname", pathEnumToApiClassname); - outputFilename = packageFilename(Arrays.asList("apis", "path_to_api.py")); + outputFilename = packageFilename(Arrays.asList(apiPackage, "path_to_api.py")); apisFiles.add(Arrays.asList(allByPathsFileMap, "apis_path_to_api.handlebars", outputFilename)); // apis.paths.__init__.py Map initApiTagsMap = new HashMap<>(); initApiTagsMap.put("packageName", packageName); initApiTagsMap.put("enumToTag", enumToTag); - outputFilename = packageFilename(Arrays.asList("apis", "tags", "__init__.py")); + outputFilename = packageFilename(Arrays.asList(apiPackage, "tags", "__init__.py")); apisFiles.add(Arrays.asList(initApiTagsMap, "__init__apis_tags.handlebars", outputFilename)); // paths.__init__.py (contains path str enum) @@ -694,7 +700,7 @@ protected void generateEndpoints(OperationsMap objs) { outputFilename = packageFilename(Arrays.asList("paths", "__init__.py")); pathsFiles.add(Arrays.asList(initOperationMap, "__init__paths_enum.handlebars", outputFilename)); // apis.paths.__init__.py - outputFilename = packageFilename(Arrays.asList("apis", "paths", "__init__.py")); + outputFilename = packageFilename(Arrays.asList(apiPackage, "paths", "__init__.py")); apisFiles.add(Arrays.asList(initOperationMap, "__init__paths.handlebars", outputFilename)); // paths.some_path.__init__.py // apis.paths.some_path.py diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/README_common.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/README_common.handlebars index f79c4294b28..21982a50db2 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/README_common.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/README_common.handlebars @@ -68,20 +68,22 @@ Class | Method | HTTP request | Description {{/unless}}{{/each}}{{/with}} ## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in {{{packageName}}}.apis and {{{packageName}}}.models may fail with a +If the OpenAPI document is large, imports in {{{packageName}}}.{{apiPackage}}.tags.tag_to_api and {{{packageName}}}.{{modelPackage}}s may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: Solution 1: Use specific imports for apis and models like: - `from {{{packageName}}}.{{apiPackage}}.default_api import DefaultApi` +- `from {{{packageName}}}.{{apiPackage}}.paths.some_path import SomePath` +- `from {{{packageName}}}.paths.some_path.get import ApiForget` - `from {{{packageName}}}.{{modelPackage}}.pet import Pet` -Solution 1: +Solution 2: Before importing the package, adjust the maximum recursion limit as shown below: ``` import sys sys.setrecursionlimit(1500) import {{{packageName}}} -from {{{packageName}}}.apis import * -from {{{packageName}}}.models import * +from {{{packageName}}}.{{apiPackage}}.tags.tag_to_api import * +from {{{packageName}}}.{{modelPackage}}s import * ``` diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/__init__model.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/__init__schema.handlebars similarity index 82% rename from modules/openapi-json-schema-generator/src/main/resources/python/__init__model.handlebars rename to modules/openapi-json-schema-generator/src/main/resources/python/__init__schema.handlebars index b6b698b0452..c9be30e0f54 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/__init__model.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/__init__schema.handlebars @@ -2,4 +2,4 @@ # reference which would not work in python2 # do not import all models into this module because that uses a lot of memory and stack frames # if you need the ability to import all models from one package, import them with -# from {{packageName}}.models import ModelA, ModelB +# from {{packageName}}.{{modelPackage}}s import ModelA, ModelB diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/__init__models.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/__init__schemas.handlebars similarity index 100% rename from modules/openapi-json-schema-generator/src/main/resources/python/__init__models.handlebars rename to modules/openapi-json-schema-generator/src/main/resources/python/__init__schemas.handlebars diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/FILES b/samples/openapi3/client/petstore/python/.openapi-generator/FILES index 7e4ec689f03..1de746c1ff1 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/python/.openapi-generator/FILES @@ -397,125 +397,4 @@ setup.py test-requirements.txt test/__init__.py test/components/schema/__init__.py -test/components/schema/test_additional_properties_class.py -test/components/schema/test_additional_properties_validator.py -test/components/schema/test_additional_properties_with_array_of_enums.py -test/components/schema/test_address.py -test/components/schema/test_animal.py -test/components/schema/test_animal_farm.py -test/components/schema/test_any_type_and_format.py -test/components/schema/test_any_type_not_string.py -test/components/schema/test_api_response.py -test/components/schema/test_apple.py -test/components/schema/test_apple_req.py -test/components/schema/test_array_holding_any_type.py -test/components/schema/test_array_of_array_of_number_only.py -test/components/schema/test_array_of_enums.py -test/components/schema/test_array_of_number_only.py -test/components/schema/test_array_test.py -test/components/schema/test_array_with_validations_in_items.py -test/components/schema/test_banana.py -test/components/schema/test_banana_req.py -test/components/schema/test_bar.py -test/components/schema/test_basque_pig.py -test/components/schema/test_boolean.py -test/components/schema/test_boolean_enum.py -test/components/schema/test_capitalization.py -test/components/schema/test_cat.py -test/components/schema/test_category.py -test/components/schema/test_child_cat.py -test/components/schema/test_class_model.py -test/components/schema/test_client.py -test/components/schema/test_complex_quadrilateral.py -test/components/schema/test_composed_any_of_different_types_no_validations.py -test/components/schema/test_composed_array.py -test/components/schema/test_composed_bool.py -test/components/schema/test_composed_none.py -test/components/schema/test_composed_number.py -test/components/schema/test_composed_object.py -test/components/schema/test_composed_one_of_different_types.py -test/components/schema/test_composed_string.py -test/components/schema/test_currency.py -test/components/schema/test_danish_pig.py -test/components/schema/test_date_time_test.py -test/components/schema/test_date_time_with_validations.py -test/components/schema/test_date_with_validations.py -test/components/schema/test_decimal_payload.py -test/components/schema/test_dog.py -test/components/schema/test_drawing.py -test/components/schema/test_enum_arrays.py -test/components/schema/test_enum_class.py -test/components/schema/test_enum_test.py -test/components/schema/test_equilateral_triangle.py -test/components/schema/test_file.py -test/components/schema/test_file_schema_test_class.py -test/components/schema/test_foo.py -test/components/schema/test_format_test.py -test/components/schema/test_from_schema.py -test/components/schema/test_fruit.py -test/components/schema/test_fruit_req.py -test/components/schema/test_gm_fruit.py -test/components/schema/test_grandparent_animal.py -test/components/schema/test_has_only_read_only.py -test/components/schema/test_health_check_result.py -test/components/schema/test_integer_enum.py -test/components/schema/test_integer_enum_big.py -test/components/schema/test_integer_enum_one_value.py -test/components/schema/test_integer_enum_with_default_value.py -test/components/schema/test_integer_max10.py -test/components/schema/test_integer_min15.py -test/components/schema/test_isosceles_triangle.py -test/components/schema/test_json_patch_request.py -test/components/schema/test_json_patch_request_add_replace_test.py -test/components/schema/test_json_patch_request_move_copy.py -test/components/schema/test_json_patch_request_remove.py -test/components/schema/test_mammal.py -test/components/schema/test_map_test.py -test/components/schema/test_mixed_properties_and_additional_properties_class.py -test/components/schema/test_model200_response.py -test/components/schema/test_model_return.py -test/components/schema/test_money.py -test/components/schema/test_name.py -test/components/schema/test_no_additional_properties.py -test/components/schema/test_nullable_class.py -test/components/schema/test_nullable_shape.py -test/components/schema/test_nullable_string.py -test/components/schema/test_number.py -test/components/schema/test_number_only.py -test/components/schema/test_number_with_validations.py -test/components/schema/test_object_interface.py -test/components/schema/test_object_model_with_ref_props.py -test/components/schema/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py -test/components/schema/test_object_with_decimal_properties.py -test/components/schema/test_object_with_difficultly_named_props.py -test/components/schema/test_object_with_inline_composition_property.py -test/components/schema/test_object_with_invalid_named_refed_properties.py -test/components/schema/test_object_with_optional_test_prop.py -test/components/schema/test_object_with_validations.py -test/components/schema/test_order.py -test/components/schema/test_parent_pet.py -test/components/schema/test_pet.py -test/components/schema/test_pig.py -test/components/schema/test_player.py -test/components/schema/test_quadrilateral.py -test/components/schema/test_quadrilateral_interface.py -test/components/schema/test_read_only_first.py -test/components/schema/test_scalene_triangle.py -test/components/schema/test_shape.py -test/components/schema/test_shape_or_null.py -test/components/schema/test_simple_quadrilateral.py -test/components/schema/test_some_object.py -test/components/schema/test_special_model_name.py -test/components/schema/test_string.py -test/components/schema/test_string_boolean_map.py -test/components/schema/test_string_enum.py -test/components/schema/test_string_enum_with_default_value.py -test/components/schema/test_string_with_validation.py -test/components/schema/test_tag.py -test/components/schema/test_triangle.py -test/components/schema/test_triangle_interface.py -test/components/schema/test_user.py -test/components/schema/test_uuid_string.py -test/components/schema/test_whale.py -test/components/schema/test_zebra.py tox.ini diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index fed1279903d..eb1561d10a3 100644 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -406,20 +406,22 @@ Class | Method | HTTP request | Description ## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in petstore_api.apis and petstore_api.components.schemas may fail with a +If the OpenAPI document is large, imports in petstore_api.apis.tags.tag_to_api and petstore_api.components.schemas may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: Solution 1: Use specific imports for apis and models like: - `from petstore_api.apis.default_api import DefaultApi` +- `from petstore_api.apis.paths.some_path import SomePath` +- `from petstore_api.paths.some_path.get import ApiForget` - `from petstore_api.components.schema.pet import Pet` -Solution 1: +Solution 2: Before importing the package, adjust the maximum recursion limit as shown below: ``` import sys sys.setrecursionlimit(1500) import petstore_api -from petstore_api.apis import * +from petstore_api.apis.tags.tag_to_api import * from petstore_api.components.schemas import * ``` diff --git a/samples/openapi3/client/petstore/python/test/test_models/__init__.py b/samples/openapi3/client/petstore/python/test/test_models/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py deleted file mode 100644 index 8aa09106708..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_class.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.additional_properties_class import AdditionalPropertiesClass -from petstore_api import configuration - - -class TestAdditionalPropertiesClass(unittest.TestCase): - """AdditionalPropertiesClass unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py deleted file mode 100644 index f1ec27f7a68..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_validator.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.additional_properties_validator import AdditionalPropertiesValidator -from petstore_api import configuration - - -class TestAdditionalPropertiesValidator(unittest.TestCase): - """AdditionalPropertiesValidator unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py deleted file mode 100644 index ebacf6f2566..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_additional_properties_with_array_of_enums.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums -from petstore_api import configuration - - -class TestAdditionalPropertiesWithArrayOfEnums(unittest.TestCase): - """AdditionalPropertiesWithArrayOfEnums unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_address.py b/samples/openapi3/client/petstore/python/test/test_models/test_address.py deleted file mode 100644 index aa3b444923c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_address.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.address import Address -from petstore_api import configuration - - -class TestAddress(unittest.TestCase): - """Address unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_animal.py b/samples/openapi3/client/petstore/python/test/test_models/test_animal.py deleted file mode 100644 index 02b0b28c776..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_animal.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.animal import Animal -from petstore_api import configuration - - -class TestAnimal(unittest.TestCase): - """Animal unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py b/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py deleted file mode 100644 index c81ee608560..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_animal_farm.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.animal_farm import AnimalFarm -from petstore_api import configuration - - -class TestAnimalFarm(unittest.TestCase): - """AnimalFarm unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py b/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py deleted file mode 100644 index 312389fdcee..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_and_format.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.any_type_and_format import AnyTypeAndFormat -from petstore_api import configuration - - -class TestAnyTypeAndFormat(unittest.TestCase): - """AnyTypeAndFormat unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py deleted file mode 100644 index b8392bdc42f..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_any_type_not_string.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.any_type_not_string import AnyTypeNotString -from petstore_api import configuration - - -class TestAnyTypeNotString(unittest.TestCase): - """AnyTypeNotString unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py b/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py deleted file mode 100644 index 09b2c9e8dfc..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_api_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.api_response import ApiResponse -from petstore_api import configuration - - -class TestApiResponse(unittest.TestCase): - """ApiResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_apple.py b/samples/openapi3/client/petstore/python/test/test_models/test_apple.py deleted file mode 100644 index 3662d1e2aee..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_apple.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.apple import Apple -from petstore_api import configuration - - -class TestApple(unittest.TestCase): - """Apple unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py b/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py deleted file mode 100644 index a8709008fa3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_apple_req.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.apple_req import AppleReq -from petstore_api import configuration - - -class TestAppleReq(unittest.TestCase): - """AppleReq unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py deleted file mode 100644 index dc453e72a83..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_holding_any_type.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.array_holding_any_type import ArrayHoldingAnyType -from petstore_api import configuration - - -class TestArrayHoldingAnyType(unittest.TestCase): - """ArrayHoldingAnyType unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py deleted file mode 100644 index 1170d7bbc2b..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_array_of_number_only.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly -from petstore_api import configuration - - -class TestArrayOfArrayOfNumberOnly(unittest.TestCase): - """ArrayOfArrayOfNumberOnly unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py deleted file mode 100644 index 595474d7a1a..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_enums.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.array_of_enums import ArrayOfEnums -from petstore_api import configuration - - -class TestArrayOfEnums(unittest.TestCase): - """ArrayOfEnums unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py deleted file mode 100644 index f538c7eb0fe..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_of_number_only.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.array_of_number_only import ArrayOfNumberOnly -from petstore_api import configuration - - -class TestArrayOfNumberOnly(unittest.TestCase): - """ArrayOfNumberOnly unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py deleted file mode 100644 index 3d74d16746f..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_test.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.array_test import ArrayTest -from petstore_api import configuration - - -class TestArrayTest(unittest.TestCase): - """ArrayTest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py b/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py deleted file mode 100644 index b3fbd82f6a1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_array_with_validations_in_items.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.array_with_validations_in_items import ArrayWithValidationsInItems -from petstore_api import configuration - - -class TestArrayWithValidationsInItems(unittest.TestCase): - """ArrayWithValidationsInItems unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_banana.py b/samples/openapi3/client/petstore/python/test/test_models/test_banana.py deleted file mode 100644 index dcbfbfc2d48..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_banana.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.banana import Banana -from petstore_api import configuration - - -class TestBanana(unittest.TestCase): - """Banana unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py b/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py deleted file mode 100644 index 508ef000715..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_banana_req.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.banana_req import BananaReq -from petstore_api import configuration - - -class TestBananaReq(unittest.TestCase): - """BananaReq unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_bar.py b/samples/openapi3/client/petstore/python/test/test_models/test_bar.py deleted file mode 100644 index 4c583f22c2c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_bar.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.bar import Bar -from petstore_api import configuration - - -class TestBar(unittest.TestCase): - """Bar unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py b/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py deleted file mode 100644 index 1da70dbe0b1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_basque_pig.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.basque_pig import BasquePig -from petstore_api import configuration - - -class TestBasquePig(unittest.TestCase): - """BasquePig unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py b/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py deleted file mode 100644 index e0e2048d72c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_boolean.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.boolean import Boolean -from petstore_api import configuration - - -class TestBoolean(unittest.TestCase): - """Boolean unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py b/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py deleted file mode 100644 index 1509659f4f8..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_boolean_enum.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.boolean_enum import BooleanEnum -from petstore_api import configuration - - -class TestBooleanEnum(unittest.TestCase): - """BooleanEnum unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py b/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py deleted file mode 100644 index f3873a5f6d5..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_capitalization.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.capitalization import Capitalization -from petstore_api import configuration - - -class TestCapitalization(unittest.TestCase): - """Capitalization unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_cat.py b/samples/openapi3/client/petstore/python/test/test_models/test_cat.py deleted file mode 100644 index 2356ee93d36..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_cat.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.cat import Cat -from petstore_api import configuration - - -class TestCat(unittest.TestCase): - """Cat unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_category.py b/samples/openapi3/client/petstore/python/test/test_models/test_category.py deleted file mode 100644 index 0bdb489d0bb..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_category.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.category import Category -from petstore_api import configuration - - -class TestCategory(unittest.TestCase): - """Category unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py b/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py deleted file mode 100644 index c7f781d5cd3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_child_cat.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.child_cat import ChildCat -from petstore_api import configuration - - -class TestChildCat(unittest.TestCase): - """ChildCat unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py b/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py deleted file mode 100644 index c3323c671b0..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_class_model.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.class_model import ClassModel -from petstore_api import configuration - - -class TestClassModel(unittest.TestCase): - """ClassModel unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_client.py b/samples/openapi3/client/petstore/python/test/test_models/test_client.py deleted file mode 100644 index 723dfd34d6c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_client.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.client import Client -from petstore_api import configuration - - -class TestClient(unittest.TestCase): - """Client unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py b/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py deleted file mode 100644 index 7bc5faf4f32..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_complex_quadrilateral.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.complex_quadrilateral import ComplexQuadrilateral -from petstore_api import configuration - - -class TestComplexQuadrilateral(unittest.TestCase): - """ComplexQuadrilateral unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py deleted file mode 100644 index bd0605c1943..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_any_of_different_types_no_validations.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_any_of_different_types_no_validations import ComposedAnyOfDifferentTypesNoValidations -from petstore_api import configuration - - -class TestComposedAnyOfDifferentTypesNoValidations(unittest.TestCase): - """ComposedAnyOfDifferentTypesNoValidations unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py deleted file mode 100644 index 95b9c6230ba..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_array.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_array import ComposedArray -from petstore_api import configuration - - -class TestComposedArray(unittest.TestCase): - """ComposedArray unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py deleted file mode 100644 index 1c38e60b7a3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_bool.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_bool import ComposedBool -from petstore_api import configuration - - -class TestComposedBool(unittest.TestCase): - """ComposedBool unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py deleted file mode 100644 index 279e44b258a..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_none.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_none import ComposedNone -from petstore_api import configuration - - -class TestComposedNone(unittest.TestCase): - """ComposedNone unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py deleted file mode 100644 index 84519b919a9..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_number.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_number import ComposedNumber -from petstore_api import configuration - - -class TestComposedNumber(unittest.TestCase): - """ComposedNumber unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py deleted file mode 100644 index ab3ad73a628..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_object.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_object import ComposedObject -from petstore_api import configuration - - -class TestComposedObject(unittest.TestCase): - """ComposedObject unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py deleted file mode 100644 index 49a0483e30c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_one_of_different_types.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_one_of_different_types import ComposedOneOfDifferentTypes -from petstore_api import configuration - - -class TestComposedOneOfDifferentTypes(unittest.TestCase): - """ComposedOneOfDifferentTypes unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py deleted file mode 100644 index 83b45c26226..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_composed_string.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.composed_string import ComposedString -from petstore_api import configuration - - -class TestComposedString(unittest.TestCase): - """ComposedString unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_currency.py b/samples/openapi3/client/petstore/python/test/test_models/test_currency.py deleted file mode 100644 index 515f156bb46..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_currency.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.currency import Currency -from petstore_api import configuration - - -class TestCurrency(unittest.TestCase): - """Currency unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py b/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py deleted file mode 100644 index f66f2e0af27..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_danish_pig.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.danish_pig import DanishPig -from petstore_api import configuration - - -class TestDanishPig(unittest.TestCase): - """DanishPig unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py deleted file mode 100644 index 4979d3f1724..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_test.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.date_time_test import DateTimeTest -from petstore_api import configuration - - -class TestDateTimeTest(unittest.TestCase): - """DateTimeTest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py deleted file mode 100644 index 5cdc679472b..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_date_time_with_validations.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.date_time_with_validations import DateTimeWithValidations -from petstore_api import configuration - - -class TestDateTimeWithValidations(unittest.TestCase): - """DateTimeWithValidations unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py deleted file mode 100644 index cfab4f00713..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_date_with_validations.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.date_with_validations import DateWithValidations -from petstore_api import configuration - - -class TestDateWithValidations(unittest.TestCase): - """DateWithValidations unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py b/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py deleted file mode 100644 index 870c95061a6..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_decimal_payload.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.decimal_payload import DecimalPayload -from petstore_api import configuration - - -class TestDecimalPayload(unittest.TestCase): - """DecimalPayload unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_dog.py b/samples/openapi3/client/petstore/python/test/test_models/test_dog.py deleted file mode 100644 index f30d06c8439..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_dog.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.dog import Dog -from petstore_api import configuration - - -class TestDog(unittest.TestCase): - """Dog unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py b/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py deleted file mode 100644 index 31fe628596b..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_drawing.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.drawing import Drawing -from petstore_api import configuration - - -class TestDrawing(unittest.TestCase): - """Drawing unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py b/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py deleted file mode 100644 index b44ecaca694..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_enum_arrays.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.enum_arrays import EnumArrays -from petstore_api import configuration - - -class TestEnumArrays(unittest.TestCase): - """EnumArrays unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py deleted file mode 100644 index b5019034b60..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_enum_class.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.enum_class import EnumClass -from petstore_api import configuration - - -class TestEnumClass(unittest.TestCase): - """EnumClass unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py deleted file mode 100644 index e13c90df04d..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_enum_test.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.enum_test import EnumTest -from petstore_api import configuration - - -class TestEnumTest(unittest.TestCase): - """EnumTest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py deleted file mode 100644 index a017d0a5ea2..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_equilateral_triangle.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.equilateral_triangle import EquilateralTriangle -from petstore_api import configuration - - -class TestEquilateralTriangle(unittest.TestCase): - """EquilateralTriangle unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_file.py b/samples/openapi3/client/petstore/python/test/test_models/test_file.py deleted file mode 100644 index dd610b6b7f6..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_file.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.file import File -from petstore_api import configuration - - -class TestFile(unittest.TestCase): - """File unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py deleted file mode 100644 index aeef3d815a1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_file_schema_test_class.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.file_schema_test_class import FileSchemaTestClass -from petstore_api import configuration - - -class TestFileSchemaTestClass(unittest.TestCase): - """FileSchemaTestClass unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_foo.py b/samples/openapi3/client/petstore/python/test/test_models/test_foo.py deleted file mode 100644 index 42a074eb2f5..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_foo.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.foo import Foo -from petstore_api import configuration - - -class TestFoo(unittest.TestCase): - """Foo unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py deleted file mode 100644 index 1f7154c23cc..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_format_test.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.format_test import FormatTest -from petstore_api import configuration - - -class TestFormatTest(unittest.TestCase): - """FormatTest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py b/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py deleted file mode 100644 index 8f38981ced3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_from_schema.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.from_schema import FromSchema -from petstore_api import configuration - - -class TestFromSchema(unittest.TestCase): - """FromSchema unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py b/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py deleted file mode 100644 index 6898cbdbde3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_fruit.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.fruit import Fruit -from petstore_api import configuration - - -class TestFruit(unittest.TestCase): - """Fruit unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py b/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py deleted file mode 100644 index 8f170b0e371..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_fruit_req.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.fruit_req import FruitReq -from petstore_api import configuration - - -class TestFruitReq(unittest.TestCase): - """FruitReq unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py b/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py deleted file mode 100644 index 0629c5c7fe6..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_gm_fruit.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.gm_fruit import GmFruit -from petstore_api import configuration - - -class TestGmFruit(unittest.TestCase): - """GmFruit unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py b/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py deleted file mode 100644 index 1ff81b7d942..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_grandparent_animal.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.grandparent_animal import GrandparentAnimal -from petstore_api import configuration - - -class TestGrandparentAnimal(unittest.TestCase): - """GrandparentAnimal unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py deleted file mode 100644 index aeee8e7e0f3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_has_only_read_only.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.has_only_read_only import HasOnlyReadOnly -from petstore_api import configuration - - -class TestHasOnlyReadOnly(unittest.TestCase): - """HasOnlyReadOnly unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py b/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py deleted file mode 100644 index 6cffea38e63..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_health_check_result.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.health_check_result import HealthCheckResult -from petstore_api import configuration - - -class TestHealthCheckResult(unittest.TestCase): - """HealthCheckResult unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py deleted file mode 100644 index 126d4b980c1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.integer_enum import IntegerEnum -from petstore_api import configuration - - -class TestIntegerEnum(unittest.TestCase): - """IntegerEnum unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py deleted file mode 100644 index b56d3a85fd3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_big.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.integer_enum_big import IntegerEnumBig -from petstore_api import configuration - - -class TestIntegerEnumBig(unittest.TestCase): - """IntegerEnumBig unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py deleted file mode 100644 index ba41c9ea341..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_one_value.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.integer_enum_one_value import IntegerEnumOneValue -from petstore_api import configuration - - -class TestIntegerEnumOneValue(unittest.TestCase): - """IntegerEnumOneValue unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py deleted file mode 100644 index 7a9bd46f6c5..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_enum_with_default_value.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.integer_enum_with_default_value import IntegerEnumWithDefaultValue -from petstore_api import configuration - - -class TestIntegerEnumWithDefaultValue(unittest.TestCase): - """IntegerEnumWithDefaultValue unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py deleted file mode 100644 index cf3001d643a..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_max10.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.integer_max10 import IntegerMax10 -from petstore_api import configuration - - -class TestIntegerMax10(unittest.TestCase): - """IntegerMax10 unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py b/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py deleted file mode 100644 index e7639c72d76..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_integer_min15.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.integer_min15 import IntegerMin15 -from petstore_api import configuration - - -class TestIntegerMin15(unittest.TestCase): - """IntegerMin15 unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py deleted file mode 100644 index 1e39b2cd02c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_isosceles_triangle.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.isosceles_triangle import IsoscelesTriangle -from petstore_api import configuration - - -class TestIsoscelesTriangle(unittest.TestCase): - """IsoscelesTriangle unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py deleted file mode 100644 index 83a3196d66b..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.json_patch_request import JSONPatchRequest -from petstore_api import configuration - - -class TestJSONPatchRequest(unittest.TestCase): - """JSONPatchRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py deleted file mode 100644 index 20227e4b64b..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_add_replace_test.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.json_patch_request_add_replace_test import JSONPatchRequestAddReplaceTest -from petstore_api import configuration - - -class TestJSONPatchRequestAddReplaceTest(unittest.TestCase): - """JSONPatchRequestAddReplaceTest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py deleted file mode 100644 index e5382437cc0..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_move_copy.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.json_patch_request_move_copy import JSONPatchRequestMoveCopy -from petstore_api import configuration - - -class TestJSONPatchRequestMoveCopy(unittest.TestCase): - """JSONPatchRequestMoveCopy unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py b/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py deleted file mode 100644 index e0e7ce7d034..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_json_patch_request_remove.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.json_patch_request_remove import JSONPatchRequestRemove -from petstore_api import configuration - - -class TestJSONPatchRequestRemove(unittest.TestCase): - """JSONPatchRequestRemove unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py b/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py deleted file mode 100644 index e6139351be3..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_mammal.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.mammal import Mammal -from petstore_api import configuration - - -class TestMammal(unittest.TestCase): - """Mammal unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py b/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py deleted file mode 100644 index 3d613b722f5..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_map_test.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.map_test import MapTest -from petstore_api import configuration - - -class TestMapTest(unittest.TestCase): - """MapTest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py deleted file mode 100644 index fc2364b3ba6..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_mixed_properties_and_additional_properties_class.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass -from petstore_api import configuration - - -class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): - """MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py b/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py deleted file mode 100644 index e631d076d52..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_model200_response.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.model200_response import Model200Response -from petstore_api import configuration - - -class TestModel200Response(unittest.TestCase): - """Model200Response unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py b/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py deleted file mode 100644 index ce39809c273..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_model_return.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.model_return import ModelReturn -from petstore_api import configuration - - -class TestModelReturn(unittest.TestCase): - """ModelReturn unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_money.py b/samples/openapi3/client/petstore/python/test/test_models/test_money.py deleted file mode 100644 index c714cd3f071..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_money.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.money import Money -from petstore_api import configuration - - -class TestMoney(unittest.TestCase): - """Money unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_name.py b/samples/openapi3/client/petstore/python/test/test_models/test_name.py deleted file mode 100644 index 2528d3de6d1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_name.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.name import Name -from petstore_api import configuration - - -class TestName(unittest.TestCase): - """Name unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py b/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py deleted file mode 100644 index fa33821fd1e..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_no_additional_properties.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.no_additional_properties import NoAdditionalProperties -from petstore_api import configuration - - -class TestNoAdditionalProperties(unittest.TestCase): - """NoAdditionalProperties unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py deleted file mode 100644 index 131c65d796f..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_class.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.nullable_class import NullableClass -from petstore_api import configuration - - -class TestNullableClass(unittest.TestCase): - """NullableClass unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py deleted file mode 100644 index 4c0aec52f2c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_shape.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.nullable_shape import NullableShape -from petstore_api import configuration - - -class TestNullableShape(unittest.TestCase): - """NullableShape unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py deleted file mode 100644 index fe75a05dfff..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_nullable_string.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.nullable_string import NullableString -from petstore_api import configuration - - -class TestNullableString(unittest.TestCase): - """NullableString unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_number.py b/samples/openapi3/client/petstore/python/test/test_models/test_number.py deleted file mode 100644 index 635bf94b01b..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_number.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.number import Number -from petstore_api import configuration - - -class TestNumber(unittest.TestCase): - """Number unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py b/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py deleted file mode 100644 index 7ab3095e52d..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_number_only.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.number_only import NumberOnly -from petstore_api import configuration - - -class TestNumberOnly(unittest.TestCase): - """NumberOnly unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py deleted file mode 100644 index 691fd5fb799..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_number_with_validations.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.number_with_validations import NumberWithValidations -from petstore_api import configuration - - -class TestNumberWithValidations(unittest.TestCase): - """NumberWithValidations unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py deleted file mode 100644 index 538b94fa113..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_interface.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_interface import ObjectInterface -from petstore_api import configuration - - -class TestObjectInterface(unittest.TestCase): - """ObjectInterface unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py deleted file mode 100644 index 75f6583793a..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_model_with_ref_props.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_model_with_ref_props import ObjectModelWithRefProps -from petstore_api import configuration - - -class TestObjectModelWithRefProps(unittest.TestCase): - """ObjectModelWithRefProps unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py deleted file mode 100644 index d2da2132ed1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_all_of_with_req_test_prop_from_unset_add_prop.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp -from petstore_api import configuration - - -class TestObjectWithAllOfWithReqTestPropFromUnsetAddProp(unittest.TestCase): - """ObjectWithAllOfWithReqTestPropFromUnsetAddProp unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py deleted file mode 100644 index da11142371d..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_decimal_properties.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_decimal_properties import ObjectWithDecimalProperties -from petstore_api import configuration - - -class TestObjectWithDecimalProperties(unittest.TestCase): - """ObjectWithDecimalProperties unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py deleted file mode 100644 index 12714bd8309..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_difficultly_named_props.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps -from petstore_api import configuration - - -class TestObjectWithDifficultlyNamedProps(unittest.TestCase): - """ObjectWithDifficultlyNamedProps unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py deleted file mode 100644 index 4a9759281c0..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_inline_composition_property.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_inline_composition_property import ObjectWithInlineCompositionProperty -from petstore_api import configuration - - -class TestObjectWithInlineCompositionProperty(unittest.TestCase): - """ObjectWithInlineCompositionProperty unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py deleted file mode 100644 index 941fdb58d0c..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_invalid_named_refed_properties.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties -from petstore_api import configuration - - -class TestObjectWithInvalidNamedRefedProperties(unittest.TestCase): - """ObjectWithInvalidNamedRefedProperties unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py deleted file mode 100644 index 8da69416663..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_optional_test_prop.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_optional_test_prop import ObjectWithOptionalTestProp -from petstore_api import configuration - - -class TestObjectWithOptionalTestProp(unittest.TestCase): - """ObjectWithOptionalTestProp unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py b/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py deleted file mode 100644 index c2a32b31ab1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_object_with_validations.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.object_with_validations import ObjectWithValidations -from petstore_api import configuration - - -class TestObjectWithValidations(unittest.TestCase): - """ObjectWithValidations unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_order.py b/samples/openapi3/client/petstore/python/test/test_models/test_order.py deleted file mode 100644 index 16e105fb98d..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_order.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.order import Order -from petstore_api import configuration - - -class TestOrder(unittest.TestCase): - """Order unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py b/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py deleted file mode 100644 index cd59bd34bc4..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_parent_pet.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.parent_pet import ParentPet -from petstore_api import configuration - - -class TestParentPet(unittest.TestCase): - """ParentPet unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_pet.py b/samples/openapi3/client/petstore/python/test/test_models/test_pet.py deleted file mode 100644 index e80a51e38c1..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_pet.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.pet import Pet -from petstore_api import configuration - - -class TestPet(unittest.TestCase): - """Pet unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_pig.py b/samples/openapi3/client/petstore/python/test/test_models/test_pig.py deleted file mode 100644 index 8305491ba38..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_pig.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.pig import Pig -from petstore_api import configuration - - -class TestPig(unittest.TestCase): - """Pig unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_player.py b/samples/openapi3/client/petstore/python/test/test_models/test_player.py deleted file mode 100644 index 3cea2f7fcf7..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_player.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.player import Player -from petstore_api import configuration - - -class TestPlayer(unittest.TestCase): - """Player unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py b/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py deleted file mode 100644 index bd0df64b143..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.quadrilateral import Quadrilateral -from petstore_api import configuration - - -class TestQuadrilateral(unittest.TestCase): - """Quadrilateral unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py b/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py deleted file mode 100644 index 579a02747de..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_quadrilateral_interface.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.quadrilateral_interface import QuadrilateralInterface -from petstore_api import configuration - - -class TestQuadrilateralInterface(unittest.TestCase): - """QuadrilateralInterface unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py b/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py deleted file mode 100644 index 2b8f9ec8866..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_read_only_first.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.read_only_first import ReadOnlyFirst -from petstore_api import configuration - - -class TestReadOnlyFirst(unittest.TestCase): - """ReadOnlyFirst unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py deleted file mode 100644 index c1d5563ff49..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_scalene_triangle.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.scalene_triangle import ScaleneTriangle -from petstore_api import configuration - - -class TestScaleneTriangle(unittest.TestCase): - """ScaleneTriangle unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_shape.py b/samples/openapi3/client/petstore/python/test/test_models/test_shape.py deleted file mode 100644 index f1d6498d9e6..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_shape.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.shape import Shape -from petstore_api import configuration - - -class TestShape(unittest.TestCase): - """Shape unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py b/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py deleted file mode 100644 index 5c070603dde..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_shape_or_null.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.shape_or_null import ShapeOrNull -from petstore_api import configuration - - -class TestShapeOrNull(unittest.TestCase): - """ShapeOrNull unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py b/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py deleted file mode 100644 index 491b3199a27..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_simple_quadrilateral.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.simple_quadrilateral import SimpleQuadrilateral -from petstore_api import configuration - - -class TestSimpleQuadrilateral(unittest.TestCase): - """SimpleQuadrilateral unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py b/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py deleted file mode 100644 index cd3924eb896..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_some_object.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.some_object import SomeObject -from petstore_api import configuration - - -class TestSomeObject(unittest.TestCase): - """SomeObject unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py b/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py deleted file mode 100644 index 33a3ab307d5..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_special_model_name.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.special_model_name import SpecialModelName -from petstore_api import configuration - - -class TestSpecialModelName(unittest.TestCase): - """SpecialModelName unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_string.py deleted file mode 100644 index 31e1c2a1a88..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.string import String -from petstore_api import configuration - - -class TestString(unittest.TestCase): - """String unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py deleted file mode 100644 index dc662a16980..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_boolean_map.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.string_boolean_map import StringBooleanMap -from petstore_api import configuration - - -class TestStringBooleanMap(unittest.TestCase): - """StringBooleanMap unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py deleted file mode 100644 index e17bc3a0ef6..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.string_enum import StringEnum -from petstore_api import configuration - - -class TestStringEnum(unittest.TestCase): - """StringEnum unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py deleted file mode 100644 index ff82ef6b7a9..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_enum_with_default_value.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.string_enum_with_default_value import StringEnumWithDefaultValue -from petstore_api import configuration - - -class TestStringEnumWithDefaultValue(unittest.TestCase): - """StringEnumWithDefaultValue unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py b/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py deleted file mode 100644 index db4ed01ca72..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_string_with_validation.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.string_with_validation import StringWithValidation -from petstore_api import configuration - - -class TestStringWithValidation(unittest.TestCase): - """StringWithValidation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_tag.py b/samples/openapi3/client/petstore/python/test/test_models/test_tag.py deleted file mode 100644 index f33a75587eb..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_tag.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.tag import Tag -from petstore_api import configuration - - -class TestTag(unittest.TestCase): - """Tag unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py b/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py deleted file mode 100644 index d1834fa382e..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_triangle.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.triangle import Triangle -from petstore_api import configuration - - -class TestTriangle(unittest.TestCase): - """Triangle unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py b/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py deleted file mode 100644 index e2dd99318ae..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_triangle_interface.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.triangle_interface import TriangleInterface -from petstore_api import configuration - - -class TestTriangleInterface(unittest.TestCase): - """TriangleInterface unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_user.py b/samples/openapi3/client/petstore/python/test/test_models/test_user.py deleted file mode 100644 index 4eb5097f44f..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_user.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.user import User -from petstore_api import configuration - - -class TestUser(unittest.TestCase): - """User unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py b/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py deleted file mode 100644 index 1356e156ea4..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_uuid_string.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.uuid_string import UUIDString -from petstore_api import configuration - - -class TestUUIDString(unittest.TestCase): - """UUIDString unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_whale.py b/samples/openapi3/client/petstore/python/test/test_models/test_whale.py deleted file mode 100644 index bd860a01602..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_whale.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.whale import Whale -from petstore_api import configuration - - -class TestWhale(unittest.TestCase): - """Whale unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py b/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py deleted file mode 100644 index d53a83960ae..00000000000 --- a/samples/openapi3/client/petstore/python/test/test_models/test_zebra.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech -""" - -import unittest - -import petstore_api -from petstore_api.components.schema.zebra import Zebra -from petstore_api import configuration - - -class TestZebra(unittest.TestCase): - """Zebra unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() From 24267582ce0084629da68c20b0f0b7c52430e192 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 09:56:40 -0700 Subject: [PATCH 07/11] Fixes model doc links from endpoint docs --- .../main/resources/python/api_doc.handlebars | 16 ++--- .../python/docs/apis/tags/AnotherFakeApi.md | 4 +- .../petstore/python/docs/apis/tags/FakeApi.md | 60 +++++++++---------- .../docs/apis/tags/FakeClassnameTags123Api.md | 4 +- .../petstore/python/docs/apis/tags/PetApi.md | 16 ++--- .../python/docs/apis/tags/StoreApi.md | 10 ++-- .../petstore/python/docs/apis/tags/UserApi.md | 8 +-- 7 files changed, 59 insertions(+), 59 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/api_doc.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/api_doc.handlebars index dbecff4efd6..6222a23817a 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/api_doc.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/api_doc.handlebars @@ -84,7 +84,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil ### body {{#each content}} {{#with this.schema}} -{{> api_doc_schema_type_hint anchorPrefix=../operationId schemaNamePrefix1="request_body" complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../operationId schemaNamePrefix1="request_body" complexTypePrefix="../../components/schema/" }} {{/with}} {{/each}} {{/with}} @@ -101,7 +101,7 @@ Key | Input Type | Description | Notes {{#each queryParams}} {{#with schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../components/schema/" }} {{/with}} {{/each}} {{/if}} @@ -117,7 +117,7 @@ Key | Input Type | Description | Notes {{/each}} {{#each headerParams}} {{#with schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../components/schema/" }} {{/with}} {{/each}} {{/if}} @@ -133,7 +133,7 @@ Key | Input Type | Description | Notes {{/each}} {{#each pathParams}} {{#with schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../components/schema/" }} {{/with}} {{/each}} {{/if}} @@ -149,7 +149,7 @@ Key | Input Type | Description | Notes {{/each}} {{#each cookieParams}} {{#with schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1=../paramName complexTypePrefix="../../components/schema/" }} {{/with}} {{/each}} {{/if}} @@ -184,7 +184,7 @@ body | {{#unless content}}Unset{{else}}typing.Union[{{#each content}}{{#if this. headers | {{#unless responseHeaders}}Unset{{else}}[response_for_{{code}}.Headers](#{{operationId}}.response_for_{{code}}.Headers){{/unless}} | {{#unless responseHeaders}}headers were not defined{{/unless}} | {{#each content}} {{#with this.schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1="response_for_" schemaNamePrefix2=../../code schemaNamePrefix3="." complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1="response_for_" schemaNamePrefix2=../../code schemaNamePrefix3="." complexTypePrefix="../../components/schema/" }} {{/with}} {{/each}} {{#if responseHeaders}} @@ -210,13 +210,13 @@ Key | Accessed Type | Description | Notes {{#each responseHeaders}} {{#if schema}} {{#with schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1="response_for_" schemaNamePrefix2=../../code schemaNamePrefix3="." schemaNamePrefix4=../paramName schemaNamePrefix5="." complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1="response_for_" schemaNamePrefix2=../../code schemaNamePrefix3="." schemaNamePrefix4=../paramName schemaNamePrefix5="." complexTypePrefix="../../components/schema/" }} {{/with}} {{else}} {{#each getContent}} {{#with this}} {{#with schema}} -{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1="response_for_" schemaNamePrefix2=../../code schemaNamePrefix3="." schemaNamePrefix4=../paramName schemaNamePrefix5="." complexTypePrefix="../../models/" }} +{{> api_doc_schema_type_hint anchorPrefix=../../operationId schemaNamePrefix1="response_for_" schemaNamePrefix2=../../code schemaNamePrefix3="." schemaNamePrefix4=../paramName schemaNamePrefix5="." complexTypePrefix="../../components/schema/" }} {{/with}} {{/with}} {{/each}} diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md index 4919c43e0a7..713f4c96b51 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/AnotherFakeApi.md @@ -61,7 +61,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Client**](../../models/Client.md) | | +[**Client**](../../components/schema/Client.md) | | ### Return Types, Responses @@ -81,7 +81,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Client**](../../models/Client.md) | | +[**Client**](../../components/schema/Client.md) | | ### Authorization diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md index 06b2f8e9ec2..430d79313c8 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeApi.md @@ -93,7 +93,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalPropertiesWithArrayOfEnums**](../../models/AdditionalPropertiesWithArrayOfEnums.md) | | +[**AdditionalPropertiesWithArrayOfEnums**](../../components/schema/AdditionalPropertiesWithArrayOfEnums.md) | | ### Return Types, Responses @@ -113,7 +113,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalPropertiesWithArrayOfEnums**](../../models/AdditionalPropertiesWithArrayOfEnums.md) | | +[**AdditionalPropertiesWithArrayOfEnums**](../../components/schema/AdditionalPropertiesWithArrayOfEnums.md) | | ### Authorization @@ -174,7 +174,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnimalFarm**](../../models/AnimalFarm.md) | | +[**AnimalFarm**](../../components/schema/AnimalFarm.md) | | ### Return Types, Responses @@ -194,7 +194,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnimalFarm**](../../models/AnimalFarm.md) | | +[**AnimalFarm**](../../components/schema/AnimalFarm.md) | | ### Authorization @@ -255,7 +255,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayOfEnums**](../../models/ArrayOfEnums.md) | | +[**ArrayOfEnums**](../../components/schema/ArrayOfEnums.md) | | ### Return Types, Responses @@ -275,7 +275,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayOfEnums**](../../models/ArrayOfEnums.md) | | +[**ArrayOfEnums**](../../components/schema/ArrayOfEnums.md) | | ### Authorization @@ -339,7 +339,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**FileSchemaTestClass**](../../models/FileSchemaTestClass.md) | | +[**FileSchemaTestClass**](../../components/schema/FileSchemaTestClass.md) | | ### Return Types, Responses @@ -427,7 +427,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**User**](../../models/User.md) | | +[**User**](../../components/schema/User.md) | | ### query_params @@ -515,7 +515,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Boolean**](../../models/Boolean.md) | | +[**Boolean**](../../components/schema/Boolean.md) | | ### Return Types, Responses @@ -535,7 +535,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Boolean**](../../models/Boolean.md) | | +[**Boolean**](../../components/schema/Boolean.md) | | ### Authorization @@ -694,7 +694,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Client**](../../models/Client.md) | | +[**Client**](../../components/schema/Client.md) | | ### Return Types, Responses @@ -714,7 +714,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Client**](../../models/Client.md) | | +[**Client**](../../components/schema/Client.md) | | ### Authorization @@ -773,7 +773,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ComposedOneOfDifferentTypes**](../../models/ComposedOneOfDifferentTypes.md) | | +[**ComposedOneOfDifferentTypes**](../../components/schema/ComposedOneOfDifferentTypes.md) | | ### Return Types, Responses @@ -793,7 +793,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ComposedOneOfDifferentTypes**](../../models/ComposedOneOfDifferentTypes.md) | | +[**ComposedOneOfDifferentTypes**](../../components/schema/ComposedOneOfDifferentTypes.md) | | ### Authorization @@ -1261,7 +1261,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HealthCheckResult**](../../models/HealthCheckResult.md) | | +[**HealthCheckResult**](../../components/schema/HealthCheckResult.md) | | ### Authorization @@ -1885,7 +1885,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json_patchjson Type | Description | Notes ------------- | ------------- | ------------- -[**JSONPatchRequest**](../../models/JSONPatchRequest.md) | | +[**JSONPatchRequest**](../../components/schema/JSONPatchRequest.md) | | ### Return Types, Responses @@ -2042,7 +2042,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Mammal**](../../models/Mammal.md) | | +[**Mammal**](../../components/schema/Mammal.md) | | ### Return Types, Responses @@ -2062,7 +2062,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Mammal**](../../models/Mammal.md) | | +[**Mammal**](../../components/schema/Mammal.md) | | ### Authorization @@ -2121,7 +2121,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberWithValidations**](../../models/NumberWithValidations.md) | | +[**NumberWithValidations**](../../components/schema/NumberWithValidations.md) | | ### Return Types, Responses @@ -2141,7 +2141,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberWithValidations**](../../models/NumberWithValidations.md) | | +[**NumberWithValidations**](../../components/schema/NumberWithValidations.md) | | ### Authorization @@ -2290,7 +2290,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectModelWithRefProps**](../../models/ObjectModelWithRefProps.md) | | +[**ObjectModelWithRefProps**](../../components/schema/ObjectModelWithRefProps.md) | | ### Return Types, Responses @@ -2310,7 +2310,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectModelWithRefProps**](../../models/ObjectModelWithRefProps.md) | | +[**ObjectModelWithRefProps**](../../components/schema/ObjectModelWithRefProps.md) | | ### Authorization @@ -2852,7 +2852,7 @@ items | str, | str, | | # parameter_5.schema Type | Description | Notes ------------- | ------------- | ------------- -[**StringWithValidation**](../../models/StringWithValidation.md) | | +[**StringWithValidation**](../../components/schema/StringWithValidation.md) | | ### Return Types, Responses @@ -2932,7 +2932,7 @@ mapBean | [parameter_0.schema](#ref_object_in_query.parameter_0.schema) | | opti # parameter_0.schema Type | Description | Notes ------------- | ------------- | ------------- -[**Foo**](../../models/Foo.md) | | +[**Foo**](../../components/schema/Foo.md) | | ### Return Types, Responses @@ -3057,7 +3057,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**String**](../../models/String.md) | | +[**String**](../../components/schema/String.md) | | ### Return Types, Responses @@ -3077,7 +3077,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**String**](../../models/String.md) | | +[**String**](../../components/schema/String.md) | | ### Authorization @@ -3136,7 +3136,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringEnum**](../../models/StringEnum.md) | | +[**StringEnum**](../../components/schema/StringEnum.md) | | ### Return Types, Responses @@ -3156,7 +3156,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringEnum**](../../models/StringEnum.md) | | +[**StringEnum**](../../components/schema/StringEnum.md) | | ### Authorization @@ -3329,7 +3329,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ApiResponse**](../../models/ApiResponse.md) | | +[**ApiResponse**](../../components/schema/ApiResponse.md) | | ### Authorization @@ -3430,7 +3430,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ApiResponse**](../../models/ApiResponse.md) | | +[**ApiResponse**](../../components/schema/ApiResponse.md) | | ### Authorization diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md index 0d2883fc2ea..a9b09dbcb3d 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/FakeClassnameTags123Api.md @@ -72,7 +72,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Client**](../../models/Client.md) | | +[**Client**](../../components/schema/Client.md) | | ### Return Types, Responses @@ -92,7 +92,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Client**](../../models/Client.md) | | +[**Client**](../../components/schema/Client.md) | | ### Authorization diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md index 5cb5c1d29e6..9f26c58f265 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/PetApi.md @@ -154,13 +154,13 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Pet**](../../models/Pet.md) | | +[**Pet**](../../components/schema/Pet.md) | | # request_body.application_xml Type | Description | Notes ------------- | ------------- | ------------- -[**Pet**](../../models/Pet.md) | | +[**Pet**](../../components/schema/Pet.md) | | ### Return Types, Responses @@ -788,13 +788,13 @@ headers | Unset | headers were not defined | # response_for_200.application_xml Type | Description | Notes ------------- | ------------- | ------------- -[**Pet**](../../models/Pet.md) | | +[**Pet**](../../components/schema/Pet.md) | | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Pet**](../../models/Pet.md) | | +[**Pet**](../../components/schema/Pet.md) | | #### response_for_400.ApiResponse @@ -954,13 +954,13 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Pet**](../../models/Pet.md) | | +[**Pet**](../../components/schema/Pet.md) | | # request_body.application_xml Type | Description | Notes ------------- | ------------- | ------------- -[**Pet**](../../models/Pet.md) | | +[**Pet**](../../components/schema/Pet.md) | | ### Return Types, Responses @@ -1245,7 +1245,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ApiResponse**](../../models/ApiResponse.md) | | +[**ApiResponse**](../../components/schema/ApiResponse.md) | | ### Authorization @@ -1377,7 +1377,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ApiResponse**](../../models/ApiResponse.md) | | +[**ApiResponse**](../../components/schema/ApiResponse.md) | | ### Authorization diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md index e93efb8de1a..b788cca2833 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/StoreApi.md @@ -255,13 +255,13 @@ headers | Unset | headers were not defined | # response_for_200.application_xml Type | Description | Notes ------------- | ------------- | ------------- -[**Order**](../../models/Order.md) | | +[**Order**](../../components/schema/Order.md) | | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Order**](../../models/Order.md) | | +[**Order**](../../components/schema/Order.md) | | #### response_for_400.ApiResponse @@ -341,7 +341,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Order**](../../models/Order.md) | | +[**Order**](../../components/schema/Order.md) | | ### Return Types, Responses @@ -362,13 +362,13 @@ headers | Unset | headers were not defined | # response_for_200.application_xml Type | Description | Notes ------------- | ------------- | ------------- -[**Order**](../../models/Order.md) | | +[**Order**](../../components/schema/Order.md) | | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Order**](../../models/Order.md) | | +[**Order**](../../components/schema/Order.md) | | #### response_for_400.ApiResponse diff --git a/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md b/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md index 9b4be7094e8..c240441ac1a 100644 --- a/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md +++ b/samples/openapi3/client/petstore/python/docs/apis/tags/UserApi.md @@ -78,7 +78,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**User**](../../models/User.md) | | +[**User**](../../components/schema/User.md) | | ### Return Types, Responses @@ -452,13 +452,13 @@ headers | Unset | headers were not defined | # response_for_200.application_xml Type | Description | Notes ------------- | ------------- | ------------- -[**User**](../../models/User.md) | | +[**User**](../../components/schema/User.md) | | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**User**](../../models/User.md) | | +[**User**](../../components/schema/User.md) | | #### response_for_400.ApiResponse @@ -733,7 +733,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**User**](../../models/User.md) | | +[**User**](../../components/schema/User.md) | | ### path_params From 0d77dc337ebdafbb1c079e3f17d530e6ce3daf29 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 10:04:11 -0700 Subject: [PATCH 08/11] Samples regenerated --- .../python/.openapi-generator/FILES | 703 +++++++++--------- .../python/.openapi-generator/VERSION | 2 +- .../client/3_0_3_unit_test/python/README.md | 188 ++--- .../docs/apis/tags/AdditionalPropertiesApi.md | 24 +- .../python/docs/apis/tags/AllOfApi.md | 54 +- .../python/docs/apis/tags/AnyOfApi.md | 30 +- .../docs/apis/tags/ContentTypeJsonApi.md | 522 ++++++------- .../python/docs/apis/tags/DefaultApi.md | 12 +- .../python/docs/apis/tags/EnumApi.md | 48 +- .../python/docs/apis/tags/FormatApi.md | 54 +- .../python/docs/apis/tags/ItemsApi.md | 6 +- .../python/docs/apis/tags/MaxItemsApi.md | 6 +- .../python/docs/apis/tags/MaxLengthApi.md | 6 +- .../python/docs/apis/tags/MaxPropertiesApi.md | 12 +- .../python/docs/apis/tags/MaximumApi.md | 12 +- .../python/docs/apis/tags/MinItemsApi.md | 6 +- .../python/docs/apis/tags/MinLengthApi.md | 6 +- .../python/docs/apis/tags/MinPropertiesApi.md | 6 +- .../python/docs/apis/tags/MinimumApi.md | 12 +- .../python/docs/apis/tags/ModelNotApi.md | 18 +- .../python/docs/apis/tags/MultipleOfApi.md | 24 +- .../python/docs/apis/tags/OneOfApi.md | 36 +- .../docs/apis/tags/OperationRequestBodyApi.md | 348 ++++----- .../python/docs/apis/tags/PathPostApi.md | 522 ++++++------- .../python/docs/apis/tags/PatternApi.md | 12 +- .../python/docs/apis/tags/PropertiesApi.md | 12 +- .../python/docs/apis/tags/RefApi.md | 48 +- .../python/docs/apis/tags/RequiredApi.md | 24 +- .../ResponseContentContentTypeSchemaApi.md | 174 ++--- .../python/docs/apis/tags/TypeApi.md | 42 +- .../python/docs/apis/tags/UniqueItemsApi.md | 12 +- ...pertiesAllowsASchemaWhichShouldValidate.md | 4 +- ...AdditionalpropertiesAreAllowedByDefault.md | 4 +- .../AdditionalpropertiesCanExistByItself.md | 4 +- ...nalpropertiesShouldNotLookInApplicators.md | 4 +- .../{models => components/schema}/Allof.md | 4 +- .../schema}/AllofCombinedWithAnyofOneof.md | 4 +- .../schema}/AllofSimpleTypes.md | 4 +- .../schema}/AllofWithBaseSchema.md | 4 +- .../schema}/AllofWithOneEmptySchema.md | 4 +- .../schema}/AllofWithTheFirstEmptySchema.md | 4 +- .../schema}/AllofWithTheLastEmptySchema.md | 4 +- .../schema}/AllofWithTwoEmptySchemas.md | 4 +- .../{models => components/schema}/Anyof.md | 4 +- .../schema}/AnyofComplexTypes.md | 4 +- .../schema}/AnyofWithBaseSchema.md | 4 +- .../schema}/AnyofWithOneEmptySchema.md | 4 +- .../schema}/ArrayTypeMatchesArrays.md | 4 +- .../schema/BooleanTypeMatchesBooleans.md | 9 + .../{models => components/schema}/ByInt.md | 4 +- .../{models => components/schema}/ByNumber.md | 4 +- .../schema}/BySmallNumber.md | 4 +- .../schema}/DateTimeFormat.md | 4 +- .../schema}/EmailFormat.md | 4 +- .../schema/EnumWith0DoesNotMatchFalse.md | 9 + .../schema/EnumWith1DoesNotMatchTrue.md | 9 + .../schema/EnumWithEscapedCharacters.md | 9 + .../schema/EnumWithFalseDoesNotMatch0.md | 9 + .../schema/EnumWithTrueDoesNotMatch1.md | 9 + .../schema}/EnumsInProperties.md | 4 +- .../schema}/ForbiddenProperty.md | 4 +- .../schema}/HostnameFormat.md | 4 +- .../schema/IntegerTypeMatchesIntegers.md | 9 + ...ShouldNotRaiseErrorWhenFloatDivisionInf.md | 9 + .../schema}/InvalidStringValueForDefault.md | 4 +- .../schema}/Ipv4Format.md | 4 +- .../schema}/Ipv6Format.md | 4 +- .../schema}/JsonPointerFormat.md | 4 +- .../schema/MaximumValidation.md} | 4 +- .../MaximumValidationWithUnsignedInteger.md | 4 +- .../schema}/MaxitemsValidation.md | 4 +- .../schema}/MaxlengthValidation.md | 4 +- .../Maxproperties0MeansTheObjectIsEmpty.md | 4 +- .../schema/MaxpropertiesValidation.md | 9 + .../schema/MinimumValidation.md} | 4 +- .../MinimumValidationWithSignedInteger.md | 4 +- .../schema}/MinitemsValidation.md | 4 +- .../schema}/MinlengthValidation.md | 4 +- .../schema/MinpropertiesValidation.md | 9 + .../{models => components/schema}/ModelNot.md | 4 +- .../NestedAllofToCheckValidationSemantics.md | 4 +- .../NestedAnyofToCheckValidationSemantics.md | 4 +- .../schema}/NestedItems.md | 4 +- .../NestedOneofToCheckValidationSemantics.md | 4 +- .../schema}/NotMoreComplexSchema.md | 4 +- .../schema/NulCharactersInStrings.md | 9 + .../NullTypeMatchesOnlyTheNullObject.md | 9 + .../schema/NumberTypeMatchesNumbers.md | 9 + .../schema}/ObjectPropertiesValidation.md | 4 +- .../schema/ObjectTypeMatchesObjects.md | 9 + .../{models => components/schema}/Oneof.md | 4 +- .../schema}/OneofComplexTypes.md | 4 +- .../schema}/OneofWithBaseSchema.md | 4 +- .../schema}/OneofWithEmptySchema.md | 4 +- .../schema}/OneofWithRequired.md | 4 +- .../schema}/PatternIsNotAnchored.md | 4 +- .../schema}/PatternValidation.md | 4 +- .../PropertiesWithEscapedCharacters.md | 4 +- .../PropertyNamedRefThatIsNotAReference.md | 4 +- .../schema}/RefInAdditionalproperties.md | 4 +- .../schema}/RefInAllof.md | 4 +- .../schema}/RefInAnyof.md | 4 +- .../schema}/RefInItems.md | 4 +- .../{models => components/schema}/RefInNot.md | 4 +- .../schema}/RefInOneof.md | 4 +- .../schema}/RefInProperty.md | 4 +- .../schema}/RequiredDefaultValidation.md | 4 +- .../schema}/RequiredValidation.md | 4 +- .../schema}/RequiredWithEmptyArray.md | 4 +- .../schema}/RequiredWithEscapedCharacters.md | 4 +- .../components/schema/SimpleEnumValidation.md | 9 + .../schema/StringTypeMatchesStrings.md | 9 + ...DoesNotDoAnythingIfThePropertyIsMissing.md | 4 +- .../schema}/UniqueitemsFalseValidation.md | 4 +- .../schema}/UniqueitemsValidation.md | 4 +- .../schema}/UriFormat.md | 4 +- .../schema}/UriReferenceFormat.md | 4 +- .../schema}/UriTemplateFormat.md | 4 +- .../docs/models/BooleanTypeMatchesBooleans.md | 9 - .../docs/models/EnumWith0DoesNotMatchFalse.md | 9 - .../docs/models/EnumWith1DoesNotMatchTrue.md | 9 - .../docs/models/EnumWithEscapedCharacters.md | 9 - .../docs/models/EnumWithFalseDoesNotMatch0.md | 9 - .../docs/models/EnumWithTrueDoesNotMatch1.md | 9 - .../docs/models/IntegerTypeMatchesIntegers.md | 9 - ...ShouldNotRaiseErrorWhenFloatDivisionInf.md | 9 - .../python/docs/models/MaximumValidation.md | 9 - .../python/docs/models/MinimumValidation.md | 9 - .../docs/models/NulCharactersInStrings.md | 9 - .../NullTypeMatchesOnlyTheNullObject.md | 9 - .../docs/models/NumberTypeMatchesNumbers.md | 9 - .../docs/models/ObjectTypeMatchesObjects.md | 9 - .../docs/models/SimpleEnumValidation.md | 9 - .../docs/models/StringTypeMatchesStrings.md | 9 - .../schema}/__init__.py | 0 ...s_allows_a_schema_which_should_validate.py | 2 +- ...tionalproperties_are_allowed_by_default.py | 2 +- ...dditionalproperties_can_exist_by_itself.py | 2 +- ...operties_should_not_look_in_applicators.py | 2 +- .../schema}/test_allof.py | 2 +- .../test_allof_combined_with_anyof_oneof.py | 2 +- .../schema}/test_allof_simple_types.py | 2 +- .../schema}/test_allof_with_base_schema.py | 2 +- .../test_allof_with_one_empty_schema.py | 2 +- .../test_allof_with_the_first_empty_schema.py | 2 +- .../test_allof_with_the_last_empty_schema.py | 2 +- .../test_allof_with_two_empty_schemas.py | 2 +- .../schema}/test_anyof.py | 2 +- .../schema}/test_anyof_complex_types.py | 2 +- .../schema}/test_anyof_with_base_schema.py | 2 +- .../test_anyof_with_one_empty_schema.py | 2 +- .../schema}/test_array_type_matches_arrays.py | 2 +- .../test_boolean_type_matches_booleans.py | 2 +- .../schema}/test_by_int.py | 2 +- .../schema}/test_by_number.py | 2 +- .../schema}/test_by_small_number.py | 2 +- .../schema}/test_date_time_format.py | 2 +- .../schema}/test_email_format.py | 2 +- .../test_enum_with0_does_not_match_false.py | 2 +- .../test_enum_with1_does_not_match_true.py | 2 +- .../test_enum_with_escaped_characters.py | 2 +- .../test_enum_with_false_does_not_match0.py | 2 +- .../test_enum_with_true_does_not_match1.py | 2 +- .../schema}/test_enums_in_properties.py | 2 +- .../schema}/test_forbidden_property.py | 2 +- .../schema}/test_hostname_format.py | 2 +- .../test_integer_type_matches_integers.py | 2 +- ...not_raise_error_when_float_division_inf.py | 2 +- .../test_invalid_string_value_for_default.py | 2 +- .../schema}/test_ipv4_format.py | 2 +- .../schema}/test_ipv6_format.py | 2 +- .../schema}/test_json_pointer_format.py | 2 +- .../schema}/test_maximum_validation.py | 2 +- ...aximum_validation_with_unsigned_integer.py | 2 +- .../schema}/test_maxitems_validation.py | 2 +- .../schema}/test_maxlength_validation.py | 2 +- ...axproperties0_means_the_object_is_empty.py | 2 +- .../schema}/test_maxproperties_validation.py | 2 +- .../schema}/test_minimum_validation.py | 2 +- ..._minimum_validation_with_signed_integer.py | 2 +- .../schema}/test_minitems_validation.py | 2 +- .../schema}/test_minlength_validation.py | 2 +- .../schema}/test_minproperties_validation.py | 2 +- .../schema}/test_model_not.py | 2 +- ...ted_allof_to_check_validation_semantics.py | 2 +- ...ted_anyof_to_check_validation_semantics.py | 2 +- .../schema}/test_nested_items.py | 2 +- ...ted_oneof_to_check_validation_semantics.py | 2 +- .../schema}/test_not_more_complex_schema.py | 2 +- .../schema}/test_nul_characters_in_strings.py | 2 +- ..._null_type_matches_only_the_null_object.py | 2 +- .../test_number_type_matches_numbers.py | 2 +- .../test_object_properties_validation.py | 2 +- .../test_object_type_matches_objects.py | 2 +- .../schema}/test_oneof.py | 2 +- .../schema}/test_oneof_complex_types.py | 2 +- .../schema}/test_oneof_with_base_schema.py | 2 +- .../schema}/test_oneof_with_empty_schema.py | 2 +- .../schema}/test_oneof_with_required.py | 2 +- .../schema}/test_pattern_is_not_anchored.py | 2 +- .../schema}/test_pattern_validation.py | 2 +- ...test_properties_with_escaped_characters.py | 2 +- ...perty_named_ref_that_is_not_a_reference.py | 2 +- .../test_ref_in_additionalproperties.py | 2 +- .../schema}/test_ref_in_allof.py | 2 +- .../schema}/test_ref_in_anyof.py | 2 +- .../schema}/test_ref_in_items.py | 2 +- .../schema}/test_ref_in_not.py | 2 +- .../schema}/test_ref_in_oneof.py | 2 +- .../schema}/test_ref_in_property.py | 2 +- .../test_required_default_validation.py | 2 +- .../schema}/test_required_validation.py | 2 +- .../schema}/test_required_with_empty_array.py | 2 +- .../test_required_with_escaped_characters.py | 2 +- .../schema}/test_simple_enum_validation.py | 2 +- .../test_string_type_matches_strings.py | 2 +- ..._do_anything_if_the_property_is_missing.py | 2 +- .../test_uniqueitems_false_validation.py | 2 +- .../schema}/test_uniqueitems_validation.py | 2 +- .../schema}/test_uri_format.py | 2 +- .../schema}/test_uri_reference_format.py | 2 +- .../schema}/test_uri_template_format.py | 2 +- .../unit_test_api/components}/__init__.py | 0 .../components/schema/__init__.py | 5 + ...s_allows_a_schema_which_should_validate.py | 87 +++ ..._allows_a_schema_which_should_validate.pyi | 87 +++ ...tionalproperties_are_allowed_by_default.py | 89 +++ ...ionalproperties_are_allowed_by_default.pyi | 89 +++ ...dditionalproperties_can_exist_by_itself.py | 57 ++ ...ditionalproperties_can_exist_by_itself.pyi | 57 ++ ...operties_should_not_look_in_applicators.py | 123 +++ ...perties_should_not_look_in_applicators.pyi | 123 +++ .../unit_test_api/components/schema/allof.py | 177 +++++ .../unit_test_api/components/schema/allof.pyi | 177 +++++ .../schema/allof_combined_with_anyof_oneof.py | 161 ++++ .../allof_combined_with_anyof_oneof.pyi | 158 ++++ .../components/schema/allof_simple_types.py | 111 +++ .../components/schema/allof_simple_types.pyi | 109 +++ .../schema/allof_with_base_schema.py | 211 ++++++ .../schema/allof_with_base_schema.pyi | 211 ++++++ .../schema/allof_with_one_empty_schema.py | 65 ++ .../schema/allof_with_one_empty_schema.pyi | 65 ++ .../allof_with_the_first_empty_schema.py | 67 ++ .../allof_with_the_first_empty_schema.pyi | 67 ++ .../allof_with_the_last_empty_schema.py | 67 ++ .../allof_with_the_last_empty_schema.pyi | 67 ++ .../schema/allof_with_two_empty_schemas.py | 67 ++ .../schema/allof_with_two_empty_schemas.pyi | 67 ++ .../unit_test_api/components/schema/anyof.py | 89 +++ .../unit_test_api/components/schema/anyof.pyi | 88 +++ .../components/schema/anyof_complex_types.py | 177 +++++ .../components/schema/anyof_complex_types.pyi | 177 +++++ .../schema/anyof_with_base_schema.py | 110 +++ .../schema/anyof_with_base_schema.pyi | 108 +++ .../schema/anyof_with_one_empty_schema.py | 67 ++ .../schema/anyof_with_one_empty_schema.pyi | 67 ++ .../schema/array_type_matches_arrays.py | 51 ++ .../schema/array_type_matches_arrays.pyi | 51 ++ .../schema/boolean_type_matches_booleans.py | 24 + .../schema/boolean_type_matches_booleans.pyi | 24 + .../unit_test_api/components/schema/by_int.py | 51 ++ .../components/schema/by_int.pyi | 50 ++ .../components/schema/by_number.py | 51 ++ .../components/schema/by_number.pyi | 50 ++ .../components/schema/by_small_number.py | 51 ++ .../components/schema/by_small_number.pyi | 50 ++ .../components/schema/date_time_format.py | 52 ++ .../components/schema/date_time_format.pyi | 52 ++ .../components/schema/email_format.py | 51 ++ .../components/schema/email_format.pyi | 51 ++ .../schema/enum_with0_does_not_match_false.py | 44 ++ .../enum_with0_does_not_match_false.pyi | 38 + .../schema/enum_with1_does_not_match_true.py | 44 ++ .../schema/enum_with1_does_not_match_true.pyi | 38 + .../schema/enum_with_escaped_characters.py | 49 ++ .../schema/enum_with_escaped_characters.pyi | 42 ++ .../schema/enum_with_false_does_not_match0.py | 44 ++ .../enum_with_false_does_not_match0.pyi | 38 + .../schema/enum_with_true_does_not_match1.py | 44 ++ .../schema/enum_with_true_does_not_match1.pyi | 38 + .../components/schema/enums_in_properties.py | 123 +++ .../components/schema/enums_in_properties.pyi | 111 +++ .../components/schema/forbidden_property.py | 79 ++ .../components/schema/forbidden_property.pyi | 79 ++ .../components/schema/hostname_format.py | 51 ++ .../components/schema/hostname_format.pyi | 51 ++ .../schema/integer_type_matches_integers.py | 24 + .../schema/integer_type_matches_integers.pyi | 24 + ...not_raise_error_when_float_division_inf.py | 37 + ...ot_raise_error_when_float_division_inf.pyi | 34 + .../invalid_string_value_for_default.py | 87 +++ .../invalid_string_value_for_default.pyi | 84 +++ .../components/schema/ipv4_format.py | 51 ++ .../components/schema/ipv4_format.pyi | 51 ++ .../components/schema/ipv6_format.py | 51 ++ .../components/schema/ipv6_format.pyi | 51 ++ .../components/schema/json_pointer_format.py | 51 ++ .../components/schema/json_pointer_format.pyi | 51 ++ .../components/schema/maximum_validation.py | 51 ++ .../components/schema/maximum_validation.pyi | 50 ++ ...aximum_validation_with_unsigned_integer.py | 51 ++ ...ximum_validation_with_unsigned_integer.pyi | 50 ++ .../components/schema/maxitems_validation.py | 51 ++ .../components/schema/maxitems_validation.pyi | 50 ++ .../components/schema/maxlength_validation.py | 51 ++ .../schema/maxlength_validation.pyi | 50 ++ ...axproperties0_means_the_object_is_empty.py | 51 ++ ...xproperties0_means_the_object_is_empty.pyi | 50 ++ .../schema/maxproperties_validation.py | 51 ++ .../schema/maxproperties_validation.pyi | 50 ++ .../components/schema/minimum_validation.py | 51 ++ .../components/schema/minimum_validation.pyi | 50 ++ .../minimum_validation_with_signed_integer.py | 51 ++ ...minimum_validation_with_signed_integer.pyi | 50 ++ .../components/schema/minitems_validation.py | 51 ++ .../components/schema/minitems_validation.pyi | 50 ++ .../components/schema/minlength_validation.py | 51 ++ .../schema/minlength_validation.pyi | 50 ++ .../schema/minproperties_validation.py | 51 ++ .../schema/minproperties_validation.pyi | 50 ++ .../components/schema/model_not.py | 51 ++ .../components/schema/model_not.pyi | 51 ++ ...ted_allof_to_check_validation_semantics.py | 101 +++ ...ed_allof_to_check_validation_semantics.pyi | 101 +++ ...ted_anyof_to_check_validation_semantics.py | 101 +++ ...ed_anyof_to_check_validation_semantics.pyi | 101 +++ .../components/schema/nested_items.py | 117 +++ .../components/schema/nested_items.pyi | 117 +++ ...ted_oneof_to_check_validation_semantics.py | 101 +++ ...ed_oneof_to_check_validation_semantics.pyi | 101 +++ .../schema/not_more_complex_schema.py | 100 +++ .../schema/not_more_complex_schema.pyi | 100 +++ .../schema/nul_characters_in_strings.py | 44 ++ .../schema/nul_characters_in_strings.pyi | 38 + .../null_type_matches_only_the_null_object.py | 24 + ...null_type_matches_only_the_null_object.pyi | 24 + .../schema/number_type_matches_numbers.py | 24 + .../schema/number_type_matches_numbers.pyi | 24 + .../schema/object_properties_validation.py | 89 +++ .../schema/object_properties_validation.pyi | 89 +++ .../schema/object_type_matches_objects.py | 24 + .../schema/object_type_matches_objects.pyi | 24 + .../unit_test_api/components/schema/oneof.py | 89 +++ .../unit_test_api/components/schema/oneof.pyi | 88 +++ .../components/schema/oneof_complex_types.py | 177 +++++ .../components/schema/oneof_complex_types.pyi | 177 +++++ .../schema/oneof_with_base_schema.py | 110 +++ .../schema/oneof_with_base_schema.pyi | 108 +++ .../schema/oneof_with_empty_schema.py | 67 ++ .../schema/oneof_with_empty_schema.pyi | 67 ++ .../components/schema/oneof_with_required.py | 124 +++ .../components/schema/oneof_with_required.pyi | 124 +++ .../schema/pattern_is_not_anchored.py | 53 ++ .../schema/pattern_is_not_anchored.pyi | 50 ++ .../components/schema/pattern_validation.py | 53 ++ .../components/schema/pattern_validation.pyi | 50 ++ .../properties_with_escaped_characters.py | 117 +++ .../properties_with_escaped_characters.pyi | 117 +++ ...perty_named_ref_that_is_not_a_reference.py | 77 ++ ...erty_named_ref_that_is_not_a_reference.pyi | 77 ++ .../schema/ref_in_additionalproperties.py | 62 ++ .../schema/ref_in_additionalproperties.pyi | 62 ++ .../components/schema/ref_in_allof.py | 66 ++ .../components/schema/ref_in_allof.pyi | 66 ++ .../components/schema/ref_in_anyof.py | 66 ++ .../components/schema/ref_in_anyof.pyi | 66 ++ .../components/schema/ref_in_items.py | 56 ++ .../components/schema/ref_in_items.pyi | 56 ++ .../components/schema/ref_in_not.py | 56 ++ .../components/schema/ref_in_not.pyi | 56 ++ .../components/schema/ref_in_oneof.py | 66 ++ .../components/schema/ref_in_oneof.pyi | 66 ++ .../components/schema/ref_in_property.py | 84 +++ .../components/schema/ref_in_property.pyi | 84 +++ .../schema/required_default_validation.py | 79 ++ .../schema/required_default_validation.pyi | 79 ++ .../components/schema/required_validation.py | 94 +++ .../components/schema/required_validation.pyi | 94 +++ .../schema/required_with_empty_array.py | 79 ++ .../schema/required_with_empty_array.pyi | 79 ++ .../required_with_escaped_characters.py | 59 ++ .../required_with_escaped_characters.pyi | 59 ++ .../schema/simple_enum_validation.py | 54 ++ .../schema/simple_enum_validation.pyi | 46 ++ .../schema/string_type_matches_strings.py | 24 + .../schema/string_type_matches_strings.pyi | 24 + ..._do_anything_if_the_property_is_missing.py | 86 +++ ...do_anything_if_the_property_is_missing.pyi | 83 +++ .../schema/uniqueitems_false_validation.py | 51 ++ .../schema/uniqueitems_false_validation.pyi | 50 ++ .../schema/uniqueitems_validation.py | 51 ++ .../schema/uniqueitems_validation.pyi | 50 ++ .../components/schema/uri_format.py | 51 ++ .../components/schema/uri_format.pyi | 51 ++ .../components/schema/uri_reference_format.py | 51 ++ .../schema/uri_reference_format.pyi | 51 ++ .../components/schema/uri_template_format.py | 51 ++ .../components/schema/uri_template_format.pyi | 51 ++ .../components/schemas/__init__.py | 100 +++ .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/__init__.py | 2 +- .../post/__init__.pyi | 2 +- .../post/request_body.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../post/response_for_200/__init__.py | 2 +- .../python/.openapi-generator/FILES | 28 +- .../python/.openapi-generator/VERSION | 2 +- .../python/README.md | 20 +- .../python/docs/apis/tags/DefaultApi.md | 4 +- .../schema}/AdditionOperator.md | 4 +- .../{models => components/schema}/Operator.md | 4 +- .../schema}/SubtractionOperator.md | 4 +- .../python/test/components/schema/__init__.py | 0 .../schema}/test_addition_operator.py | 2 +- .../schema}/test_operator.py | 2 +- .../schema}/test_subtraction_operator.py | 2 +- .../this_package/components/__init__.py | 0 .../components/schema/__init__.py | 5 + .../components/schema/addition_operator.py | 98 +++ .../components/schema/addition_operator.pyi | 98 +++ .../components/schema/operator.py | 79 ++ .../components/schema/operator.pyi | 79 ++ .../components/schema/subtraction_operator.py | 98 +++ .../schema/subtraction_operator.pyi | 98 +++ .../components/schemas/__init__.py | 16 + .../paths/operators/post/__init__.py | 2 +- .../paths/operators/post/__init__.pyi | 2 +- .../paths/operators/post/request_body.py | 2 +- .../python/.openapi-generator/VERSION | 2 +- 771 files changed, 15283 insertions(+), 2247 deletions(-) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md (75%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AdditionalpropertiesAreAllowedByDefault.md (82%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AdditionalpropertiesCanExistByItself.md (61%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AdditionalpropertiesShouldNotLookInApplicators.md (87%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/Allof.md (92%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofCombinedWithAnyofOneof.md (91%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofSimpleTypes.md (88%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofWithBaseSchema.md (93%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofWithOneEmptySchema.md (82%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofWithTheFirstEmptySchema.md (84%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofWithTheLastEmptySchema.md (84%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AllofWithTwoEmptySchemas.md (87%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/Anyof.md (86%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AnyofComplexTypes.md (92%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AnyofWithBaseSchema.md (86%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/AnyofWithOneEmptySchema.md (85%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/ArrayTypeMatchesArrays.md (68%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BooleanTypeMatchesBooleans.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/ByInt.md (62%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/ByNumber.md (62%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/BySmallNumber.md (60%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/DateTimeFormat.md (63%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/EmailFormat.md (61%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith0DoesNotMatchFalse.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith1DoesNotMatchTrue.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithEscapedCharacters.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithFalseDoesNotMatch0.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithTrueDoesNotMatch1.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/EnumsInProperties.md (76%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/ForbiddenProperty.md (90%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/HostnameFormat.md (60%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/IntegerTypeMatchesIntegers.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/InvalidStringValueForDefault.md (77%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/Ipv4Format.md (61%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/Ipv6Format.md (61%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/JsonPointerFormat.md (60%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models/MaxpropertiesValidation.md => components/schema/MaximumValidation.md} (61%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/MaximumValidationWithUnsignedInteger.md (56%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/MaxitemsValidation.md (60%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/MaxlengthValidation.md (59%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/Maxproperties0MeansTheObjectIsEmpty.md (56%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxpropertiesValidation.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models/MinpropertiesValidation.md => components/schema/MinimumValidation.md} (61%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/MinimumValidationWithSignedInteger.md (56%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/MinitemsValidation.md (60%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/MinlengthValidation.md (59%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinpropertiesValidation.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/ModelNot.md (78%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/NestedAllofToCheckValidationSemantics.md (84%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/NestedAnyofToCheckValidationSemantics.md (84%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/NestedItems.md (86%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/NestedOneofToCheckValidationSemantics.md (84%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/NotMoreComplexSchema.md (84%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NulCharactersInStrings.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NullTypeMatchesOnlyTheNullObject.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NumberTypeMatchesNumbers.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/ObjectPropertiesValidation.md (78%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectTypeMatchesObjects.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/Oneof.md (86%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/OneofComplexTypes.md (92%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/OneofWithBaseSchema.md (86%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/OneofWithEmptySchema.md (85%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/OneofWithRequired.md (87%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/PatternIsNotAnchored.md (59%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/PatternValidation.md (60%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/PropertiesWithEscapedCharacters.md (82%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/PropertyNamedRefThatIsNotAReference.md (75%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInAdditionalproperties.md (69%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInAllof.md (77%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInAnyof.md (77%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInItems.md (70%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInNot.md (77%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInOneof.md (77%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RefInProperty.md (81%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RequiredDefaultValidation.md (80%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RequiredValidation.md (84%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RequiredWithEmptyArray.md (81%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/RequiredWithEscapedCharacters.md (57%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/SimpleEnumValidation.md create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/StringTypeMatchesStrings.md rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md (70%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/UniqueitemsFalseValidation.md (58%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/UniqueitemsValidation.md (59%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/UriFormat.md (61%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/UriReferenceFormat.md (60%) rename samples/openapi3/client/3_0_3_unit_test/python/docs/{models => components/schema}/UriTemplateFormat.md (60%) delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/BooleanTypeMatchesBooleans.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith0DoesNotMatchFalse.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith1DoesNotMatchTrue.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithEscapedCharacters.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithFalseDoesNotMatch0.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithTrueDoesNotMatch1.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/IntegerTypeMatchesIntegers.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidation.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidation.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/NulCharactersInStrings.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/NullTypeMatchesOnlyTheNullObject.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/NumberTypeMatchesNumbers.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectTypeMatchesObjects.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/SimpleEnumValidation.md delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/docs/models/StringTypeMatchesStrings.md rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/__init__.py (100%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_additionalproperties_allows_a_schema_which_should_validate.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_additionalproperties_are_allowed_by_default.py (88%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_additionalproperties_can_exist_by_itself.py (91%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_additionalproperties_should_not_look_in_applicators.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof.py (97%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_combined_with_anyof_oneof.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_simple_types.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_with_base_schema.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_with_one_empty_schema.py (88%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_with_the_first_empty_schema.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_with_the_last_empty_schema.py (91%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_allof_with_two_empty_schemas.py (88%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_anyof.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_anyof_complex_types.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_anyof_with_base_schema.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_anyof_with_one_empty_schema.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_array_type_matches_arrays.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_boolean_type_matches_booleans.py (97%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_by_int.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_by_number.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_by_small_number.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_date_time_format.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_email_format.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_enum_with0_does_not_match_false.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_enum_with1_does_not_match_true.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_enum_with_escaped_characters.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_enum_with_false_does_not_match0.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_enum_with_true_does_not_match1.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_enums_in_properties.py (97%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_forbidden_property.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_hostname_format.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_integer_type_matches_integers.py (97%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_invalid_instance_should_not_raise_error_when_float_division_inf.py (89%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_invalid_string_value_for_default.py (91%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ipv4_format.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ipv6_format.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_json_pointer_format.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_maximum_validation.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_maximum_validation_with_unsigned_integer.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_maxitems_validation.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_maxlength_validation.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_maxproperties0_means_the_object_is_empty.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_maxproperties_validation.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_minimum_validation.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_minimum_validation_with_signed_integer.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_minitems_validation.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_minlength_validation.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_minproperties_validation.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_model_not.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_nested_allof_to_check_validation_semantics.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_nested_anyof_to_check_validation_semantics.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_nested_items.py (98%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_nested_oneof_to_check_validation_semantics.py (90%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_not_more_complex_schema.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_nul_characters_in_strings.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_null_type_matches_only_the_null_object.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_number_type_matches_numbers.py (97%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_object_properties_validation.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_object_type_matches_objects.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_oneof.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_oneof_complex_types.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_oneof_with_base_schema.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_oneof_with_empty_schema.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_oneof_with_required.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_pattern_is_not_anchored.py (89%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_pattern_validation.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_properties_with_escaped_characters.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_property_named_ref_that_is_not_a_reference.py (91%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_additionalproperties.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_allof.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_anyof.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_items.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_not.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_oneof.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_ref_in_property.py (94%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_required_default_validation.py (88%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_required_validation.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_required_with_empty_array.py (89%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_required_with_escaped_characters.py (93%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_simple_enum_validation.py (92%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_string_type_matches_strings.py (97%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py (91%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_uniqueitems_false_validation.py (98%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_uniqueitems_validation.py (99%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_uri_format.py (96%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_uri_reference_format.py (95%) rename samples/openapi3/client/3_0_3_unit_test/python/test/{test_models => components/schema}/test_uri_template_format.py (95%) rename samples/openapi3/client/{features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models => 3_0_3_unit_test/python/unit_test_api/components}/__init__.py (100%) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/__init__.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.py create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.pyi create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schemas/__init__.py rename samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/{models => components/schema}/AdditionOperator.md (71%) rename samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/{models => components/schema}/Operator.md (79%) rename samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/{models => components/schema}/SubtractionOperator.md (71%) create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/__init__.py rename samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/{test_models => components/schema}/test_addition_operator.py (87%) rename samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/{test_models => components/schema}/test_operator.py (89%) rename samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/{test_models => components/schema}/test_subtraction_operator.py (86%) create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/__init__.py create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/__init__.py create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.py create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.pyi create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.py create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.pyi create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.py create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.pyi create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schemas/__init__.py diff --git a/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES b/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES index ef95945f68f..177da8497d6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES +++ b/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES @@ -30,187 +30,187 @@ docs/apis/tags/RequiredApi.md docs/apis/tags/ResponseContentContentTypeSchemaApi.md docs/apis/tags/TypeApi.md docs/apis/tags/UniqueItemsApi.md -docs/models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md -docs/models/AdditionalpropertiesAreAllowedByDefault.md -docs/models/AdditionalpropertiesCanExistByItself.md -docs/models/AdditionalpropertiesShouldNotLookInApplicators.md -docs/models/Allof.md -docs/models/AllofCombinedWithAnyofOneof.md -docs/models/AllofSimpleTypes.md -docs/models/AllofWithBaseSchema.md -docs/models/AllofWithOneEmptySchema.md -docs/models/AllofWithTheFirstEmptySchema.md -docs/models/AllofWithTheLastEmptySchema.md -docs/models/AllofWithTwoEmptySchemas.md -docs/models/Anyof.md -docs/models/AnyofComplexTypes.md -docs/models/AnyofWithBaseSchema.md -docs/models/AnyofWithOneEmptySchema.md -docs/models/ArrayTypeMatchesArrays.md -docs/models/BooleanTypeMatchesBooleans.md -docs/models/ByInt.md -docs/models/ByNumber.md -docs/models/BySmallNumber.md -docs/models/DateTimeFormat.md -docs/models/EmailFormat.md -docs/models/EnumWith0DoesNotMatchFalse.md -docs/models/EnumWith1DoesNotMatchTrue.md -docs/models/EnumWithEscapedCharacters.md -docs/models/EnumWithFalseDoesNotMatch0.md -docs/models/EnumWithTrueDoesNotMatch1.md -docs/models/EnumsInProperties.md -docs/models/ForbiddenProperty.md -docs/models/HostnameFormat.md -docs/models/IntegerTypeMatchesIntegers.md -docs/models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md -docs/models/InvalidStringValueForDefault.md -docs/models/Ipv4Format.md -docs/models/Ipv6Format.md -docs/models/JsonPointerFormat.md -docs/models/MaximumValidation.md -docs/models/MaximumValidationWithUnsignedInteger.md -docs/models/MaxitemsValidation.md -docs/models/MaxlengthValidation.md -docs/models/Maxproperties0MeansTheObjectIsEmpty.md -docs/models/MaxpropertiesValidation.md -docs/models/MinimumValidation.md -docs/models/MinimumValidationWithSignedInteger.md -docs/models/MinitemsValidation.md -docs/models/MinlengthValidation.md -docs/models/MinpropertiesValidation.md -docs/models/ModelNot.md -docs/models/NestedAllofToCheckValidationSemantics.md -docs/models/NestedAnyofToCheckValidationSemantics.md -docs/models/NestedItems.md -docs/models/NestedOneofToCheckValidationSemantics.md -docs/models/NotMoreComplexSchema.md -docs/models/NulCharactersInStrings.md -docs/models/NullTypeMatchesOnlyTheNullObject.md -docs/models/NumberTypeMatchesNumbers.md -docs/models/ObjectPropertiesValidation.md -docs/models/ObjectTypeMatchesObjects.md -docs/models/Oneof.md -docs/models/OneofComplexTypes.md -docs/models/OneofWithBaseSchema.md -docs/models/OneofWithEmptySchema.md -docs/models/OneofWithRequired.md -docs/models/PatternIsNotAnchored.md -docs/models/PatternValidation.md -docs/models/PropertiesWithEscapedCharacters.md -docs/models/PropertyNamedRefThatIsNotAReference.md -docs/models/RefInAdditionalproperties.md -docs/models/RefInAllof.md -docs/models/RefInAnyof.md -docs/models/RefInItems.md -docs/models/RefInNot.md -docs/models/RefInOneof.md -docs/models/RefInProperty.md -docs/models/RequiredDefaultValidation.md -docs/models/RequiredValidation.md -docs/models/RequiredWithEmptyArray.md -docs/models/RequiredWithEscapedCharacters.md -docs/models/SimpleEnumValidation.md -docs/models/StringTypeMatchesStrings.md -docs/models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md -docs/models/UniqueitemsFalseValidation.md -docs/models/UniqueitemsValidation.md -docs/models/UriFormat.md -docs/models/UriReferenceFormat.md -docs/models/UriTemplateFormat.md +docs/components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md +docs/components/schema/AdditionalpropertiesAreAllowedByDefault.md +docs/components/schema/AdditionalpropertiesCanExistByItself.md +docs/components/schema/AdditionalpropertiesShouldNotLookInApplicators.md +docs/components/schema/Allof.md +docs/components/schema/AllofCombinedWithAnyofOneof.md +docs/components/schema/AllofSimpleTypes.md +docs/components/schema/AllofWithBaseSchema.md +docs/components/schema/AllofWithOneEmptySchema.md +docs/components/schema/AllofWithTheFirstEmptySchema.md +docs/components/schema/AllofWithTheLastEmptySchema.md +docs/components/schema/AllofWithTwoEmptySchemas.md +docs/components/schema/Anyof.md +docs/components/schema/AnyofComplexTypes.md +docs/components/schema/AnyofWithBaseSchema.md +docs/components/schema/AnyofWithOneEmptySchema.md +docs/components/schema/ArrayTypeMatchesArrays.md +docs/components/schema/BooleanTypeMatchesBooleans.md +docs/components/schema/ByInt.md +docs/components/schema/ByNumber.md +docs/components/schema/BySmallNumber.md +docs/components/schema/DateTimeFormat.md +docs/components/schema/EmailFormat.md +docs/components/schema/EnumWith0DoesNotMatchFalse.md +docs/components/schema/EnumWith1DoesNotMatchTrue.md +docs/components/schema/EnumWithEscapedCharacters.md +docs/components/schema/EnumWithFalseDoesNotMatch0.md +docs/components/schema/EnumWithTrueDoesNotMatch1.md +docs/components/schema/EnumsInProperties.md +docs/components/schema/ForbiddenProperty.md +docs/components/schema/HostnameFormat.md +docs/components/schema/IntegerTypeMatchesIntegers.md +docs/components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md +docs/components/schema/InvalidStringValueForDefault.md +docs/components/schema/Ipv4Format.md +docs/components/schema/Ipv6Format.md +docs/components/schema/JsonPointerFormat.md +docs/components/schema/MaximumValidation.md +docs/components/schema/MaximumValidationWithUnsignedInteger.md +docs/components/schema/MaxitemsValidation.md +docs/components/schema/MaxlengthValidation.md +docs/components/schema/Maxproperties0MeansTheObjectIsEmpty.md +docs/components/schema/MaxpropertiesValidation.md +docs/components/schema/MinimumValidation.md +docs/components/schema/MinimumValidationWithSignedInteger.md +docs/components/schema/MinitemsValidation.md +docs/components/schema/MinlengthValidation.md +docs/components/schema/MinpropertiesValidation.md +docs/components/schema/ModelNot.md +docs/components/schema/NestedAllofToCheckValidationSemantics.md +docs/components/schema/NestedAnyofToCheckValidationSemantics.md +docs/components/schema/NestedItems.md +docs/components/schema/NestedOneofToCheckValidationSemantics.md +docs/components/schema/NotMoreComplexSchema.md +docs/components/schema/NulCharactersInStrings.md +docs/components/schema/NullTypeMatchesOnlyTheNullObject.md +docs/components/schema/NumberTypeMatchesNumbers.md +docs/components/schema/ObjectPropertiesValidation.md +docs/components/schema/ObjectTypeMatchesObjects.md +docs/components/schema/Oneof.md +docs/components/schema/OneofComplexTypes.md +docs/components/schema/OneofWithBaseSchema.md +docs/components/schema/OneofWithEmptySchema.md +docs/components/schema/OneofWithRequired.md +docs/components/schema/PatternIsNotAnchored.md +docs/components/schema/PatternValidation.md +docs/components/schema/PropertiesWithEscapedCharacters.md +docs/components/schema/PropertyNamedRefThatIsNotAReference.md +docs/components/schema/RefInAdditionalproperties.md +docs/components/schema/RefInAllof.md +docs/components/schema/RefInAnyof.md +docs/components/schema/RefInItems.md +docs/components/schema/RefInNot.md +docs/components/schema/RefInOneof.md +docs/components/schema/RefInProperty.md +docs/components/schema/RequiredDefaultValidation.md +docs/components/schema/RequiredValidation.md +docs/components/schema/RequiredWithEmptyArray.md +docs/components/schema/RequiredWithEscapedCharacters.md +docs/components/schema/SimpleEnumValidation.md +docs/components/schema/StringTypeMatchesStrings.md +docs/components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md +docs/components/schema/UniqueitemsFalseValidation.md +docs/components/schema/UniqueitemsValidation.md +docs/components/schema/UriFormat.md +docs/components/schema/UriReferenceFormat.md +docs/components/schema/UriTemplateFormat.md git_push.sh requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_models/__init__.py -test/test_models/test_additionalproperties_allows_a_schema_which_should_validate.py -test/test_models/test_additionalproperties_are_allowed_by_default.py -test/test_models/test_additionalproperties_can_exist_by_itself.py -test/test_models/test_additionalproperties_should_not_look_in_applicators.py -test/test_models/test_allof.py -test/test_models/test_allof_combined_with_anyof_oneof.py -test/test_models/test_allof_simple_types.py -test/test_models/test_allof_with_base_schema.py -test/test_models/test_allof_with_one_empty_schema.py -test/test_models/test_allof_with_the_first_empty_schema.py -test/test_models/test_allof_with_the_last_empty_schema.py -test/test_models/test_allof_with_two_empty_schemas.py -test/test_models/test_anyof.py -test/test_models/test_anyof_complex_types.py -test/test_models/test_anyof_with_base_schema.py -test/test_models/test_anyof_with_one_empty_schema.py -test/test_models/test_array_type_matches_arrays.py -test/test_models/test_boolean_type_matches_booleans.py -test/test_models/test_by_int.py -test/test_models/test_by_number.py -test/test_models/test_by_small_number.py -test/test_models/test_date_time_format.py -test/test_models/test_email_format.py -test/test_models/test_enum_with0_does_not_match_false.py -test/test_models/test_enum_with1_does_not_match_true.py -test/test_models/test_enum_with_escaped_characters.py -test/test_models/test_enum_with_false_does_not_match0.py -test/test_models/test_enum_with_true_does_not_match1.py -test/test_models/test_enums_in_properties.py -test/test_models/test_forbidden_property.py -test/test_models/test_hostname_format.py -test/test_models/test_integer_type_matches_integers.py -test/test_models/test_invalid_instance_should_not_raise_error_when_float_division_inf.py -test/test_models/test_invalid_string_value_for_default.py -test/test_models/test_ipv4_format.py -test/test_models/test_ipv6_format.py -test/test_models/test_json_pointer_format.py -test/test_models/test_maximum_validation.py -test/test_models/test_maximum_validation_with_unsigned_integer.py -test/test_models/test_maxitems_validation.py -test/test_models/test_maxlength_validation.py -test/test_models/test_maxproperties0_means_the_object_is_empty.py -test/test_models/test_maxproperties_validation.py -test/test_models/test_minimum_validation.py -test/test_models/test_minimum_validation_with_signed_integer.py -test/test_models/test_minitems_validation.py -test/test_models/test_minlength_validation.py -test/test_models/test_minproperties_validation.py -test/test_models/test_model_not.py -test/test_models/test_nested_allof_to_check_validation_semantics.py -test/test_models/test_nested_anyof_to_check_validation_semantics.py -test/test_models/test_nested_items.py -test/test_models/test_nested_oneof_to_check_validation_semantics.py -test/test_models/test_not_more_complex_schema.py -test/test_models/test_nul_characters_in_strings.py -test/test_models/test_null_type_matches_only_the_null_object.py -test/test_models/test_number_type_matches_numbers.py -test/test_models/test_object_properties_validation.py -test/test_models/test_object_type_matches_objects.py -test/test_models/test_oneof.py -test/test_models/test_oneof_complex_types.py -test/test_models/test_oneof_with_base_schema.py -test/test_models/test_oneof_with_empty_schema.py -test/test_models/test_oneof_with_required.py -test/test_models/test_pattern_is_not_anchored.py -test/test_models/test_pattern_validation.py -test/test_models/test_properties_with_escaped_characters.py -test/test_models/test_property_named_ref_that_is_not_a_reference.py -test/test_models/test_ref_in_additionalproperties.py -test/test_models/test_ref_in_allof.py -test/test_models/test_ref_in_anyof.py -test/test_models/test_ref_in_items.py -test/test_models/test_ref_in_not.py -test/test_models/test_ref_in_oneof.py -test/test_models/test_ref_in_property.py -test/test_models/test_required_default_validation.py -test/test_models/test_required_validation.py -test/test_models/test_required_with_empty_array.py -test/test_models/test_required_with_escaped_characters.py -test/test_models/test_simple_enum_validation.py -test/test_models/test_string_type_matches_strings.py -test/test_models/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py -test/test_models/test_uniqueitems_false_validation.py -test/test_models/test_uniqueitems_validation.py -test/test_models/test_uri_format.py -test/test_models/test_uri_reference_format.py -test/test_models/test_uri_template_format.py +test/components/schema/__init__.py +test/components/schema/test_additionalproperties_allows_a_schema_which_should_validate.py +test/components/schema/test_additionalproperties_are_allowed_by_default.py +test/components/schema/test_additionalproperties_can_exist_by_itself.py +test/components/schema/test_additionalproperties_should_not_look_in_applicators.py +test/components/schema/test_allof.py +test/components/schema/test_allof_combined_with_anyof_oneof.py +test/components/schema/test_allof_simple_types.py +test/components/schema/test_allof_with_base_schema.py +test/components/schema/test_allof_with_one_empty_schema.py +test/components/schema/test_allof_with_the_first_empty_schema.py +test/components/schema/test_allof_with_the_last_empty_schema.py +test/components/schema/test_allof_with_two_empty_schemas.py +test/components/schema/test_anyof.py +test/components/schema/test_anyof_complex_types.py +test/components/schema/test_anyof_with_base_schema.py +test/components/schema/test_anyof_with_one_empty_schema.py +test/components/schema/test_array_type_matches_arrays.py +test/components/schema/test_boolean_type_matches_booleans.py +test/components/schema/test_by_int.py +test/components/schema/test_by_number.py +test/components/schema/test_by_small_number.py +test/components/schema/test_date_time_format.py +test/components/schema/test_email_format.py +test/components/schema/test_enum_with0_does_not_match_false.py +test/components/schema/test_enum_with1_does_not_match_true.py +test/components/schema/test_enum_with_escaped_characters.py +test/components/schema/test_enum_with_false_does_not_match0.py +test/components/schema/test_enum_with_true_does_not_match1.py +test/components/schema/test_enums_in_properties.py +test/components/schema/test_forbidden_property.py +test/components/schema/test_hostname_format.py +test/components/schema/test_integer_type_matches_integers.py +test/components/schema/test_invalid_instance_should_not_raise_error_when_float_division_inf.py +test/components/schema/test_invalid_string_value_for_default.py +test/components/schema/test_ipv4_format.py +test/components/schema/test_ipv6_format.py +test/components/schema/test_json_pointer_format.py +test/components/schema/test_maximum_validation.py +test/components/schema/test_maximum_validation_with_unsigned_integer.py +test/components/schema/test_maxitems_validation.py +test/components/schema/test_maxlength_validation.py +test/components/schema/test_maxproperties0_means_the_object_is_empty.py +test/components/schema/test_maxproperties_validation.py +test/components/schema/test_minimum_validation.py +test/components/schema/test_minimum_validation_with_signed_integer.py +test/components/schema/test_minitems_validation.py +test/components/schema/test_minlength_validation.py +test/components/schema/test_minproperties_validation.py +test/components/schema/test_model_not.py +test/components/schema/test_nested_allof_to_check_validation_semantics.py +test/components/schema/test_nested_anyof_to_check_validation_semantics.py +test/components/schema/test_nested_items.py +test/components/schema/test_nested_oneof_to_check_validation_semantics.py +test/components/schema/test_not_more_complex_schema.py +test/components/schema/test_nul_characters_in_strings.py +test/components/schema/test_null_type_matches_only_the_null_object.py +test/components/schema/test_number_type_matches_numbers.py +test/components/schema/test_object_properties_validation.py +test/components/schema/test_object_type_matches_objects.py +test/components/schema/test_oneof.py +test/components/schema/test_oneof_complex_types.py +test/components/schema/test_oneof_with_base_schema.py +test/components/schema/test_oneof_with_empty_schema.py +test/components/schema/test_oneof_with_required.py +test/components/schema/test_pattern_is_not_anchored.py +test/components/schema/test_pattern_validation.py +test/components/schema/test_properties_with_escaped_characters.py +test/components/schema/test_property_named_ref_that_is_not_a_reference.py +test/components/schema/test_ref_in_additionalproperties.py +test/components/schema/test_ref_in_allof.py +test/components/schema/test_ref_in_anyof.py +test/components/schema/test_ref_in_items.py +test/components/schema/test_ref_in_not.py +test/components/schema/test_ref_in_oneof.py +test/components/schema/test_ref_in_property.py +test/components/schema/test_required_default_validation.py +test/components/schema/test_required_validation.py +test/components/schema/test_required_with_empty_array.py +test/components/schema/test_required_with_escaped_characters.py +test/components/schema/test_simple_enum_validation.py +test/components/schema/test_string_type_matches_strings.py +test/components/schema/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +test/components/schema/test_uniqueitems_false_validation.py +test/components/schema/test_uniqueitems_validation.py +test/components/schema/test_uri_format.py +test/components/schema/test_uri_reference_format.py +test/components/schema/test_uri_template_format.py tox.ini unit_test_api/__init__.py unit_test_api/api_client.py @@ -243,183 +243,184 @@ unit_test_api/apis/tags/required_api.py unit_test_api/apis/tags/response_content_content_type_schema_api.py unit_test_api/apis/tags/type_api.py unit_test_api/apis/tags/unique_items_api.py +unit_test_api/components/__init__.py +unit_test_api/components/schema/__init__.py +unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py +unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.pyi +unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py +unit_test_api/components/schema/additionalproperties_are_allowed_by_default.pyi +unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py +unit_test_api/components/schema/additionalproperties_can_exist_by_itself.pyi +unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py +unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.pyi +unit_test_api/components/schema/allof.py +unit_test_api/components/schema/allof.pyi +unit_test_api/components/schema/allof_combined_with_anyof_oneof.py +unit_test_api/components/schema/allof_combined_with_anyof_oneof.pyi +unit_test_api/components/schema/allof_simple_types.py +unit_test_api/components/schema/allof_simple_types.pyi +unit_test_api/components/schema/allof_with_base_schema.py +unit_test_api/components/schema/allof_with_base_schema.pyi +unit_test_api/components/schema/allof_with_one_empty_schema.py +unit_test_api/components/schema/allof_with_one_empty_schema.pyi +unit_test_api/components/schema/allof_with_the_first_empty_schema.py +unit_test_api/components/schema/allof_with_the_first_empty_schema.pyi +unit_test_api/components/schema/allof_with_the_last_empty_schema.py +unit_test_api/components/schema/allof_with_the_last_empty_schema.pyi +unit_test_api/components/schema/allof_with_two_empty_schemas.py +unit_test_api/components/schema/allof_with_two_empty_schemas.pyi +unit_test_api/components/schema/anyof.py +unit_test_api/components/schema/anyof.pyi +unit_test_api/components/schema/anyof_complex_types.py +unit_test_api/components/schema/anyof_complex_types.pyi +unit_test_api/components/schema/anyof_with_base_schema.py +unit_test_api/components/schema/anyof_with_base_schema.pyi +unit_test_api/components/schema/anyof_with_one_empty_schema.py +unit_test_api/components/schema/anyof_with_one_empty_schema.pyi +unit_test_api/components/schema/array_type_matches_arrays.py +unit_test_api/components/schema/array_type_matches_arrays.pyi +unit_test_api/components/schema/boolean_type_matches_booleans.py +unit_test_api/components/schema/boolean_type_matches_booleans.pyi +unit_test_api/components/schema/by_int.py +unit_test_api/components/schema/by_int.pyi +unit_test_api/components/schema/by_number.py +unit_test_api/components/schema/by_number.pyi +unit_test_api/components/schema/by_small_number.py +unit_test_api/components/schema/by_small_number.pyi +unit_test_api/components/schema/date_time_format.py +unit_test_api/components/schema/date_time_format.pyi +unit_test_api/components/schema/email_format.py +unit_test_api/components/schema/email_format.pyi +unit_test_api/components/schema/enum_with0_does_not_match_false.py +unit_test_api/components/schema/enum_with0_does_not_match_false.pyi +unit_test_api/components/schema/enum_with1_does_not_match_true.py +unit_test_api/components/schema/enum_with1_does_not_match_true.pyi +unit_test_api/components/schema/enum_with_escaped_characters.py +unit_test_api/components/schema/enum_with_escaped_characters.pyi +unit_test_api/components/schema/enum_with_false_does_not_match0.py +unit_test_api/components/schema/enum_with_false_does_not_match0.pyi +unit_test_api/components/schema/enum_with_true_does_not_match1.py +unit_test_api/components/schema/enum_with_true_does_not_match1.pyi +unit_test_api/components/schema/enums_in_properties.py +unit_test_api/components/schema/enums_in_properties.pyi +unit_test_api/components/schema/forbidden_property.py +unit_test_api/components/schema/forbidden_property.pyi +unit_test_api/components/schema/hostname_format.py +unit_test_api/components/schema/hostname_format.pyi +unit_test_api/components/schema/integer_type_matches_integers.py +unit_test_api/components/schema/integer_type_matches_integers.pyi +unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.py +unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.pyi +unit_test_api/components/schema/invalid_string_value_for_default.py +unit_test_api/components/schema/invalid_string_value_for_default.pyi +unit_test_api/components/schema/ipv4_format.py +unit_test_api/components/schema/ipv4_format.pyi +unit_test_api/components/schema/ipv6_format.py +unit_test_api/components/schema/ipv6_format.pyi +unit_test_api/components/schema/json_pointer_format.py +unit_test_api/components/schema/json_pointer_format.pyi +unit_test_api/components/schema/maximum_validation.py +unit_test_api/components/schema/maximum_validation.pyi +unit_test_api/components/schema/maximum_validation_with_unsigned_integer.py +unit_test_api/components/schema/maximum_validation_with_unsigned_integer.pyi +unit_test_api/components/schema/maxitems_validation.py +unit_test_api/components/schema/maxitems_validation.pyi +unit_test_api/components/schema/maxlength_validation.py +unit_test_api/components/schema/maxlength_validation.pyi +unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.py +unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.pyi +unit_test_api/components/schema/maxproperties_validation.py +unit_test_api/components/schema/maxproperties_validation.pyi +unit_test_api/components/schema/minimum_validation.py +unit_test_api/components/schema/minimum_validation.pyi +unit_test_api/components/schema/minimum_validation_with_signed_integer.py +unit_test_api/components/schema/minimum_validation_with_signed_integer.pyi +unit_test_api/components/schema/minitems_validation.py +unit_test_api/components/schema/minitems_validation.pyi +unit_test_api/components/schema/minlength_validation.py +unit_test_api/components/schema/minlength_validation.pyi +unit_test_api/components/schema/minproperties_validation.py +unit_test_api/components/schema/minproperties_validation.pyi +unit_test_api/components/schema/model_not.py +unit_test_api/components/schema/model_not.pyi +unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py +unit_test_api/components/schema/nested_allof_to_check_validation_semantics.pyi +unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py +unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.pyi +unit_test_api/components/schema/nested_items.py +unit_test_api/components/schema/nested_items.pyi +unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py +unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.pyi +unit_test_api/components/schema/not_more_complex_schema.py +unit_test_api/components/schema/not_more_complex_schema.pyi +unit_test_api/components/schema/nul_characters_in_strings.py +unit_test_api/components/schema/nul_characters_in_strings.pyi +unit_test_api/components/schema/null_type_matches_only_the_null_object.py +unit_test_api/components/schema/null_type_matches_only_the_null_object.pyi +unit_test_api/components/schema/number_type_matches_numbers.py +unit_test_api/components/schema/number_type_matches_numbers.pyi +unit_test_api/components/schema/object_properties_validation.py +unit_test_api/components/schema/object_properties_validation.pyi +unit_test_api/components/schema/object_type_matches_objects.py +unit_test_api/components/schema/object_type_matches_objects.pyi +unit_test_api/components/schema/oneof.py +unit_test_api/components/schema/oneof.pyi +unit_test_api/components/schema/oneof_complex_types.py +unit_test_api/components/schema/oneof_complex_types.pyi +unit_test_api/components/schema/oneof_with_base_schema.py +unit_test_api/components/schema/oneof_with_base_schema.pyi +unit_test_api/components/schema/oneof_with_empty_schema.py +unit_test_api/components/schema/oneof_with_empty_schema.pyi +unit_test_api/components/schema/oneof_with_required.py +unit_test_api/components/schema/oneof_with_required.pyi +unit_test_api/components/schema/pattern_is_not_anchored.py +unit_test_api/components/schema/pattern_is_not_anchored.pyi +unit_test_api/components/schema/pattern_validation.py +unit_test_api/components/schema/pattern_validation.pyi +unit_test_api/components/schema/properties_with_escaped_characters.py +unit_test_api/components/schema/properties_with_escaped_characters.pyi +unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py +unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.pyi +unit_test_api/components/schema/ref_in_additionalproperties.py +unit_test_api/components/schema/ref_in_additionalproperties.pyi +unit_test_api/components/schema/ref_in_allof.py +unit_test_api/components/schema/ref_in_allof.pyi +unit_test_api/components/schema/ref_in_anyof.py +unit_test_api/components/schema/ref_in_anyof.pyi +unit_test_api/components/schema/ref_in_items.py +unit_test_api/components/schema/ref_in_items.pyi +unit_test_api/components/schema/ref_in_not.py +unit_test_api/components/schema/ref_in_not.pyi +unit_test_api/components/schema/ref_in_oneof.py +unit_test_api/components/schema/ref_in_oneof.pyi +unit_test_api/components/schema/ref_in_property.py +unit_test_api/components/schema/ref_in_property.pyi +unit_test_api/components/schema/required_default_validation.py +unit_test_api/components/schema/required_default_validation.pyi +unit_test_api/components/schema/required_validation.py +unit_test_api/components/schema/required_validation.pyi +unit_test_api/components/schema/required_with_empty_array.py +unit_test_api/components/schema/required_with_empty_array.pyi +unit_test_api/components/schema/required_with_escaped_characters.py +unit_test_api/components/schema/required_with_escaped_characters.pyi +unit_test_api/components/schema/simple_enum_validation.py +unit_test_api/components/schema/simple_enum_validation.pyi +unit_test_api/components/schema/string_type_matches_strings.py +unit_test_api/components/schema/string_type_matches_strings.pyi +unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi +unit_test_api/components/schema/uniqueitems_false_validation.py +unit_test_api/components/schema/uniqueitems_false_validation.pyi +unit_test_api/components/schema/uniqueitems_validation.py +unit_test_api/components/schema/uniqueitems_validation.pyi +unit_test_api/components/schema/uri_format.py +unit_test_api/components/schema/uri_format.pyi +unit_test_api/components/schema/uri_reference_format.py +unit_test_api/components/schema/uri_reference_format.pyi +unit_test_api/components/schema/uri_template_format.py +unit_test_api/components/schema/uri_template_format.pyi +unit_test_api/components/schemas/__init__.py unit_test_api/configuration.py unit_test_api/exceptions.py -unit_test_api/model/__init__.py -unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py -unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi -unit_test_api/model/additionalproperties_are_allowed_by_default.py -unit_test_api/model/additionalproperties_are_allowed_by_default.pyi -unit_test_api/model/additionalproperties_can_exist_by_itself.py -unit_test_api/model/additionalproperties_can_exist_by_itself.pyi -unit_test_api/model/additionalproperties_should_not_look_in_applicators.py -unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi -unit_test_api/model/allof.py -unit_test_api/model/allof.pyi -unit_test_api/model/allof_combined_with_anyof_oneof.py -unit_test_api/model/allof_combined_with_anyof_oneof.pyi -unit_test_api/model/allof_simple_types.py -unit_test_api/model/allof_simple_types.pyi -unit_test_api/model/allof_with_base_schema.py -unit_test_api/model/allof_with_base_schema.pyi -unit_test_api/model/allof_with_one_empty_schema.py -unit_test_api/model/allof_with_one_empty_schema.pyi -unit_test_api/model/allof_with_the_first_empty_schema.py -unit_test_api/model/allof_with_the_first_empty_schema.pyi -unit_test_api/model/allof_with_the_last_empty_schema.py -unit_test_api/model/allof_with_the_last_empty_schema.pyi -unit_test_api/model/allof_with_two_empty_schemas.py -unit_test_api/model/allof_with_two_empty_schemas.pyi -unit_test_api/model/anyof.py -unit_test_api/model/anyof.pyi -unit_test_api/model/anyof_complex_types.py -unit_test_api/model/anyof_complex_types.pyi -unit_test_api/model/anyof_with_base_schema.py -unit_test_api/model/anyof_with_base_schema.pyi -unit_test_api/model/anyof_with_one_empty_schema.py -unit_test_api/model/anyof_with_one_empty_schema.pyi -unit_test_api/model/array_type_matches_arrays.py -unit_test_api/model/array_type_matches_arrays.pyi -unit_test_api/model/boolean_type_matches_booleans.py -unit_test_api/model/boolean_type_matches_booleans.pyi -unit_test_api/model/by_int.py -unit_test_api/model/by_int.pyi -unit_test_api/model/by_number.py -unit_test_api/model/by_number.pyi -unit_test_api/model/by_small_number.py -unit_test_api/model/by_small_number.pyi -unit_test_api/model/date_time_format.py -unit_test_api/model/date_time_format.pyi -unit_test_api/model/email_format.py -unit_test_api/model/email_format.pyi -unit_test_api/model/enum_with0_does_not_match_false.py -unit_test_api/model/enum_with0_does_not_match_false.pyi -unit_test_api/model/enum_with1_does_not_match_true.py -unit_test_api/model/enum_with1_does_not_match_true.pyi -unit_test_api/model/enum_with_escaped_characters.py -unit_test_api/model/enum_with_escaped_characters.pyi -unit_test_api/model/enum_with_false_does_not_match0.py -unit_test_api/model/enum_with_false_does_not_match0.pyi -unit_test_api/model/enum_with_true_does_not_match1.py -unit_test_api/model/enum_with_true_does_not_match1.pyi -unit_test_api/model/enums_in_properties.py -unit_test_api/model/enums_in_properties.pyi -unit_test_api/model/forbidden_property.py -unit_test_api/model/forbidden_property.pyi -unit_test_api/model/hostname_format.py -unit_test_api/model/hostname_format.pyi -unit_test_api/model/integer_type_matches_integers.py -unit_test_api/model/integer_type_matches_integers.pyi -unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py -unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi -unit_test_api/model/invalid_string_value_for_default.py -unit_test_api/model/invalid_string_value_for_default.pyi -unit_test_api/model/ipv4_format.py -unit_test_api/model/ipv4_format.pyi -unit_test_api/model/ipv6_format.py -unit_test_api/model/ipv6_format.pyi -unit_test_api/model/json_pointer_format.py -unit_test_api/model/json_pointer_format.pyi -unit_test_api/model/maximum_validation.py -unit_test_api/model/maximum_validation.pyi -unit_test_api/model/maximum_validation_with_unsigned_integer.py -unit_test_api/model/maximum_validation_with_unsigned_integer.pyi -unit_test_api/model/maxitems_validation.py -unit_test_api/model/maxitems_validation.pyi -unit_test_api/model/maxlength_validation.py -unit_test_api/model/maxlength_validation.pyi -unit_test_api/model/maxproperties0_means_the_object_is_empty.py -unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi -unit_test_api/model/maxproperties_validation.py -unit_test_api/model/maxproperties_validation.pyi -unit_test_api/model/minimum_validation.py -unit_test_api/model/minimum_validation.pyi -unit_test_api/model/minimum_validation_with_signed_integer.py -unit_test_api/model/minimum_validation_with_signed_integer.pyi -unit_test_api/model/minitems_validation.py -unit_test_api/model/minitems_validation.pyi -unit_test_api/model/minlength_validation.py -unit_test_api/model/minlength_validation.pyi -unit_test_api/model/minproperties_validation.py -unit_test_api/model/minproperties_validation.pyi -unit_test_api/model/model_not.py -unit_test_api/model/model_not.pyi -unit_test_api/model/nested_allof_to_check_validation_semantics.py -unit_test_api/model/nested_allof_to_check_validation_semantics.pyi -unit_test_api/model/nested_anyof_to_check_validation_semantics.py -unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi -unit_test_api/model/nested_items.py -unit_test_api/model/nested_items.pyi -unit_test_api/model/nested_oneof_to_check_validation_semantics.py -unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi -unit_test_api/model/not_more_complex_schema.py -unit_test_api/model/not_more_complex_schema.pyi -unit_test_api/model/nul_characters_in_strings.py -unit_test_api/model/nul_characters_in_strings.pyi -unit_test_api/model/null_type_matches_only_the_null_object.py -unit_test_api/model/null_type_matches_only_the_null_object.pyi -unit_test_api/model/number_type_matches_numbers.py -unit_test_api/model/number_type_matches_numbers.pyi -unit_test_api/model/object_properties_validation.py -unit_test_api/model/object_properties_validation.pyi -unit_test_api/model/object_type_matches_objects.py -unit_test_api/model/object_type_matches_objects.pyi -unit_test_api/model/oneof.py -unit_test_api/model/oneof.pyi -unit_test_api/model/oneof_complex_types.py -unit_test_api/model/oneof_complex_types.pyi -unit_test_api/model/oneof_with_base_schema.py -unit_test_api/model/oneof_with_base_schema.pyi -unit_test_api/model/oneof_with_empty_schema.py -unit_test_api/model/oneof_with_empty_schema.pyi -unit_test_api/model/oneof_with_required.py -unit_test_api/model/oneof_with_required.pyi -unit_test_api/model/pattern_is_not_anchored.py -unit_test_api/model/pattern_is_not_anchored.pyi -unit_test_api/model/pattern_validation.py -unit_test_api/model/pattern_validation.pyi -unit_test_api/model/properties_with_escaped_characters.py -unit_test_api/model/properties_with_escaped_characters.pyi -unit_test_api/model/property_named_ref_that_is_not_a_reference.py -unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi -unit_test_api/model/ref_in_additionalproperties.py -unit_test_api/model/ref_in_additionalproperties.pyi -unit_test_api/model/ref_in_allof.py -unit_test_api/model/ref_in_allof.pyi -unit_test_api/model/ref_in_anyof.py -unit_test_api/model/ref_in_anyof.pyi -unit_test_api/model/ref_in_items.py -unit_test_api/model/ref_in_items.pyi -unit_test_api/model/ref_in_not.py -unit_test_api/model/ref_in_not.pyi -unit_test_api/model/ref_in_oneof.py -unit_test_api/model/ref_in_oneof.pyi -unit_test_api/model/ref_in_property.py -unit_test_api/model/ref_in_property.pyi -unit_test_api/model/required_default_validation.py -unit_test_api/model/required_default_validation.pyi -unit_test_api/model/required_validation.py -unit_test_api/model/required_validation.pyi -unit_test_api/model/required_with_empty_array.py -unit_test_api/model/required_with_empty_array.pyi -unit_test_api/model/required_with_escaped_characters.py -unit_test_api/model/required_with_escaped_characters.pyi -unit_test_api/model/simple_enum_validation.py -unit_test_api/model/simple_enum_validation.pyi -unit_test_api/model/string_type_matches_strings.py -unit_test_api/model/string_type_matches_strings.pyi -unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py -unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi -unit_test_api/model/uniqueitems_false_validation.py -unit_test_api/model/uniqueitems_false_validation.pyi -unit_test_api/model/uniqueitems_validation.py -unit_test_api/model/uniqueitems_validation.pyi -unit_test_api/model/uri_format.py -unit_test_api/model/uri_format.pyi -unit_test_api/model/uri_reference_format.py -unit_test_api/model/uri_reference_format.pyi -unit_test_api/model/uri_template_format.py -unit_test_api/model/uri_template_format.pyi -unit_test_api/models/__init__.py unit_test_api/rest.py unit_test_api/schemas.py diff --git a/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/VERSION b/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/VERSION index 227cea21564..359a5b952d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/VERSION +++ b/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/VERSION @@ -1 +1 @@ -2.0.0 +2.0.0 \ No newline at end of file diff --git a/samples/openapi3/client/3_0_3_unit_test/python/README.md b/samples/openapi3/client/3_0_3_unit_test/python/README.md index d28458fead4..adf1e00397c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/README.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/README.md @@ -138,7 +138,7 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -866,93 +866,93 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AdditionalpropertiesAllowsASchemaWhichShouldValidate](docs/models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) - - [AdditionalpropertiesAreAllowedByDefault](docs/models/AdditionalpropertiesAreAllowedByDefault.md) - - [AdditionalpropertiesCanExistByItself](docs/models/AdditionalpropertiesCanExistByItself.md) - - [AdditionalpropertiesShouldNotLookInApplicators](docs/models/AdditionalpropertiesShouldNotLookInApplicators.md) - - [Allof](docs/models/Allof.md) - - [AllofCombinedWithAnyofOneof](docs/models/AllofCombinedWithAnyofOneof.md) - - [AllofSimpleTypes](docs/models/AllofSimpleTypes.md) - - [AllofWithBaseSchema](docs/models/AllofWithBaseSchema.md) - - [AllofWithOneEmptySchema](docs/models/AllofWithOneEmptySchema.md) - - [AllofWithTheFirstEmptySchema](docs/models/AllofWithTheFirstEmptySchema.md) - - [AllofWithTheLastEmptySchema](docs/models/AllofWithTheLastEmptySchema.md) - - [AllofWithTwoEmptySchemas](docs/models/AllofWithTwoEmptySchemas.md) - - [Anyof](docs/models/Anyof.md) - - [AnyofComplexTypes](docs/models/AnyofComplexTypes.md) - - [AnyofWithBaseSchema](docs/models/AnyofWithBaseSchema.md) - - [AnyofWithOneEmptySchema](docs/models/AnyofWithOneEmptySchema.md) - - [ArrayTypeMatchesArrays](docs/models/ArrayTypeMatchesArrays.md) - - [BooleanTypeMatchesBooleans](docs/models/BooleanTypeMatchesBooleans.md) - - [ByInt](docs/models/ByInt.md) - - [ByNumber](docs/models/ByNumber.md) - - [BySmallNumber](docs/models/BySmallNumber.md) - - [DateTimeFormat](docs/models/DateTimeFormat.md) - - [EmailFormat](docs/models/EmailFormat.md) - - [EnumWith0DoesNotMatchFalse](docs/models/EnumWith0DoesNotMatchFalse.md) - - [EnumWith1DoesNotMatchTrue](docs/models/EnumWith1DoesNotMatchTrue.md) - - [EnumWithEscapedCharacters](docs/models/EnumWithEscapedCharacters.md) - - [EnumWithFalseDoesNotMatch0](docs/models/EnumWithFalseDoesNotMatch0.md) - - [EnumWithTrueDoesNotMatch1](docs/models/EnumWithTrueDoesNotMatch1.md) - - [EnumsInProperties](docs/models/EnumsInProperties.md) - - [ForbiddenProperty](docs/models/ForbiddenProperty.md) - - [HostnameFormat](docs/models/HostnameFormat.md) - - [IntegerTypeMatchesIntegers](docs/models/IntegerTypeMatchesIntegers.md) - - [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf](docs/models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) - - [InvalidStringValueForDefault](docs/models/InvalidStringValueForDefault.md) - - [Ipv4Format](docs/models/Ipv4Format.md) - - [Ipv6Format](docs/models/Ipv6Format.md) - - [JsonPointerFormat](docs/models/JsonPointerFormat.md) - - [MaximumValidation](docs/models/MaximumValidation.md) - - [MaximumValidationWithUnsignedInteger](docs/models/MaximumValidationWithUnsignedInteger.md) - - [MaxitemsValidation](docs/models/MaxitemsValidation.md) - - [MaxlengthValidation](docs/models/MaxlengthValidation.md) - - [Maxproperties0MeansTheObjectIsEmpty](docs/models/Maxproperties0MeansTheObjectIsEmpty.md) - - [MaxpropertiesValidation](docs/models/MaxpropertiesValidation.md) - - [MinimumValidation](docs/models/MinimumValidation.md) - - [MinimumValidationWithSignedInteger](docs/models/MinimumValidationWithSignedInteger.md) - - [MinitemsValidation](docs/models/MinitemsValidation.md) - - [MinlengthValidation](docs/models/MinlengthValidation.md) - - [MinpropertiesValidation](docs/models/MinpropertiesValidation.md) - - [ModelNot](docs/models/ModelNot.md) - - [NestedAllofToCheckValidationSemantics](docs/models/NestedAllofToCheckValidationSemantics.md) - - [NestedAnyofToCheckValidationSemantics](docs/models/NestedAnyofToCheckValidationSemantics.md) - - [NestedItems](docs/models/NestedItems.md) - - [NestedOneofToCheckValidationSemantics](docs/models/NestedOneofToCheckValidationSemantics.md) - - [NotMoreComplexSchema](docs/models/NotMoreComplexSchema.md) - - [NulCharactersInStrings](docs/models/NulCharactersInStrings.md) - - [NullTypeMatchesOnlyTheNullObject](docs/models/NullTypeMatchesOnlyTheNullObject.md) - - [NumberTypeMatchesNumbers](docs/models/NumberTypeMatchesNumbers.md) - - [ObjectPropertiesValidation](docs/models/ObjectPropertiesValidation.md) - - [ObjectTypeMatchesObjects](docs/models/ObjectTypeMatchesObjects.md) - - [Oneof](docs/models/Oneof.md) - - [OneofComplexTypes](docs/models/OneofComplexTypes.md) - - [OneofWithBaseSchema](docs/models/OneofWithBaseSchema.md) - - [OneofWithEmptySchema](docs/models/OneofWithEmptySchema.md) - - [OneofWithRequired](docs/models/OneofWithRequired.md) - - [PatternIsNotAnchored](docs/models/PatternIsNotAnchored.md) - - [PatternValidation](docs/models/PatternValidation.md) - - [PropertiesWithEscapedCharacters](docs/models/PropertiesWithEscapedCharacters.md) - - [PropertyNamedRefThatIsNotAReference](docs/models/PropertyNamedRefThatIsNotAReference.md) - - [RefInAdditionalproperties](docs/models/RefInAdditionalproperties.md) - - [RefInAllof](docs/models/RefInAllof.md) - - [RefInAnyof](docs/models/RefInAnyof.md) - - [RefInItems](docs/models/RefInItems.md) - - [RefInNot](docs/models/RefInNot.md) - - [RefInOneof](docs/models/RefInOneof.md) - - [RefInProperty](docs/models/RefInProperty.md) - - [RequiredDefaultValidation](docs/models/RequiredDefaultValidation.md) - - [RequiredValidation](docs/models/RequiredValidation.md) - - [RequiredWithEmptyArray](docs/models/RequiredWithEmptyArray.md) - - [RequiredWithEscapedCharacters](docs/models/RequiredWithEscapedCharacters.md) - - [SimpleEnumValidation](docs/models/SimpleEnumValidation.md) - - [StringTypeMatchesStrings](docs/models/StringTypeMatchesStrings.md) - - [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing](docs/models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) - - [UniqueitemsFalseValidation](docs/models/UniqueitemsFalseValidation.md) - - [UniqueitemsValidation](docs/models/UniqueitemsValidation.md) - - [UriFormat](docs/models/UriFormat.md) - - [UriReferenceFormat](docs/models/UriReferenceFormat.md) - - [UriTemplateFormat](docs/models/UriTemplateFormat.md) + - [AdditionalpropertiesAllowsASchemaWhichShouldValidate](docs/components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) + - [AdditionalpropertiesAreAllowedByDefault](docs/components/schema/AdditionalpropertiesAreAllowedByDefault.md) + - [AdditionalpropertiesCanExistByItself](docs/components/schema/AdditionalpropertiesCanExistByItself.md) + - [AdditionalpropertiesShouldNotLookInApplicators](docs/components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) + - [Allof](docs/components/schema/Allof.md) + - [AllofCombinedWithAnyofOneof](docs/components/schema/AllofCombinedWithAnyofOneof.md) + - [AllofSimpleTypes](docs/components/schema/AllofSimpleTypes.md) + - [AllofWithBaseSchema](docs/components/schema/AllofWithBaseSchema.md) + - [AllofWithOneEmptySchema](docs/components/schema/AllofWithOneEmptySchema.md) + - [AllofWithTheFirstEmptySchema](docs/components/schema/AllofWithTheFirstEmptySchema.md) + - [AllofWithTheLastEmptySchema](docs/components/schema/AllofWithTheLastEmptySchema.md) + - [AllofWithTwoEmptySchemas](docs/components/schema/AllofWithTwoEmptySchemas.md) + - [Anyof](docs/components/schema/Anyof.md) + - [AnyofComplexTypes](docs/components/schema/AnyofComplexTypes.md) + - [AnyofWithBaseSchema](docs/components/schema/AnyofWithBaseSchema.md) + - [AnyofWithOneEmptySchema](docs/components/schema/AnyofWithOneEmptySchema.md) + - [ArrayTypeMatchesArrays](docs/components/schema/ArrayTypeMatchesArrays.md) + - [BooleanTypeMatchesBooleans](docs/components/schema/BooleanTypeMatchesBooleans.md) + - [ByInt](docs/components/schema/ByInt.md) + - [ByNumber](docs/components/schema/ByNumber.md) + - [BySmallNumber](docs/components/schema/BySmallNumber.md) + - [DateTimeFormat](docs/components/schema/DateTimeFormat.md) + - [EmailFormat](docs/components/schema/EmailFormat.md) + - [EnumWith0DoesNotMatchFalse](docs/components/schema/EnumWith0DoesNotMatchFalse.md) + - [EnumWith1DoesNotMatchTrue](docs/components/schema/EnumWith1DoesNotMatchTrue.md) + - [EnumWithEscapedCharacters](docs/components/schema/EnumWithEscapedCharacters.md) + - [EnumWithFalseDoesNotMatch0](docs/components/schema/EnumWithFalseDoesNotMatch0.md) + - [EnumWithTrueDoesNotMatch1](docs/components/schema/EnumWithTrueDoesNotMatch1.md) + - [EnumsInProperties](docs/components/schema/EnumsInProperties.md) + - [ForbiddenProperty](docs/components/schema/ForbiddenProperty.md) + - [HostnameFormat](docs/components/schema/HostnameFormat.md) + - [IntegerTypeMatchesIntegers](docs/components/schema/IntegerTypeMatchesIntegers.md) + - [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf](docs/components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) + - [InvalidStringValueForDefault](docs/components/schema/InvalidStringValueForDefault.md) + - [Ipv4Format](docs/components/schema/Ipv4Format.md) + - [Ipv6Format](docs/components/schema/Ipv6Format.md) + - [JsonPointerFormat](docs/components/schema/JsonPointerFormat.md) + - [MaximumValidation](docs/components/schema/MaximumValidation.md) + - [MaximumValidationWithUnsignedInteger](docs/components/schema/MaximumValidationWithUnsignedInteger.md) + - [MaxitemsValidation](docs/components/schema/MaxitemsValidation.md) + - [MaxlengthValidation](docs/components/schema/MaxlengthValidation.md) + - [Maxproperties0MeansTheObjectIsEmpty](docs/components/schema/Maxproperties0MeansTheObjectIsEmpty.md) + - [MaxpropertiesValidation](docs/components/schema/MaxpropertiesValidation.md) + - [MinimumValidation](docs/components/schema/MinimumValidation.md) + - [MinimumValidationWithSignedInteger](docs/components/schema/MinimumValidationWithSignedInteger.md) + - [MinitemsValidation](docs/components/schema/MinitemsValidation.md) + - [MinlengthValidation](docs/components/schema/MinlengthValidation.md) + - [MinpropertiesValidation](docs/components/schema/MinpropertiesValidation.md) + - [ModelNot](docs/components/schema/ModelNot.md) + - [NestedAllofToCheckValidationSemantics](docs/components/schema/NestedAllofToCheckValidationSemantics.md) + - [NestedAnyofToCheckValidationSemantics](docs/components/schema/NestedAnyofToCheckValidationSemantics.md) + - [NestedItems](docs/components/schema/NestedItems.md) + - [NestedOneofToCheckValidationSemantics](docs/components/schema/NestedOneofToCheckValidationSemantics.md) + - [NotMoreComplexSchema](docs/components/schema/NotMoreComplexSchema.md) + - [NulCharactersInStrings](docs/components/schema/NulCharactersInStrings.md) + - [NullTypeMatchesOnlyTheNullObject](docs/components/schema/NullTypeMatchesOnlyTheNullObject.md) + - [NumberTypeMatchesNumbers](docs/components/schema/NumberTypeMatchesNumbers.md) + - [ObjectPropertiesValidation](docs/components/schema/ObjectPropertiesValidation.md) + - [ObjectTypeMatchesObjects](docs/components/schema/ObjectTypeMatchesObjects.md) + - [Oneof](docs/components/schema/Oneof.md) + - [OneofComplexTypes](docs/components/schema/OneofComplexTypes.md) + - [OneofWithBaseSchema](docs/components/schema/OneofWithBaseSchema.md) + - [OneofWithEmptySchema](docs/components/schema/OneofWithEmptySchema.md) + - [OneofWithRequired](docs/components/schema/OneofWithRequired.md) + - [PatternIsNotAnchored](docs/components/schema/PatternIsNotAnchored.md) + - [PatternValidation](docs/components/schema/PatternValidation.md) + - [PropertiesWithEscapedCharacters](docs/components/schema/PropertiesWithEscapedCharacters.md) + - [PropertyNamedRefThatIsNotAReference](docs/components/schema/PropertyNamedRefThatIsNotAReference.md) + - [RefInAdditionalproperties](docs/components/schema/RefInAdditionalproperties.md) + - [RefInAllof](docs/components/schema/RefInAllof.md) + - [RefInAnyof](docs/components/schema/RefInAnyof.md) + - [RefInItems](docs/components/schema/RefInItems.md) + - [RefInNot](docs/components/schema/RefInNot.md) + - [RefInOneof](docs/components/schema/RefInOneof.md) + - [RefInProperty](docs/components/schema/RefInProperty.md) + - [RequiredDefaultValidation](docs/components/schema/RequiredDefaultValidation.md) + - [RequiredValidation](docs/components/schema/RequiredValidation.md) + - [RequiredWithEmptyArray](docs/components/schema/RequiredWithEmptyArray.md) + - [RequiredWithEscapedCharacters](docs/components/schema/RequiredWithEscapedCharacters.md) + - [SimpleEnumValidation](docs/components/schema/SimpleEnumValidation.md) + - [StringTypeMatchesStrings](docs/components/schema/StringTypeMatchesStrings.md) + - [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing](docs/components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) + - [UniqueitemsFalseValidation](docs/components/schema/UniqueitemsFalseValidation.md) + - [UniqueitemsValidation](docs/components/schema/UniqueitemsValidation.md) + - [UriFormat](docs/components/schema/UriFormat.md) + - [UriReferenceFormat](docs/components/schema/UriReferenceFormat.md) + - [UriTemplateFormat](docs/components/schema/UriTemplateFormat.md) ## Documentation For Authorization @@ -990,20 +990,22 @@ Class | Method | HTTP request | Description ## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in unit_test_api.apis and unit_test_api.models may fail with a +If the OpenAPI document is large, imports in unit_test_api.apis.tags.tag_to_api and unit_test_api.components.schemas may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: Solution 1: Use specific imports for apis and models like: - `from unit_test_api.apis.default_api import DefaultApi` -- `from unit_test_api.model.pet import Pet` +- `from unit_test_api.apis.paths.some_path import SomePath` +- `from unit_test_api.paths.some_path.get import ApiForget` +- `from unit_test_api.components.schema.pet import Pet` -Solution 1: +Solution 2: Before importing the package, adjust the maximum recursion limit as shown below: ``` import sys sys.setrecursionlimit(1500) import unit_test_api -from unit_test_api.apis import * -from unit_test_api.models import * +from unit_test_api.apis.tags.tag_to_api import * +from unit_test_api.components.schemas import * ``` diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AdditionalPropertiesApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AdditionalPropertiesApi.md index 46d3f4797c6..c8235acea0c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AdditionalPropertiesApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AdditionalPropertiesApi.md @@ -23,7 +23,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import additional_properties_api -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -63,7 +63,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Return Types, Responses @@ -134,7 +134,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Authorization @@ -152,7 +152,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import additional_properties_api -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -189,7 +189,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Return Types, Responses @@ -260,7 +260,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Authorization @@ -278,7 +278,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import additional_properties_api -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -317,7 +317,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Return Types, Responses @@ -388,7 +388,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Authorization @@ -406,7 +406,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import additional_properties_api -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -443,7 +443,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Return Types, Responses @@ -514,7 +514,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AllOfApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AllOfApi.md index 6bafe0c17a0..29d44ce4648 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AllOfApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AllOfApi.md @@ -33,7 +33,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -70,7 +70,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Return Types, Responses @@ -141,7 +141,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Authorization @@ -159,7 +159,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -196,7 +196,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Return Types, Responses @@ -267,7 +267,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Authorization @@ -285,7 +285,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -322,7 +322,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Return Types, Responses @@ -393,7 +393,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Authorization @@ -411,7 +411,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -448,7 +448,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Return Types, Responses @@ -519,7 +519,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Authorization @@ -537,7 +537,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -574,7 +574,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -645,7 +645,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Authorization @@ -663,7 +663,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -700,7 +700,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Return Types, Responses @@ -771,7 +771,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Authorization @@ -789,7 +789,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -826,7 +826,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Return Types, Responses @@ -897,7 +897,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Authorization @@ -915,7 +915,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -952,7 +952,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Return Types, Responses @@ -1023,7 +1023,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Authorization @@ -1041,7 +1041,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import all_of_api -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1078,7 +1078,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -1149,7 +1149,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AnyOfApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AnyOfApi.md index a788292fe76..838e7ec8fb7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AnyOfApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/AnyOfApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import any_of_api -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -62,7 +62,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Return Types, Responses @@ -133,7 +133,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Authorization @@ -151,7 +151,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import any_of_api -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -188,7 +188,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Return Types, Responses @@ -259,7 +259,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Authorization @@ -277,7 +277,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import any_of_api -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -314,7 +314,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Return Types, Responses @@ -385,7 +385,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Authorization @@ -403,7 +403,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import any_of_api -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -440,7 +440,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -511,7 +511,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Authorization @@ -529,7 +529,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import any_of_api -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -566,7 +566,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -637,7 +637,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ContentTypeJsonApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ContentTypeJsonApi.md index 96e375fdcd7..d4159a2afc1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ContentTypeJsonApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ContentTypeJsonApi.md @@ -189,7 +189,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -229,7 +229,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Return Types, Responses @@ -300,7 +300,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Authorization @@ -318,7 +318,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -355,7 +355,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Return Types, Responses @@ -426,7 +426,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Authorization @@ -444,7 +444,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -483,7 +483,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Return Types, Responses @@ -554,7 +554,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Authorization @@ -572,7 +572,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -609,7 +609,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Return Types, Responses @@ -680,7 +680,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Authorization @@ -698,7 +698,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -735,7 +735,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Return Types, Responses @@ -806,7 +806,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Authorization @@ -824,7 +824,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -861,7 +861,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Return Types, Responses @@ -932,7 +932,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Authorization @@ -950,7 +950,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -987,7 +987,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Return Types, Responses @@ -1058,7 +1058,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Authorization @@ -1076,7 +1076,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1113,7 +1113,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Return Types, Responses @@ -1184,7 +1184,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Authorization @@ -1202,7 +1202,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1239,7 +1239,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -1310,7 +1310,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Authorization @@ -1328,7 +1328,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1365,7 +1365,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Return Types, Responses @@ -1436,7 +1436,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Authorization @@ -1454,7 +1454,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1491,7 +1491,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Return Types, Responses @@ -1562,7 +1562,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Authorization @@ -1580,7 +1580,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1617,7 +1617,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Return Types, Responses @@ -1688,7 +1688,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Authorization @@ -1706,7 +1706,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1743,7 +1743,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Return Types, Responses @@ -1814,7 +1814,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Authorization @@ -1832,7 +1832,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1869,7 +1869,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Return Types, Responses @@ -1940,7 +1940,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Authorization @@ -1958,7 +1958,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1995,7 +1995,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Return Types, Responses @@ -2066,7 +2066,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Authorization @@ -2084,7 +2084,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2121,7 +2121,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -2192,7 +2192,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Authorization @@ -2210,7 +2210,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2249,7 +2249,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Return Types, Responses @@ -2320,7 +2320,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Authorization @@ -2338,7 +2338,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2375,7 +2375,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Return Types, Responses @@ -2446,7 +2446,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Authorization @@ -2464,7 +2464,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2501,7 +2501,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Return Types, Responses @@ -2572,7 +2572,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Authorization @@ -2590,7 +2590,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2627,7 +2627,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Return Types, Responses @@ -2698,7 +2698,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Authorization @@ -2716,7 +2716,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2753,7 +2753,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Return Types, Responses @@ -2824,7 +2824,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Authorization @@ -2842,7 +2842,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2879,7 +2879,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Return Types, Responses @@ -2950,7 +2950,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Authorization @@ -2968,7 +2968,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3005,7 +3005,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Return Types, Responses @@ -3076,7 +3076,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Authorization @@ -3094,7 +3094,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3131,7 +3131,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Return Types, Responses @@ -3202,7 +3202,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Authorization @@ -3220,7 +3220,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3257,7 +3257,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Return Types, Responses @@ -3328,7 +3328,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Authorization @@ -3346,7 +3346,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3383,7 +3383,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Return Types, Responses @@ -3454,7 +3454,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Authorization @@ -3472,7 +3472,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3509,7 +3509,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Return Types, Responses @@ -3580,7 +3580,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Authorization @@ -3598,7 +3598,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3635,7 +3635,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Return Types, Responses @@ -3706,7 +3706,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Authorization @@ -3724,7 +3724,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3764,7 +3764,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Return Types, Responses @@ -3835,7 +3835,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Authorization @@ -3853,7 +3853,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3890,7 +3890,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Return Types, Responses @@ -3961,7 +3961,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Authorization @@ -3979,7 +3979,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4016,7 +4016,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Return Types, Responses @@ -4087,7 +4087,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Authorization @@ -4105,7 +4105,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4142,7 +4142,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Return Types, Responses @@ -4213,7 +4213,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Authorization @@ -4231,7 +4231,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4268,7 +4268,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Return Types, Responses @@ -4339,7 +4339,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Authorization @@ -4357,7 +4357,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4394,7 +4394,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Return Types, Responses @@ -4465,7 +4465,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Authorization @@ -4483,7 +4483,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4520,7 +4520,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Return Types, Responses @@ -4591,7 +4591,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Authorization @@ -4609,7 +4609,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4646,7 +4646,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Return Types, Responses @@ -4717,7 +4717,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Authorization @@ -4735,7 +4735,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4772,7 +4772,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Return Types, Responses @@ -4843,7 +4843,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Authorization @@ -4861,7 +4861,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4898,7 +4898,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Return Types, Responses @@ -4969,7 +4969,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Authorization @@ -4987,7 +4987,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5024,7 +5024,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Return Types, Responses @@ -5095,7 +5095,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Authorization @@ -5113,7 +5113,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5150,7 +5150,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Return Types, Responses @@ -5221,7 +5221,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Authorization @@ -5239,7 +5239,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5276,7 +5276,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Return Types, Responses @@ -5347,7 +5347,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Authorization @@ -5365,7 +5365,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5402,7 +5402,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Return Types, Responses @@ -5473,7 +5473,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Authorization @@ -5491,7 +5491,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5528,7 +5528,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Return Types, Responses @@ -5599,7 +5599,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Authorization @@ -5617,7 +5617,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5654,7 +5654,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Return Types, Responses @@ -5725,7 +5725,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Authorization @@ -5743,7 +5743,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5780,7 +5780,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Return Types, Responses @@ -5851,7 +5851,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Authorization @@ -5869,7 +5869,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5906,7 +5906,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Return Types, Responses @@ -5977,7 +5977,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Authorization @@ -5995,7 +5995,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6032,7 +6032,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Return Types, Responses @@ -6103,7 +6103,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Authorization @@ -6121,7 +6121,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6158,7 +6158,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Return Types, Responses @@ -6229,7 +6229,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Authorization @@ -6247,7 +6247,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6284,7 +6284,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -6355,7 +6355,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Authorization @@ -6373,7 +6373,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6410,7 +6410,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -6481,7 +6481,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Authorization @@ -6499,7 +6499,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6544,7 +6544,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Return Types, Responses @@ -6615,7 +6615,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Authorization @@ -6633,7 +6633,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6670,7 +6670,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -6741,7 +6741,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Authorization @@ -6759,7 +6759,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6796,7 +6796,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Return Types, Responses @@ -6867,7 +6867,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Authorization @@ -6885,7 +6885,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6922,7 +6922,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Return Types, Responses @@ -6993,7 +6993,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Authorization @@ -7011,7 +7011,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7048,7 +7048,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Return Types, Responses @@ -7119,7 +7119,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Authorization @@ -7137,7 +7137,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7174,7 +7174,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Return Types, Responses @@ -7245,7 +7245,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Authorization @@ -7263,7 +7263,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7300,7 +7300,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Return Types, Responses @@ -7371,7 +7371,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Authorization @@ -7389,7 +7389,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7426,7 +7426,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Return Types, Responses @@ -7497,7 +7497,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Authorization @@ -7515,7 +7515,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7552,7 +7552,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Return Types, Responses @@ -7623,7 +7623,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Authorization @@ -7641,7 +7641,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7678,7 +7678,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Return Types, Responses @@ -7749,7 +7749,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Authorization @@ -7767,7 +7767,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7804,7 +7804,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Return Types, Responses @@ -7875,7 +7875,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Authorization @@ -7893,7 +7893,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7930,7 +7930,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Return Types, Responses @@ -8001,7 +8001,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Authorization @@ -8019,7 +8019,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8056,7 +8056,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Return Types, Responses @@ -8127,7 +8127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Authorization @@ -8145,7 +8145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8182,7 +8182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Return Types, Responses @@ -8253,7 +8253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Authorization @@ -8271,7 +8271,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8308,7 +8308,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Return Types, Responses @@ -8379,7 +8379,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Authorization @@ -8397,7 +8397,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8434,7 +8434,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Return Types, Responses @@ -8505,7 +8505,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Authorization @@ -8523,7 +8523,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8560,7 +8560,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Return Types, Responses @@ -8631,7 +8631,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Authorization @@ -8649,7 +8649,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8686,7 +8686,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Return Types, Responses @@ -8757,7 +8757,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Authorization @@ -8775,7 +8775,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8814,7 +8814,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Return Types, Responses @@ -8885,7 +8885,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Authorization @@ -8903,7 +8903,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8940,7 +8940,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Return Types, Responses @@ -9011,7 +9011,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Authorization @@ -9029,7 +9029,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9066,7 +9066,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Return Types, Responses @@ -9137,7 +9137,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Authorization @@ -9155,7 +9155,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9194,7 +9194,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Return Types, Responses @@ -9265,7 +9265,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Authorization @@ -9283,7 +9283,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9320,7 +9320,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Return Types, Responses @@ -9391,7 +9391,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Authorization @@ -9409,7 +9409,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9446,7 +9446,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Return Types, Responses @@ -9517,7 +9517,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Authorization @@ -9535,7 +9535,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9572,7 +9572,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Return Types, Responses @@ -9643,7 +9643,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Authorization @@ -9661,7 +9661,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9698,7 +9698,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Return Types, Responses @@ -9769,7 +9769,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Authorization @@ -9787,7 +9787,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9824,7 +9824,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Return Types, Responses @@ -9895,7 +9895,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Authorization @@ -9913,7 +9913,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9950,7 +9950,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Return Types, Responses @@ -10021,7 +10021,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Authorization @@ -10039,7 +10039,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10076,7 +10076,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Return Types, Responses @@ -10147,7 +10147,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Authorization @@ -10165,7 +10165,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10202,7 +10202,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Return Types, Responses @@ -10273,7 +10273,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Authorization @@ -10291,7 +10291,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10328,7 +10328,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Return Types, Responses @@ -10399,7 +10399,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Authorization @@ -10417,7 +10417,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10456,7 +10456,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Return Types, Responses @@ -10527,7 +10527,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Authorization @@ -10545,7 +10545,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10582,7 +10582,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Return Types, Responses @@ -10653,7 +10653,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Authorization @@ -10671,7 +10671,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10708,7 +10708,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Return Types, Responses @@ -10779,7 +10779,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Authorization @@ -10797,7 +10797,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10834,7 +10834,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Return Types, Responses @@ -10905,7 +10905,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Authorization @@ -10923,7 +10923,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10960,7 +10960,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Return Types, Responses @@ -11031,7 +11031,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Authorization @@ -11049,7 +11049,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import content_type_json_api -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -11086,7 +11086,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Return Types, Responses @@ -11157,7 +11157,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/DefaultApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/DefaultApi.md index 356d27b76c8..c280ac1faa7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/DefaultApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/DefaultApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import default_api -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import default_api -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -184,7 +184,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Return Types, Responses @@ -255,7 +255,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/EnumApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/EnumApi.md index 9ad730862b9..be1e3bfd6e5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/EnumApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/EnumApi.md @@ -31,7 +31,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -68,7 +68,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Return Types, Responses @@ -139,7 +139,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Authorization @@ -157,7 +157,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -194,7 +194,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Return Types, Responses @@ -265,7 +265,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Authorization @@ -283,7 +283,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -320,7 +320,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Return Types, Responses @@ -391,7 +391,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Authorization @@ -409,7 +409,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -446,7 +446,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Return Types, Responses @@ -517,7 +517,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Authorization @@ -535,7 +535,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -572,7 +572,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Return Types, Responses @@ -643,7 +643,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Authorization @@ -661,7 +661,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -701,7 +701,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Return Types, Responses @@ -772,7 +772,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Authorization @@ -790,7 +790,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -827,7 +827,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Return Types, Responses @@ -898,7 +898,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Authorization @@ -916,7 +916,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import enum_api -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -953,7 +953,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Return Types, Responses @@ -1024,7 +1024,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/FormatApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/FormatApi.md index 40250c1a4a8..f703ad5f0f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/FormatApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/FormatApi.md @@ -33,7 +33,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -70,7 +70,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Return Types, Responses @@ -141,7 +141,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Authorization @@ -159,7 +159,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -196,7 +196,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Return Types, Responses @@ -267,7 +267,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Authorization @@ -285,7 +285,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -322,7 +322,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Return Types, Responses @@ -393,7 +393,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Authorization @@ -411,7 +411,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -448,7 +448,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Return Types, Responses @@ -519,7 +519,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Authorization @@ -537,7 +537,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -574,7 +574,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Return Types, Responses @@ -645,7 +645,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Authorization @@ -663,7 +663,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -700,7 +700,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Return Types, Responses @@ -771,7 +771,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Authorization @@ -789,7 +789,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -826,7 +826,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Return Types, Responses @@ -897,7 +897,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Authorization @@ -915,7 +915,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -952,7 +952,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Return Types, Responses @@ -1023,7 +1023,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Authorization @@ -1041,7 +1041,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import format_api -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1078,7 +1078,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Return Types, Responses @@ -1149,7 +1149,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ItemsApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ItemsApi.md index a6a3c5247c0..458ebecfbe3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ItemsApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ItemsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import items_api -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -62,7 +62,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Return Types, Responses @@ -133,7 +133,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxItemsApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxItemsApi.md index 86de173ca63..1eed6cd577a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxItemsApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxItemsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import max_items_api -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -54,7 +54,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Return Types, Responses @@ -125,7 +125,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxLengthApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxLengthApi.md index f031d02fba5..8efcb7df500 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxLengthApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxLengthApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import max_length_api -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -54,7 +54,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Return Types, Responses @@ -125,7 +125,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxPropertiesApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxPropertiesApi.md index 0aa80e98ec3..0de2a54f6f9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxPropertiesApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaxPropertiesApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import max_properties_api -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import max_properties_api -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -182,7 +182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Return Types, Responses @@ -253,7 +253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaximumApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaximumApi.md index e29b69a1308..039688d4a93 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaximumApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MaximumApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import maximum_api -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import maximum_api -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -182,7 +182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Return Types, Responses @@ -253,7 +253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinItemsApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinItemsApi.md index ee4f86b5255..1bc662d5533 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinItemsApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinItemsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import min_items_api -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -54,7 +54,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Return Types, Responses @@ -125,7 +125,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinLengthApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinLengthApi.md index 2827caf5861..4d156568079 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinLengthApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinLengthApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import min_length_api -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -54,7 +54,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Return Types, Responses @@ -125,7 +125,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinPropertiesApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinPropertiesApi.md index 71d29952959..e5d5767a766 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinPropertiesApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinPropertiesApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import min_properties_api -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -54,7 +54,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Return Types, Responses @@ -125,7 +125,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinimumApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinimumApi.md index 4370c5a5dbb..0d279c6886c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinimumApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MinimumApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import minimum_api -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import minimum_api -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -182,7 +182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Return Types, Responses @@ -253,7 +253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ModelNotApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ModelNotApi.md index 09e8e4c81d8..c3b60e1503e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ModelNotApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ModelNotApi.md @@ -21,7 +21,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import model_not_api -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -58,7 +58,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Return Types, Responses @@ -129,7 +129,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Authorization @@ -147,7 +147,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import model_not_api -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -184,7 +184,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Return Types, Responses @@ -255,7 +255,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Authorization @@ -273,7 +273,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import model_not_api -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -310,7 +310,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Return Types, Responses @@ -381,7 +381,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MultipleOfApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MultipleOfApi.md index c36498de7b6..c9a8de5b3ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MultipleOfApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/MultipleOfApi.md @@ -23,7 +23,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import multiple_of_api -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -60,7 +60,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Return Types, Responses @@ -131,7 +131,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Authorization @@ -149,7 +149,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import multiple_of_api -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -186,7 +186,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Return Types, Responses @@ -257,7 +257,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Authorization @@ -275,7 +275,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import multiple_of_api -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -312,7 +312,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Return Types, Responses @@ -383,7 +383,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Authorization @@ -401,7 +401,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import multiple_of_api -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -438,7 +438,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Return Types, Responses @@ -509,7 +509,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OneOfApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OneOfApi.md index 44f6007dab2..ce9054fd8a1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OneOfApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OneOfApi.md @@ -27,7 +27,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import one_of_api -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -64,7 +64,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -135,7 +135,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Authorization @@ -153,7 +153,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import one_of_api -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -190,7 +190,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Return Types, Responses @@ -261,7 +261,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Authorization @@ -279,7 +279,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import one_of_api -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -316,7 +316,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Return Types, Responses @@ -387,7 +387,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Authorization @@ -405,7 +405,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import one_of_api -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -442,7 +442,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Return Types, Responses @@ -513,7 +513,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Authorization @@ -531,7 +531,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import one_of_api -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -568,7 +568,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Return Types, Responses @@ -639,7 +639,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Authorization @@ -657,7 +657,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import one_of_api -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -694,7 +694,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Return Types, Responses @@ -765,7 +765,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OperationRequestBodyApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OperationRequestBodyApi.md index 717350cb1f3..6c8f55157a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OperationRequestBodyApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/OperationRequestBodyApi.md @@ -102,7 +102,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -142,7 +142,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Return Types, Responses @@ -174,7 +174,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -211,7 +211,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Return Types, Responses @@ -243,7 +243,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -282,7 +282,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Return Types, Responses @@ -314,7 +314,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -351,7 +351,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Return Types, Responses @@ -383,7 +383,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -420,7 +420,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Return Types, Responses @@ -452,7 +452,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -489,7 +489,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Return Types, Responses @@ -521,7 +521,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -558,7 +558,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Return Types, Responses @@ -590,7 +590,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -627,7 +627,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Return Types, Responses @@ -659,7 +659,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -696,7 +696,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -728,7 +728,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -765,7 +765,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Return Types, Responses @@ -797,7 +797,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -834,7 +834,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Return Types, Responses @@ -866,7 +866,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -903,7 +903,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Return Types, Responses @@ -935,7 +935,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -972,7 +972,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Return Types, Responses @@ -1004,7 +1004,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1041,7 +1041,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Return Types, Responses @@ -1073,7 +1073,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1110,7 +1110,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Return Types, Responses @@ -1142,7 +1142,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1179,7 +1179,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -1211,7 +1211,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1250,7 +1250,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Return Types, Responses @@ -1282,7 +1282,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1319,7 +1319,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Return Types, Responses @@ -1351,7 +1351,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1388,7 +1388,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Return Types, Responses @@ -1420,7 +1420,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1457,7 +1457,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Return Types, Responses @@ -1489,7 +1489,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1526,7 +1526,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Return Types, Responses @@ -1558,7 +1558,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1595,7 +1595,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Return Types, Responses @@ -1627,7 +1627,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1664,7 +1664,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Return Types, Responses @@ -1696,7 +1696,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1733,7 +1733,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Return Types, Responses @@ -1765,7 +1765,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1802,7 +1802,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Return Types, Responses @@ -1834,7 +1834,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1871,7 +1871,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Return Types, Responses @@ -1903,7 +1903,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1940,7 +1940,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Return Types, Responses @@ -1972,7 +1972,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2009,7 +2009,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Return Types, Responses @@ -2041,7 +2041,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2081,7 +2081,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Return Types, Responses @@ -2113,7 +2113,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2150,7 +2150,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Return Types, Responses @@ -2182,7 +2182,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2219,7 +2219,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Return Types, Responses @@ -2251,7 +2251,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2288,7 +2288,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Return Types, Responses @@ -2320,7 +2320,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2357,7 +2357,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Return Types, Responses @@ -2389,7 +2389,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2426,7 +2426,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Return Types, Responses @@ -2458,7 +2458,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2495,7 +2495,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Return Types, Responses @@ -2527,7 +2527,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2564,7 +2564,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Return Types, Responses @@ -2596,7 +2596,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2633,7 +2633,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Return Types, Responses @@ -2665,7 +2665,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2702,7 +2702,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Return Types, Responses @@ -2734,7 +2734,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2771,7 +2771,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Return Types, Responses @@ -2803,7 +2803,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2840,7 +2840,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Return Types, Responses @@ -2872,7 +2872,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2909,7 +2909,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Return Types, Responses @@ -2941,7 +2941,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2978,7 +2978,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Return Types, Responses @@ -3010,7 +3010,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3047,7 +3047,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Return Types, Responses @@ -3079,7 +3079,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3116,7 +3116,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Return Types, Responses @@ -3148,7 +3148,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3185,7 +3185,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Return Types, Responses @@ -3217,7 +3217,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3254,7 +3254,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Return Types, Responses @@ -3286,7 +3286,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3323,7 +3323,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Return Types, Responses @@ -3355,7 +3355,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3392,7 +3392,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Return Types, Responses @@ -3424,7 +3424,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3461,7 +3461,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -3493,7 +3493,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3530,7 +3530,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -3562,7 +3562,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3607,7 +3607,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Return Types, Responses @@ -3639,7 +3639,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3676,7 +3676,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -3708,7 +3708,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3745,7 +3745,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Return Types, Responses @@ -3777,7 +3777,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3814,7 +3814,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Return Types, Responses @@ -3846,7 +3846,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3883,7 +3883,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Return Types, Responses @@ -3915,7 +3915,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3952,7 +3952,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Return Types, Responses @@ -3984,7 +3984,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4021,7 +4021,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Return Types, Responses @@ -4053,7 +4053,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4090,7 +4090,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Return Types, Responses @@ -4122,7 +4122,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4159,7 +4159,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Return Types, Responses @@ -4191,7 +4191,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4228,7 +4228,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Return Types, Responses @@ -4260,7 +4260,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4297,7 +4297,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Return Types, Responses @@ -4329,7 +4329,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4366,7 +4366,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Return Types, Responses @@ -4398,7 +4398,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4435,7 +4435,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Return Types, Responses @@ -4467,7 +4467,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4504,7 +4504,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Return Types, Responses @@ -4536,7 +4536,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4573,7 +4573,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Return Types, Responses @@ -4605,7 +4605,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4642,7 +4642,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Return Types, Responses @@ -4674,7 +4674,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4711,7 +4711,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Return Types, Responses @@ -4743,7 +4743,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4780,7 +4780,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Return Types, Responses @@ -4812,7 +4812,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4851,7 +4851,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Return Types, Responses @@ -4883,7 +4883,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4920,7 +4920,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Return Types, Responses @@ -4952,7 +4952,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4989,7 +4989,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Return Types, Responses @@ -5021,7 +5021,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5060,7 +5060,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Return Types, Responses @@ -5092,7 +5092,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5129,7 +5129,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Return Types, Responses @@ -5161,7 +5161,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5198,7 +5198,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Return Types, Responses @@ -5230,7 +5230,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5267,7 +5267,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Return Types, Responses @@ -5299,7 +5299,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5336,7 +5336,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Return Types, Responses @@ -5368,7 +5368,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5405,7 +5405,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Return Types, Responses @@ -5437,7 +5437,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5474,7 +5474,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Return Types, Responses @@ -5506,7 +5506,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5543,7 +5543,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Return Types, Responses @@ -5575,7 +5575,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5612,7 +5612,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Return Types, Responses @@ -5644,7 +5644,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5681,7 +5681,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Return Types, Responses @@ -5713,7 +5713,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5752,7 +5752,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Return Types, Responses @@ -5784,7 +5784,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5821,7 +5821,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Return Types, Responses @@ -5853,7 +5853,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5890,7 +5890,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Return Types, Responses @@ -5922,7 +5922,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5959,7 +5959,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Return Types, Responses @@ -5991,7 +5991,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6028,7 +6028,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Return Types, Responses @@ -6060,7 +6060,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import operation_request_body_api -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6097,7 +6097,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Return Types, Responses diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PathPostApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PathPostApi.md index 55f10b790be..1fc859f0fb7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PathPostApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PathPostApi.md @@ -189,7 +189,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -229,7 +229,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Return Types, Responses @@ -300,7 +300,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Authorization @@ -318,7 +318,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -355,7 +355,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Return Types, Responses @@ -426,7 +426,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Authorization @@ -444,7 +444,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -483,7 +483,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Return Types, Responses @@ -554,7 +554,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Authorization @@ -572,7 +572,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -609,7 +609,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Return Types, Responses @@ -680,7 +680,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Authorization @@ -698,7 +698,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -735,7 +735,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Return Types, Responses @@ -806,7 +806,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Authorization @@ -824,7 +824,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -861,7 +861,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Return Types, Responses @@ -932,7 +932,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Authorization @@ -950,7 +950,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -987,7 +987,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Return Types, Responses @@ -1058,7 +1058,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Authorization @@ -1076,7 +1076,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1113,7 +1113,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Return Types, Responses @@ -1184,7 +1184,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Authorization @@ -1202,7 +1202,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1239,7 +1239,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -1310,7 +1310,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Authorization @@ -1328,7 +1328,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1365,7 +1365,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Return Types, Responses @@ -1436,7 +1436,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Authorization @@ -1454,7 +1454,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1491,7 +1491,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Return Types, Responses @@ -1562,7 +1562,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Authorization @@ -1580,7 +1580,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1617,7 +1617,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Return Types, Responses @@ -1688,7 +1688,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Authorization @@ -1706,7 +1706,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1743,7 +1743,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Return Types, Responses @@ -1814,7 +1814,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Authorization @@ -1832,7 +1832,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1869,7 +1869,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Return Types, Responses @@ -1940,7 +1940,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Authorization @@ -1958,7 +1958,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -1995,7 +1995,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Return Types, Responses @@ -2066,7 +2066,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Authorization @@ -2084,7 +2084,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2121,7 +2121,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Return Types, Responses @@ -2192,7 +2192,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Authorization @@ -2210,7 +2210,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2249,7 +2249,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Return Types, Responses @@ -2320,7 +2320,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Authorization @@ -2338,7 +2338,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2375,7 +2375,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Return Types, Responses @@ -2446,7 +2446,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Authorization @@ -2464,7 +2464,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2501,7 +2501,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Return Types, Responses @@ -2572,7 +2572,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Authorization @@ -2590,7 +2590,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2627,7 +2627,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Return Types, Responses @@ -2698,7 +2698,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Authorization @@ -2716,7 +2716,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2753,7 +2753,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Return Types, Responses @@ -2824,7 +2824,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Authorization @@ -2842,7 +2842,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -2879,7 +2879,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Return Types, Responses @@ -2950,7 +2950,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Authorization @@ -2968,7 +2968,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3005,7 +3005,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Return Types, Responses @@ -3076,7 +3076,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Authorization @@ -3094,7 +3094,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3131,7 +3131,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Return Types, Responses @@ -3202,7 +3202,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Authorization @@ -3220,7 +3220,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3257,7 +3257,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Return Types, Responses @@ -3328,7 +3328,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Authorization @@ -3346,7 +3346,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3383,7 +3383,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Return Types, Responses @@ -3454,7 +3454,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Authorization @@ -3472,7 +3472,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3509,7 +3509,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Return Types, Responses @@ -3580,7 +3580,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Authorization @@ -3598,7 +3598,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3635,7 +3635,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Return Types, Responses @@ -3706,7 +3706,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Authorization @@ -3724,7 +3724,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3764,7 +3764,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Return Types, Responses @@ -3835,7 +3835,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Authorization @@ -3853,7 +3853,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -3890,7 +3890,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Return Types, Responses @@ -3961,7 +3961,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Authorization @@ -3979,7 +3979,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4016,7 +4016,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Return Types, Responses @@ -4087,7 +4087,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Authorization @@ -4105,7 +4105,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4142,7 +4142,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Return Types, Responses @@ -4213,7 +4213,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Authorization @@ -4231,7 +4231,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4268,7 +4268,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Return Types, Responses @@ -4339,7 +4339,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Authorization @@ -4357,7 +4357,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4394,7 +4394,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Return Types, Responses @@ -4465,7 +4465,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Authorization @@ -4483,7 +4483,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4520,7 +4520,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Return Types, Responses @@ -4591,7 +4591,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Authorization @@ -4609,7 +4609,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4646,7 +4646,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Return Types, Responses @@ -4717,7 +4717,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Authorization @@ -4735,7 +4735,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4772,7 +4772,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Return Types, Responses @@ -4843,7 +4843,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Authorization @@ -4861,7 +4861,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -4898,7 +4898,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Return Types, Responses @@ -4969,7 +4969,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Authorization @@ -4987,7 +4987,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5024,7 +5024,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Return Types, Responses @@ -5095,7 +5095,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Authorization @@ -5113,7 +5113,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5150,7 +5150,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Return Types, Responses @@ -5221,7 +5221,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Authorization @@ -5239,7 +5239,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5276,7 +5276,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Return Types, Responses @@ -5347,7 +5347,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Authorization @@ -5365,7 +5365,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5402,7 +5402,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Return Types, Responses @@ -5473,7 +5473,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Authorization @@ -5491,7 +5491,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5528,7 +5528,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Return Types, Responses @@ -5599,7 +5599,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Authorization @@ -5617,7 +5617,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5654,7 +5654,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Return Types, Responses @@ -5725,7 +5725,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Authorization @@ -5743,7 +5743,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5780,7 +5780,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Return Types, Responses @@ -5851,7 +5851,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Authorization @@ -5869,7 +5869,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -5906,7 +5906,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Return Types, Responses @@ -5977,7 +5977,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Authorization @@ -5995,7 +5995,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6032,7 +6032,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Return Types, Responses @@ -6103,7 +6103,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Authorization @@ -6121,7 +6121,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6158,7 +6158,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Return Types, Responses @@ -6229,7 +6229,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Authorization @@ -6247,7 +6247,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6284,7 +6284,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -6355,7 +6355,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Authorization @@ -6373,7 +6373,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6410,7 +6410,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -6481,7 +6481,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Authorization @@ -6499,7 +6499,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6544,7 +6544,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Return Types, Responses @@ -6615,7 +6615,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Authorization @@ -6633,7 +6633,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6670,7 +6670,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Return Types, Responses @@ -6741,7 +6741,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Authorization @@ -6759,7 +6759,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6796,7 +6796,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Return Types, Responses @@ -6867,7 +6867,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Authorization @@ -6885,7 +6885,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -6922,7 +6922,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Return Types, Responses @@ -6993,7 +6993,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Authorization @@ -7011,7 +7011,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7048,7 +7048,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Return Types, Responses @@ -7119,7 +7119,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Authorization @@ -7137,7 +7137,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7174,7 +7174,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Return Types, Responses @@ -7245,7 +7245,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Authorization @@ -7263,7 +7263,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7300,7 +7300,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Return Types, Responses @@ -7371,7 +7371,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Authorization @@ -7389,7 +7389,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7426,7 +7426,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Return Types, Responses @@ -7497,7 +7497,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Authorization @@ -7515,7 +7515,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7552,7 +7552,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Return Types, Responses @@ -7623,7 +7623,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Authorization @@ -7641,7 +7641,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7678,7 +7678,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Return Types, Responses @@ -7749,7 +7749,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Authorization @@ -7767,7 +7767,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7804,7 +7804,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Return Types, Responses @@ -7875,7 +7875,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Authorization @@ -7893,7 +7893,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -7930,7 +7930,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Return Types, Responses @@ -8001,7 +8001,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Authorization @@ -8019,7 +8019,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8056,7 +8056,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Return Types, Responses @@ -8127,7 +8127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Authorization @@ -8145,7 +8145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8182,7 +8182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Return Types, Responses @@ -8253,7 +8253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Authorization @@ -8271,7 +8271,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8308,7 +8308,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Return Types, Responses @@ -8379,7 +8379,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Authorization @@ -8397,7 +8397,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8434,7 +8434,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Return Types, Responses @@ -8505,7 +8505,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Authorization @@ -8523,7 +8523,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8560,7 +8560,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Return Types, Responses @@ -8631,7 +8631,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Authorization @@ -8649,7 +8649,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8686,7 +8686,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Return Types, Responses @@ -8757,7 +8757,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Authorization @@ -8775,7 +8775,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8814,7 +8814,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Return Types, Responses @@ -8885,7 +8885,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Authorization @@ -8903,7 +8903,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -8940,7 +8940,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Return Types, Responses @@ -9011,7 +9011,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Authorization @@ -9029,7 +9029,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9066,7 +9066,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Return Types, Responses @@ -9137,7 +9137,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Authorization @@ -9155,7 +9155,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9194,7 +9194,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Return Types, Responses @@ -9265,7 +9265,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Authorization @@ -9283,7 +9283,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9320,7 +9320,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Return Types, Responses @@ -9391,7 +9391,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Authorization @@ -9409,7 +9409,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9446,7 +9446,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Return Types, Responses @@ -9517,7 +9517,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Authorization @@ -9535,7 +9535,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9572,7 +9572,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Return Types, Responses @@ -9643,7 +9643,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Authorization @@ -9661,7 +9661,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9698,7 +9698,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Return Types, Responses @@ -9769,7 +9769,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Authorization @@ -9787,7 +9787,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9824,7 +9824,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Return Types, Responses @@ -9895,7 +9895,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Authorization @@ -9913,7 +9913,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -9950,7 +9950,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Return Types, Responses @@ -10021,7 +10021,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Authorization @@ -10039,7 +10039,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10076,7 +10076,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Return Types, Responses @@ -10147,7 +10147,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Authorization @@ -10165,7 +10165,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10202,7 +10202,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Return Types, Responses @@ -10273,7 +10273,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Authorization @@ -10291,7 +10291,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10328,7 +10328,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Return Types, Responses @@ -10399,7 +10399,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Authorization @@ -10417,7 +10417,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10456,7 +10456,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Return Types, Responses @@ -10527,7 +10527,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Authorization @@ -10545,7 +10545,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10582,7 +10582,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Return Types, Responses @@ -10653,7 +10653,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Authorization @@ -10671,7 +10671,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10708,7 +10708,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Return Types, Responses @@ -10779,7 +10779,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Authorization @@ -10797,7 +10797,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10834,7 +10834,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Return Types, Responses @@ -10905,7 +10905,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Authorization @@ -10923,7 +10923,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -10960,7 +10960,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Return Types, Responses @@ -11031,7 +11031,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Authorization @@ -11049,7 +11049,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import path_post_api -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -11086,7 +11086,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Return Types, Responses @@ -11157,7 +11157,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PatternApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PatternApi.md index 51a20cd2558..c3814232df0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PatternApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PatternApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import pattern_api -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import pattern_api -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -182,7 +182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Return Types, Responses @@ -253,7 +253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PropertiesApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PropertiesApi.md index 20ede7002cc..4b431bebc6a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PropertiesApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/PropertiesApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import properties_api -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import properties_api -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -182,7 +182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Return Types, Responses @@ -253,7 +253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RefApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RefApi.md index 7752ac61c61..f99034c7238 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RefApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RefApi.md @@ -31,7 +31,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -68,7 +68,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Return Types, Responses @@ -139,7 +139,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Authorization @@ -157,7 +157,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -196,7 +196,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Return Types, Responses @@ -267,7 +267,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Authorization @@ -285,7 +285,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -322,7 +322,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Return Types, Responses @@ -393,7 +393,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Authorization @@ -411,7 +411,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -448,7 +448,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Return Types, Responses @@ -519,7 +519,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Authorization @@ -537,7 +537,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -576,7 +576,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Return Types, Responses @@ -647,7 +647,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Authorization @@ -665,7 +665,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -702,7 +702,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Return Types, Responses @@ -773,7 +773,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Authorization @@ -791,7 +791,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -828,7 +828,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Return Types, Responses @@ -899,7 +899,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Authorization @@ -917,7 +917,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import ref_api -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -954,7 +954,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Return Types, Responses @@ -1025,7 +1025,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RequiredApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RequiredApi.md index 9567247b593..23a880b1275 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RequiredApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/RequiredApi.md @@ -23,7 +23,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import required_api -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -60,7 +60,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Return Types, Responses @@ -131,7 +131,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Authorization @@ -149,7 +149,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import required_api -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -186,7 +186,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Return Types, Responses @@ -257,7 +257,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Authorization @@ -275,7 +275,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import required_api -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -312,7 +312,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Return Types, Responses @@ -383,7 +383,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Authorization @@ -401,7 +401,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import required_api -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -438,7 +438,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Return Types, Responses @@ -509,7 +509,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ResponseContentContentTypeSchemaApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ResponseContentContentTypeSchemaApi.md index 92b70c9f747..d2348632a72 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ResponseContentContentTypeSchemaApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/ResponseContentContentTypeSchemaApi.md @@ -141,7 +141,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | +[**AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md) | | ### Authorization @@ -198,7 +198,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesAreAllowedByDefault**](../../models/AdditionalpropertiesAreAllowedByDefault.md) | | +[**AdditionalpropertiesAreAllowedByDefault**](../../components/schema/AdditionalpropertiesAreAllowedByDefault.md) | | ### Authorization @@ -255,7 +255,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesCanExistByItself**](../../models/AdditionalpropertiesCanExistByItself.md) | | +[**AdditionalpropertiesCanExistByItself**](../../components/schema/AdditionalpropertiesCanExistByItself.md) | | ### Authorization @@ -312,7 +312,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AdditionalpropertiesShouldNotLookInApplicators**](../../models/AdditionalpropertiesShouldNotLookInApplicators.md) | | +[**AdditionalpropertiesShouldNotLookInApplicators**](../../components/schema/AdditionalpropertiesShouldNotLookInApplicators.md) | | ### Authorization @@ -369,7 +369,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofCombinedWithAnyofOneof**](../../models/AllofCombinedWithAnyofOneof.md) | | +[**AllofCombinedWithAnyofOneof**](../../components/schema/AllofCombinedWithAnyofOneof.md) | | ### Authorization @@ -426,7 +426,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Allof**](../../models/Allof.md) | | +[**Allof**](../../components/schema/Allof.md) | | ### Authorization @@ -483,7 +483,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofSimpleTypes**](../../models/AllofSimpleTypes.md) | | +[**AllofSimpleTypes**](../../components/schema/AllofSimpleTypes.md) | | ### Authorization @@ -540,7 +540,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithBaseSchema**](../../models/AllofWithBaseSchema.md) | | +[**AllofWithBaseSchema**](../../components/schema/AllofWithBaseSchema.md) | | ### Authorization @@ -597,7 +597,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithOneEmptySchema**](../../models/AllofWithOneEmptySchema.md) | | +[**AllofWithOneEmptySchema**](../../components/schema/AllofWithOneEmptySchema.md) | | ### Authorization @@ -654,7 +654,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheFirstEmptySchema**](../../models/AllofWithTheFirstEmptySchema.md) | | +[**AllofWithTheFirstEmptySchema**](../../components/schema/AllofWithTheFirstEmptySchema.md) | | ### Authorization @@ -711,7 +711,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTheLastEmptySchema**](../../models/AllofWithTheLastEmptySchema.md) | | +[**AllofWithTheLastEmptySchema**](../../components/schema/AllofWithTheLastEmptySchema.md) | | ### Authorization @@ -768,7 +768,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AllofWithTwoEmptySchemas**](../../models/AllofWithTwoEmptySchemas.md) | | +[**AllofWithTwoEmptySchemas**](../../components/schema/AllofWithTwoEmptySchemas.md) | | ### Authorization @@ -825,7 +825,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofComplexTypes**](../../models/AnyofComplexTypes.md) | | +[**AnyofComplexTypes**](../../components/schema/AnyofComplexTypes.md) | | ### Authorization @@ -882,7 +882,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Anyof**](../../models/Anyof.md) | | +[**Anyof**](../../components/schema/Anyof.md) | | ### Authorization @@ -939,7 +939,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithBaseSchema**](../../models/AnyofWithBaseSchema.md) | | +[**AnyofWithBaseSchema**](../../components/schema/AnyofWithBaseSchema.md) | | ### Authorization @@ -996,7 +996,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**AnyofWithOneEmptySchema**](../../models/AnyofWithOneEmptySchema.md) | | +[**AnyofWithOneEmptySchema**](../../components/schema/AnyofWithOneEmptySchema.md) | | ### Authorization @@ -1053,7 +1053,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Authorization @@ -1110,7 +1110,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Authorization @@ -1167,7 +1167,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByInt**](../../models/ByInt.md) | | +[**ByInt**](../../components/schema/ByInt.md) | | ### Authorization @@ -1224,7 +1224,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ByNumber**](../../models/ByNumber.md) | | +[**ByNumber**](../../components/schema/ByNumber.md) | | ### Authorization @@ -1281,7 +1281,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BySmallNumber**](../../models/BySmallNumber.md) | | +[**BySmallNumber**](../../components/schema/BySmallNumber.md) | | ### Authorization @@ -1338,7 +1338,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**DateTimeFormat**](../../models/DateTimeFormat.md) | | +[**DateTimeFormat**](../../components/schema/DateTimeFormat.md) | | ### Authorization @@ -1395,7 +1395,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EmailFormat**](../../models/EmailFormat.md) | | +[**EmailFormat**](../../components/schema/EmailFormat.md) | | ### Authorization @@ -1452,7 +1452,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith0DoesNotMatchFalse**](../../models/EnumWith0DoesNotMatchFalse.md) | | +[**EnumWith0DoesNotMatchFalse**](../../components/schema/EnumWith0DoesNotMatchFalse.md) | | ### Authorization @@ -1509,7 +1509,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWith1DoesNotMatchTrue**](../../models/EnumWith1DoesNotMatchTrue.md) | | +[**EnumWith1DoesNotMatchTrue**](../../components/schema/EnumWith1DoesNotMatchTrue.md) | | ### Authorization @@ -1566,7 +1566,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithEscapedCharacters**](../../models/EnumWithEscapedCharacters.md) | | +[**EnumWithEscapedCharacters**](../../components/schema/EnumWithEscapedCharacters.md) | | ### Authorization @@ -1623,7 +1623,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithFalseDoesNotMatch0**](../../models/EnumWithFalseDoesNotMatch0.md) | | +[**EnumWithFalseDoesNotMatch0**](../../components/schema/EnumWithFalseDoesNotMatch0.md) | | ### Authorization @@ -1680,7 +1680,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumWithTrueDoesNotMatch1**](../../models/EnumWithTrueDoesNotMatch1.md) | | +[**EnumWithTrueDoesNotMatch1**](../../components/schema/EnumWithTrueDoesNotMatch1.md) | | ### Authorization @@ -1737,7 +1737,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**EnumsInProperties**](../../models/EnumsInProperties.md) | | +[**EnumsInProperties**](../../components/schema/EnumsInProperties.md) | | ### Authorization @@ -1794,7 +1794,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ForbiddenProperty**](../../models/ForbiddenProperty.md) | | +[**ForbiddenProperty**](../../components/schema/ForbiddenProperty.md) | | ### Authorization @@ -1851,7 +1851,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**HostnameFormat**](../../models/HostnameFormat.md) | | +[**HostnameFormat**](../../components/schema/HostnameFormat.md) | | ### Authorization @@ -1908,7 +1908,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Authorization @@ -1965,7 +1965,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | +[**InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md) | | ### Authorization @@ -2022,7 +2022,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**InvalidStringValueForDefault**](../../models/InvalidStringValueForDefault.md) | | +[**InvalidStringValueForDefault**](../../components/schema/InvalidStringValueForDefault.md) | | ### Authorization @@ -2079,7 +2079,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv4Format**](../../models/Ipv4Format.md) | | +[**Ipv4Format**](../../components/schema/Ipv4Format.md) | | ### Authorization @@ -2136,7 +2136,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Ipv6Format**](../../models/Ipv6Format.md) | | +[**Ipv6Format**](../../components/schema/Ipv6Format.md) | | ### Authorization @@ -2193,7 +2193,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**JsonPointerFormat**](../../models/JsonPointerFormat.md) | | +[**JsonPointerFormat**](../../components/schema/JsonPointerFormat.md) | | ### Authorization @@ -2250,7 +2250,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidation**](../../models/MaximumValidation.md) | | +[**MaximumValidation**](../../components/schema/MaximumValidation.md) | | ### Authorization @@ -2307,7 +2307,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaximumValidationWithUnsignedInteger**](../../models/MaximumValidationWithUnsignedInteger.md) | | +[**MaximumValidationWithUnsignedInteger**](../../components/schema/MaximumValidationWithUnsignedInteger.md) | | ### Authorization @@ -2364,7 +2364,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxitemsValidation**](../../models/MaxitemsValidation.md) | | +[**MaxitemsValidation**](../../components/schema/MaxitemsValidation.md) | | ### Authorization @@ -2421,7 +2421,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxlengthValidation**](../../models/MaxlengthValidation.md) | | +[**MaxlengthValidation**](../../components/schema/MaxlengthValidation.md) | | ### Authorization @@ -2478,7 +2478,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Maxproperties0MeansTheObjectIsEmpty**](../../models/Maxproperties0MeansTheObjectIsEmpty.md) | | +[**Maxproperties0MeansTheObjectIsEmpty**](../../components/schema/Maxproperties0MeansTheObjectIsEmpty.md) | | ### Authorization @@ -2535,7 +2535,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MaxpropertiesValidation**](../../models/MaxpropertiesValidation.md) | | +[**MaxpropertiesValidation**](../../components/schema/MaxpropertiesValidation.md) | | ### Authorization @@ -2592,7 +2592,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidation**](../../models/MinimumValidation.md) | | +[**MinimumValidation**](../../components/schema/MinimumValidation.md) | | ### Authorization @@ -2649,7 +2649,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinimumValidationWithSignedInteger**](../../models/MinimumValidationWithSignedInteger.md) | | +[**MinimumValidationWithSignedInteger**](../../components/schema/MinimumValidationWithSignedInteger.md) | | ### Authorization @@ -2706,7 +2706,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinitemsValidation**](../../models/MinitemsValidation.md) | | +[**MinitemsValidation**](../../components/schema/MinitemsValidation.md) | | ### Authorization @@ -2763,7 +2763,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinlengthValidation**](../../models/MinlengthValidation.md) | | +[**MinlengthValidation**](../../components/schema/MinlengthValidation.md) | | ### Authorization @@ -2820,7 +2820,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**MinpropertiesValidation**](../../models/MinpropertiesValidation.md) | | +[**MinpropertiesValidation**](../../components/schema/MinpropertiesValidation.md) | | ### Authorization @@ -2877,7 +2877,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAllofToCheckValidationSemantics**](../../models/NestedAllofToCheckValidationSemantics.md) | | +[**NestedAllofToCheckValidationSemantics**](../../components/schema/NestedAllofToCheckValidationSemantics.md) | | ### Authorization @@ -2934,7 +2934,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedAnyofToCheckValidationSemantics**](../../models/NestedAnyofToCheckValidationSemantics.md) | | +[**NestedAnyofToCheckValidationSemantics**](../../components/schema/NestedAnyofToCheckValidationSemantics.md) | | ### Authorization @@ -2991,7 +2991,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedItems**](../../models/NestedItems.md) | | +[**NestedItems**](../../components/schema/NestedItems.md) | | ### Authorization @@ -3048,7 +3048,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NestedOneofToCheckValidationSemantics**](../../models/NestedOneofToCheckValidationSemantics.md) | | +[**NestedOneofToCheckValidationSemantics**](../../components/schema/NestedOneofToCheckValidationSemantics.md) | | ### Authorization @@ -3105,7 +3105,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NotMoreComplexSchema**](../../models/NotMoreComplexSchema.md) | | +[**NotMoreComplexSchema**](../../components/schema/NotMoreComplexSchema.md) | | ### Authorization @@ -3162,7 +3162,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ModelNot**](../../models/ModelNot.md) | | +[**ModelNot**](../../components/schema/ModelNot.md) | | ### Authorization @@ -3219,7 +3219,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NulCharactersInStrings**](../../models/NulCharactersInStrings.md) | | +[**NulCharactersInStrings**](../../components/schema/NulCharactersInStrings.md) | | ### Authorization @@ -3276,7 +3276,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Authorization @@ -3333,7 +3333,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Authorization @@ -3390,7 +3390,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectPropertiesValidation**](../../models/ObjectPropertiesValidation.md) | | +[**ObjectPropertiesValidation**](../../components/schema/ObjectPropertiesValidation.md) | | ### Authorization @@ -3447,7 +3447,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Authorization @@ -3504,7 +3504,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofComplexTypes**](../../models/OneofComplexTypes.md) | | +[**OneofComplexTypes**](../../components/schema/OneofComplexTypes.md) | | ### Authorization @@ -3561,7 +3561,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Oneof**](../../models/Oneof.md) | | +[**Oneof**](../../components/schema/Oneof.md) | | ### Authorization @@ -3618,7 +3618,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithBaseSchema**](../../models/OneofWithBaseSchema.md) | | +[**OneofWithBaseSchema**](../../components/schema/OneofWithBaseSchema.md) | | ### Authorization @@ -3675,7 +3675,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithEmptySchema**](../../models/OneofWithEmptySchema.md) | | +[**OneofWithEmptySchema**](../../components/schema/OneofWithEmptySchema.md) | | ### Authorization @@ -3732,7 +3732,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**OneofWithRequired**](../../models/OneofWithRequired.md) | | +[**OneofWithRequired**](../../components/schema/OneofWithRequired.md) | | ### Authorization @@ -3789,7 +3789,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternIsNotAnchored**](../../models/PatternIsNotAnchored.md) | | +[**PatternIsNotAnchored**](../../components/schema/PatternIsNotAnchored.md) | | ### Authorization @@ -3846,7 +3846,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PatternValidation**](../../models/PatternValidation.md) | | +[**PatternValidation**](../../components/schema/PatternValidation.md) | | ### Authorization @@ -3903,7 +3903,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertiesWithEscapedCharacters**](../../models/PropertiesWithEscapedCharacters.md) | | +[**PropertiesWithEscapedCharacters**](../../components/schema/PropertiesWithEscapedCharacters.md) | | ### Authorization @@ -3960,7 +3960,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**PropertyNamedRefThatIsNotAReference**](../../models/PropertyNamedRefThatIsNotAReference.md) | | +[**PropertyNamedRefThatIsNotAReference**](../../components/schema/PropertyNamedRefThatIsNotAReference.md) | | ### Authorization @@ -4017,7 +4017,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAdditionalproperties**](../../models/RefInAdditionalproperties.md) | | +[**RefInAdditionalproperties**](../../components/schema/RefInAdditionalproperties.md) | | ### Authorization @@ -4074,7 +4074,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAllof**](../../models/RefInAllof.md) | | +[**RefInAllof**](../../components/schema/RefInAllof.md) | | ### Authorization @@ -4131,7 +4131,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInAnyof**](../../models/RefInAnyof.md) | | +[**RefInAnyof**](../../components/schema/RefInAnyof.md) | | ### Authorization @@ -4188,7 +4188,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInItems**](../../models/RefInItems.md) | | +[**RefInItems**](../../components/schema/RefInItems.md) | | ### Authorization @@ -4245,7 +4245,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInNot**](../../models/RefInNot.md) | | +[**RefInNot**](../../components/schema/RefInNot.md) | | ### Authorization @@ -4302,7 +4302,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInOneof**](../../models/RefInOneof.md) | | +[**RefInOneof**](../../components/schema/RefInOneof.md) | | ### Authorization @@ -4359,7 +4359,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RefInProperty**](../../models/RefInProperty.md) | | +[**RefInProperty**](../../components/schema/RefInProperty.md) | | ### Authorization @@ -4416,7 +4416,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredDefaultValidation**](../../models/RequiredDefaultValidation.md) | | +[**RequiredDefaultValidation**](../../components/schema/RequiredDefaultValidation.md) | | ### Authorization @@ -4473,7 +4473,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredValidation**](../../models/RequiredValidation.md) | | +[**RequiredValidation**](../../components/schema/RequiredValidation.md) | | ### Authorization @@ -4530,7 +4530,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEmptyArray**](../../models/RequiredWithEmptyArray.md) | | +[**RequiredWithEmptyArray**](../../components/schema/RequiredWithEmptyArray.md) | | ### Authorization @@ -4587,7 +4587,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**RequiredWithEscapedCharacters**](../../models/RequiredWithEscapedCharacters.md) | | +[**RequiredWithEscapedCharacters**](../../components/schema/RequiredWithEscapedCharacters.md) | | ### Authorization @@ -4644,7 +4644,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**SimpleEnumValidation**](../../models/SimpleEnumValidation.md) | | +[**SimpleEnumValidation**](../../components/schema/SimpleEnumValidation.md) | | ### Authorization @@ -4701,7 +4701,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Authorization @@ -4758,7 +4758,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | +[**TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md) | | ### Authorization @@ -4815,7 +4815,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Authorization @@ -4872,7 +4872,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Authorization @@ -4929,7 +4929,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriFormat**](../../models/UriFormat.md) | | +[**UriFormat**](../../components/schema/UriFormat.md) | | ### Authorization @@ -4986,7 +4986,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriReferenceFormat**](../../models/UriReferenceFormat.md) | | +[**UriReferenceFormat**](../../components/schema/UriReferenceFormat.md) | | ### Authorization @@ -5043,7 +5043,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UriTemplateFormat**](../../models/UriTemplateFormat.md) | | +[**UriTemplateFormat**](../../components/schema/UriTemplateFormat.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/TypeApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/TypeApi.md index 9b9b6ae290b..bf840ae05d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/TypeApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/TypeApi.md @@ -29,7 +29,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -68,7 +68,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Return Types, Responses @@ -139,7 +139,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ArrayTypeMatchesArrays**](../../models/ArrayTypeMatchesArrays.md) | | +[**ArrayTypeMatchesArrays**](../../components/schema/ArrayTypeMatchesArrays.md) | | ### Authorization @@ -157,7 +157,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -194,7 +194,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Return Types, Responses @@ -265,7 +265,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**BooleanTypeMatchesBooleans**](../../models/BooleanTypeMatchesBooleans.md) | | +[**BooleanTypeMatchesBooleans**](../../components/schema/BooleanTypeMatchesBooleans.md) | | ### Authorization @@ -283,7 +283,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -320,7 +320,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Return Types, Responses @@ -391,7 +391,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**IntegerTypeMatchesIntegers**](../../models/IntegerTypeMatchesIntegers.md) | | +[**IntegerTypeMatchesIntegers**](../../components/schema/IntegerTypeMatchesIntegers.md) | | ### Authorization @@ -409,7 +409,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -446,7 +446,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Return Types, Responses @@ -517,7 +517,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NullTypeMatchesOnlyTheNullObject**](../../models/NullTypeMatchesOnlyTheNullObject.md) | | +[**NullTypeMatchesOnlyTheNullObject**](../../components/schema/NullTypeMatchesOnlyTheNullObject.md) | | ### Authorization @@ -535,7 +535,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -572,7 +572,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Return Types, Responses @@ -643,7 +643,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**NumberTypeMatchesNumbers**](../../models/NumberTypeMatchesNumbers.md) | | +[**NumberTypeMatchesNumbers**](../../components/schema/NumberTypeMatchesNumbers.md) | | ### Authorization @@ -661,7 +661,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -698,7 +698,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Return Types, Responses @@ -769,7 +769,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**ObjectTypeMatchesObjects**](../../models/ObjectTypeMatchesObjects.md) | | +[**ObjectTypeMatchesObjects**](../../components/schema/ObjectTypeMatchesObjects.md) | | ### Authorization @@ -787,7 +787,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import type_api -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -824,7 +824,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Return Types, Responses @@ -895,7 +895,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**StringTypeMatchesStrings**](../../models/StringTypeMatchesStrings.md) | | +[**StringTypeMatchesStrings**](../../components/schema/StringTypeMatchesStrings.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/UniqueItemsApi.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/UniqueItemsApi.md index aa058c1b047..c9258363179 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/UniqueItemsApi.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/apis/tags/UniqueItemsApi.md @@ -19,7 +19,7 @@ Method | HTTP request | Description ```python import unit_test_api from unit_test_api.apis.tags import unique_items_api -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -56,7 +56,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Return Types, Responses @@ -127,7 +127,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsFalseValidation**](../../models/UniqueitemsFalseValidation.md) | | +[**UniqueitemsFalseValidation**](../../components/schema/UniqueitemsFalseValidation.md) | | ### Authorization @@ -145,7 +145,7 @@ No authorization required ```python import unit_test_api from unit_test_api.apis.tags import unique_items_api -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from pprint import pprint # Defining the host is optional and defaults to https://someserver.com/v1 # See configuration.py for a list of all supported configuration parameters. @@ -182,7 +182,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Return Types, Responses @@ -253,7 +253,7 @@ headers | Unset | headers were not defined | # response_for_200.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**UniqueitemsValidation**](../../models/UniqueitemsValidation.md) | | +[**UniqueitemsValidation**](../../components/schema/UniqueitemsValidation.md) | | ### Authorization diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md similarity index 75% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md index e32452e5c8b..e7095bcf7e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md @@ -1,4 +1,4 @@ -# unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate +# unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **bar** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] **any_string_name** | bool, | BoolClass, | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesAreAllowedByDefault.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesAreAllowedByDefault.md similarity index 82% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesAreAllowedByDefault.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesAreAllowedByDefault.md index 7548452e43d..6a1658a5d0e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesAreAllowedByDefault.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesAreAllowedByDefault.md @@ -1,4 +1,4 @@ -# unit_test_api.model.additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault +# unit_test_api.components.schema.additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **bar** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesCanExistByItself.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesCanExistByItself.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesCanExistByItself.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesCanExistByItself.md index 09f1d02d8d2..8b859853dff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesCanExistByItself.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesCanExistByItself.md @@ -1,4 +1,4 @@ -# unit_test_api.model.additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself +# unit_test_api.components.schema.additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | bool, | BoolClass, | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesShouldNotLookInApplicators.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesShouldNotLookInApplicators.md similarity index 87% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesShouldNotLookInApplicators.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesShouldNotLookInApplicators.md index fa1430a42e9..41bf1790bb5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AdditionalpropertiesShouldNotLookInApplicators.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AdditionalpropertiesShouldNotLookInApplicators.md @@ -1,4 +1,4 @@ -# unit_test_api.model.additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators +# unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -29,5 +29,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Allof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Allof.md similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/Allof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Allof.md index db9cd5c7207..d360a3f2ab9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Allof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Allof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof.Allof +# unit_test_api.components.schema.allof.Allof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -38,5 +38,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | str, | str, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofCombinedWithAnyofOneof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofCombinedWithAnyofOneof.md similarity index 91% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofCombinedWithAnyofOneof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofCombinedWithAnyofOneof.md index 5b26a94969d..5b3ab2379a6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofCombinedWithAnyofOneof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofCombinedWithAnyofOneof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof +# unit_test_api.components.schema.allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -40,5 +40,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofSimpleTypes.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofSimpleTypes.md similarity index 88% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofSimpleTypes.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofSimpleTypes.md index 75e8863db69..55b8353b4b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofSimpleTypes.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofSimpleTypes.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_simple_types.AllofSimpleTypes +# unit_test_api.components.schema.allof_simple_types.AllofSimpleTypes ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithBaseSchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithBaseSchema.md similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithBaseSchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithBaseSchema.md index e9db83fae8a..6faa616eb37 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithBaseSchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithBaseSchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_with_base_schema.AllofWithBaseSchema +# unit_test_api.components.schema.allof_with_base_schema.AllofWithBaseSchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -44,5 +44,5 @@ Key | Input Type | Accessed Type | Description | Notes **baz** | None, | NoneClass, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithOneEmptySchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithOneEmptySchema.md similarity index 82% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithOneEmptySchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithOneEmptySchema.md index 429e2ac820e..f838cc50a42 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithOneEmptySchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithOneEmptySchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_with_one_empty_schema.AllofWithOneEmptySchema +# unit_test_api.components.schema.allof_with_one_empty_schema.AllofWithOneEmptySchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTheFirstEmptySchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTheFirstEmptySchema.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTheFirstEmptySchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTheFirstEmptySchema.md index bb6fd4199b3..923db446bc6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTheFirstEmptySchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTheFirstEmptySchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema +# unit_test_api.components.schema.allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- decimal.Decimal, int, float, | decimal.Decimal, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTheLastEmptySchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTheLastEmptySchema.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTheLastEmptySchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTheLastEmptySchema.md index 2e40966de71..22eee78069f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTheLastEmptySchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTheLastEmptySchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema +# unit_test_api.components.schema.allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTwoEmptySchemas.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTwoEmptySchemas.md similarity index 87% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTwoEmptySchemas.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTwoEmptySchemas.md index 1bc82005d3d..c263a8d71a5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AllofWithTwoEmptySchemas.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AllofWithTwoEmptySchemas.md @@ -1,4 +1,4 @@ -# unit_test_api.model.allof_with_two_empty_schemas.AllofWithTwoEmptySchemas +# unit_test_api.components.schema.allof_with_two_empty_schemas.AllofWithTwoEmptySchemas ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Anyof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Anyof.md similarity index 86% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/Anyof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Anyof.md index 53747ab915a..5e04a14d12d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Anyof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Anyof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.anyof.Anyof +# unit_test_api.components.schema.anyof.Anyof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofComplexTypes.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofComplexTypes.md similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofComplexTypes.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofComplexTypes.md index 12f091e3c9a..c94e8b73218 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofComplexTypes.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofComplexTypes.md @@ -1,4 +1,4 @@ -# unit_test_api.model.anyof_complex_types.AnyofComplexTypes +# unit_test_api.components.schema.anyof_complex_types.AnyofComplexTypes ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -38,5 +38,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | str, | str, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofWithBaseSchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofWithBaseSchema.md similarity index 86% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofWithBaseSchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofWithBaseSchema.md index ad1b6b4d57f..fc449fcf4f0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofWithBaseSchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofWithBaseSchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.anyof_with_base_schema.AnyofWithBaseSchema +# unit_test_api.components.schema.anyof_with_base_schema.AnyofWithBaseSchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofWithOneEmptySchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofWithOneEmptySchema.md similarity index 85% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofWithOneEmptySchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofWithOneEmptySchema.md index 12c5c930674..63486039755 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/AnyofWithOneEmptySchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/AnyofWithOneEmptySchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.anyof_with_one_empty_schema.AnyofWithOneEmptySchema +# unit_test_api.components.schema.anyof_with_one_empty_schema.AnyofWithOneEmptySchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ArrayTypeMatchesArrays.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ArrayTypeMatchesArrays.md similarity index 68% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/ArrayTypeMatchesArrays.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ArrayTypeMatchesArrays.md index ea887dfa1be..f52091e7de9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ArrayTypeMatchesArrays.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ArrayTypeMatchesArrays.md @@ -1,4 +1,4 @@ -# unit_test_api.model.array_type_matches_arrays.ArrayTypeMatchesArrays +# unit_test_api.components.schema.array_type_matches_arrays.ArrayTypeMatchesArrays ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BooleanTypeMatchesBooleans.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BooleanTypeMatchesBooleans.md new file mode 100644 index 00000000000..eef13814caf --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BooleanTypeMatchesBooleans.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.boolean_type_matches_booleans.BooleanTypeMatchesBooleans + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +bool, | BoolClass, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ByInt.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ByInt.md similarity index 62% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/ByInt.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ByInt.md index 7c7c706c1a8..ea9a424896d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ByInt.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ByInt.md @@ -1,9 +1,9 @@ -# unit_test_api.model.by_int.ByInt +# unit_test_api.components.schema.by_int.ByInt ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ByNumber.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ByNumber.md similarity index 62% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/ByNumber.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ByNumber.md index 4f58cada0e6..96d29249f95 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ByNumber.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ByNumber.md @@ -1,9 +1,9 @@ -# unit_test_api.model.by_number.ByNumber +# unit_test_api.components.schema.by_number.ByNumber ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/BySmallNumber.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BySmallNumber.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/BySmallNumber.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BySmallNumber.md index 7b61298957f..040d911fda9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/BySmallNumber.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/BySmallNumber.md @@ -1,9 +1,9 @@ -# unit_test_api.model.by_small_number.BySmallNumber +# unit_test_api.components.schema.by_small_number.BySmallNumber ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/DateTimeFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/DateTimeFormat.md similarity index 63% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/DateTimeFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/DateTimeFormat.md index 4dffa18e51c..202b11aa29c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/DateTimeFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/DateTimeFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.date_time_format.DateTimeFormat +# unit_test_api.components.schema.date_time_format.DateTimeFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | value must conform to RFC-3339 date-time -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EmailFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EmailFormat.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/EmailFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EmailFormat.md index 1a2bb153a20..7bbe5204e11 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EmailFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EmailFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.email_format.EmailFormat +# unit_test_api.components.schema.email_format.EmailFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith0DoesNotMatchFalse.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith0DoesNotMatchFalse.md new file mode 100644 index 00000000000..7eed80851cb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith0DoesNotMatchFalse.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, float, | decimal.Decimal, | | must be one of [0, ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith1DoesNotMatchTrue.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith1DoesNotMatchTrue.md new file mode 100644 index 00000000000..43d960a1c07 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWith1DoesNotMatchTrue.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, float, | decimal.Decimal, | | must be one of [1, ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithEscapedCharacters.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithEscapedCharacters.md new file mode 100644 index 00000000000..52923b94760 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithEscapedCharacters.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.enum_with_escaped_characters.EnumWithEscapedCharacters + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | must be one of ["foo\nbar", "foo\rbar", ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithFalseDoesNotMatch0.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithFalseDoesNotMatch0.md new file mode 100644 index 00000000000..d21c53c6c4d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithFalseDoesNotMatch0.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0 + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +bool, | BoolClass, | | must be one of [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) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithTrueDoesNotMatch1.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithTrueDoesNotMatch1.md new file mode 100644 index 00000000000..a281b0230e7 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumWithTrueDoesNotMatch1.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1 + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +bool, | BoolClass, | | must be one of [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) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumsInProperties.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumsInProperties.md similarity index 76% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumsInProperties.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumsInProperties.md index 0e08a4a23d2..c1000ff7c38 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumsInProperties.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/EnumsInProperties.md @@ -1,4 +1,4 @@ -# unit_test_api.model.enums_in_properties.EnumsInProperties +# unit_test_api.components.schema.enums_in_properties.EnumsInProperties ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | str, | str, | | [optional] must be one of ["foo", ] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ForbiddenProperty.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ForbiddenProperty.md similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/ForbiddenProperty.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ForbiddenProperty.md index 3fc2175e9b0..76fbff25e7b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ForbiddenProperty.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ForbiddenProperty.md @@ -1,4 +1,4 @@ -# unit_test_api.model.forbidden_property.ForbiddenProperty +# unit_test_api.components.schema.forbidden_property.ForbiddenProperty ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -31,5 +31,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/HostnameFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/HostnameFormat.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/HostnameFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/HostnameFormat.md index 5efd27d124f..d9059d9cb47 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/HostnameFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/HostnameFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.hostname_format.HostnameFormat +# unit_test_api.components.schema.hostname_format.HostnameFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/IntegerTypeMatchesIntegers.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/IntegerTypeMatchesIntegers.md new file mode 100644 index 00000000000..428edccdbfe --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/IntegerTypeMatchesIntegers.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.integer_type_matches_integers.IntegerTypeMatchesIntegers + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md new file mode 100644 index 00000000000..608f2525fdb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, | decimal.Decimal, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidStringValueForDefault.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidStringValueForDefault.md similarity index 77% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidStringValueForDefault.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidStringValueForDefault.md index 296bfd73517..91fc902c226 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidStringValueForDefault.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/InvalidStringValueForDefault.md @@ -1,4 +1,4 @@ -# unit_test_api.model.invalid_string_value_for_default.InvalidStringValueForDefault +# unit_test_api.components.schema.invalid_string_value_for_default.InvalidStringValueForDefault ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **bar** | str, | str, | | [optional] if omitted the server will use the default value of "bad" **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Ipv4Format.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Ipv4Format.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/Ipv4Format.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Ipv4Format.md index 67ab85c9349..0b67e0e2003 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Ipv4Format.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Ipv4Format.md @@ -1,9 +1,9 @@ -# unit_test_api.model.ipv4_format.Ipv4Format +# unit_test_api.components.schema.ipv4_format.Ipv4Format ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Ipv6Format.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Ipv6Format.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/Ipv6Format.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Ipv6Format.md index e2086bee89b..0ba6cb2d7c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Ipv6Format.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Ipv6Format.md @@ -1,9 +1,9 @@ -# unit_test_api.model.ipv6_format.Ipv6Format +# unit_test_api.components.schema.ipv6_format.Ipv6Format ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/JsonPointerFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/JsonPointerFormat.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/JsonPointerFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/JsonPointerFormat.md index 40675571904..93ef093de4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/JsonPointerFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/JsonPointerFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.json_pointer_format.JsonPointerFormat +# unit_test_api.components.schema.json_pointer_format.JsonPointerFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxpropertiesValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaximumValidation.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxpropertiesValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaximumValidation.md index e68e3d87adc..6224f00d89f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxpropertiesValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaximumValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.maxproperties_validation.MaxpropertiesValidation +# unit_test_api.components.schema.maximum_validation.MaximumValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidationWithUnsignedInteger.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaximumValidationWithUnsignedInteger.md similarity index 56% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidationWithUnsignedInteger.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaximumValidationWithUnsignedInteger.md index edc23e16bca..5bd5b72ccaa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidationWithUnsignedInteger.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaximumValidationWithUnsignedInteger.md @@ -1,9 +1,9 @@ -# unit_test_api.model.maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger +# unit_test_api.components.schema.maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxitemsValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxitemsValidation.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxitemsValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxitemsValidation.md index 0aa20c0e8c9..a1e7d33ef62 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxitemsValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxitemsValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.maxitems_validation.MaxitemsValidation +# unit_test_api.components.schema.maxitems_validation.MaxitemsValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxlengthValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxlengthValidation.md similarity index 59% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxlengthValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxlengthValidation.md index 030db5c34fe..89c99a8a9d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaxlengthValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxlengthValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.maxlength_validation.MaxlengthValidation +# unit_test_api.components.schema.maxlength_validation.MaxlengthValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Maxproperties0MeansTheObjectIsEmpty.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Maxproperties0MeansTheObjectIsEmpty.md similarity index 56% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/Maxproperties0MeansTheObjectIsEmpty.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Maxproperties0MeansTheObjectIsEmpty.md index 1bbc951f004..a6f9aa50909 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Maxproperties0MeansTheObjectIsEmpty.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Maxproperties0MeansTheObjectIsEmpty.md @@ -1,9 +1,9 @@ -# unit_test_api.model.maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty +# unit_test_api.components.schema.maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxpropertiesValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxpropertiesValidation.md new file mode 100644 index 00000000000..04389a7a91f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MaxpropertiesValidation.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.maxproperties_validation.MaxpropertiesValidation + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinpropertiesValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinimumValidation.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinpropertiesValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinimumValidation.md index b5ab4b4fcb7..6c0d967187c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinpropertiesValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinimumValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.minproperties_validation.MinpropertiesValidation +# unit_test_api.components.schema.minimum_validation.MinimumValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidationWithSignedInteger.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinimumValidationWithSignedInteger.md similarity index 56% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidationWithSignedInteger.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinimumValidationWithSignedInteger.md index 59d2cb9edfd..d9a98b939be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidationWithSignedInteger.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinimumValidationWithSignedInteger.md @@ -1,9 +1,9 @@ -# unit_test_api.model.minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger +# unit_test_api.components.schema.minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinitemsValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinitemsValidation.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinitemsValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinitemsValidation.md index 48bbb8e3094..16228195cff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinitemsValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinitemsValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.minitems_validation.MinitemsValidation +# unit_test_api.components.schema.minitems_validation.MinitemsValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinlengthValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinlengthValidation.md similarity index 59% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinlengthValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinlengthValidation.md index 43ec10fc791..34450a31dc0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinlengthValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinlengthValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.minlength_validation.MinlengthValidation +# unit_test_api.components.schema.minlength_validation.MinlengthValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinpropertiesValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinpropertiesValidation.md new file mode 100644 index 00000000000..0459b73cd3b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/MinpropertiesValidation.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.minproperties_validation.MinpropertiesValidation + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ModelNot.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ModelNot.md similarity index 78% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/ModelNot.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ModelNot.md index e7f25eaa6e1..6948ee29b1c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ModelNot.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ModelNot.md @@ -1,4 +1,4 @@ -# unit_test_api.model.model_not.ModelNot +# unit_test_api.components.schema.model_not.ModelNot ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -18,5 +18,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- decimal.Decimal, int, | decimal.Decimal, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedAllofToCheckValidationSemantics.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedAllofToCheckValidationSemantics.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedAllofToCheckValidationSemantics.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedAllofToCheckValidationSemantics.md index c760ab62bf0..8a9ff5cdbdc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedAllofToCheckValidationSemantics.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedAllofToCheckValidationSemantics.md @@ -1,4 +1,4 @@ -# unit_test_api.model.nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics +# unit_test_api.components.schema.nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -31,5 +31,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedAnyofToCheckValidationSemantics.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedAnyofToCheckValidationSemantics.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedAnyofToCheckValidationSemantics.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedAnyofToCheckValidationSemantics.md index 747506abdca..cc0bd4eb2d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedAnyofToCheckValidationSemantics.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedAnyofToCheckValidationSemantics.md @@ -1,4 +1,4 @@ -# unit_test_api.model.nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics +# unit_test_api.components.schema.nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -31,5 +31,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedItems.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedItems.md similarity index 86% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedItems.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedItems.md index 2247f45f60d..655d37b45c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedItems.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedItems.md @@ -1,4 +1,4 @@ -# unit_test_api.model.nested_items.NestedItems +# unit_test_api.components.schema.nested_items.NestedItems ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -46,5 +46,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- items | decimal.Decimal, int, float, | decimal.Decimal, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedOneofToCheckValidationSemantics.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedOneofToCheckValidationSemantics.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedOneofToCheckValidationSemantics.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedOneofToCheckValidationSemantics.md index a225e1f6767..48395063cba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NestedOneofToCheckValidationSemantics.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NestedOneofToCheckValidationSemantics.md @@ -1,4 +1,4 @@ -# unit_test_api.model.nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics +# unit_test_api.components.schema.nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -31,5 +31,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- None, | NoneClass, | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NotMoreComplexSchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NotMoreComplexSchema.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/NotMoreComplexSchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NotMoreComplexSchema.md index 45e198b3770..f170657c592 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NotMoreComplexSchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NotMoreComplexSchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.not_more_complex_schema.NotMoreComplexSchema +# unit_test_api.components.schema.not_more_complex_schema.NotMoreComplexSchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -24,5 +24,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NulCharactersInStrings.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NulCharactersInStrings.md new file mode 100644 index 00000000000..52e6b332c5b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NulCharactersInStrings.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.nul_characters_in_strings.NulCharactersInStrings + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | must be one of ["hello\x00there", ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NullTypeMatchesOnlyTheNullObject.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NullTypeMatchesOnlyTheNullObject.md new file mode 100644 index 00000000000..3f060d5ab64 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NullTypeMatchesOnlyTheNullObject.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +None, | NoneClass, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NumberTypeMatchesNumbers.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NumberTypeMatchesNumbers.md new file mode 100644 index 00000000000..6871b88fe10 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/NumberTypeMatchesNumbers.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.number_type_matches_numbers.NumberTypeMatchesNumbers + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, float, | decimal.Decimal, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectPropertiesValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectPropertiesValidation.md similarity index 78% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectPropertiesValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectPropertiesValidation.md index 9d145f83123..faa58cc9bfd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectPropertiesValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectPropertiesValidation.md @@ -1,4 +1,4 @@ -# unit_test_api.model.object_properties_validation.ObjectPropertiesValidation +# unit_test_api.components.schema.object_properties_validation.ObjectPropertiesValidation ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **bar** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectTypeMatchesObjects.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectTypeMatchesObjects.md new file mode 100644 index 00000000000..1b171398d1b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/ObjectTypeMatchesObjects.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.object_type_matches_objects.ObjectTypeMatchesObjects + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +dict, frozendict.frozendict, | frozendict.frozendict, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Oneof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Oneof.md similarity index 86% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/Oneof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Oneof.md index 0c056074c41..35375c9c7f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/Oneof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/Oneof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.oneof.Oneof +# unit_test_api.components.schema.oneof.Oneof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofComplexTypes.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofComplexTypes.md similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofComplexTypes.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofComplexTypes.md index 57278d6a7eb..213485c0078 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofComplexTypes.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofComplexTypes.md @@ -1,4 +1,4 @@ -# unit_test_api.model.oneof_complex_types.OneofComplexTypes +# unit_test_api.components.schema.oneof_complex_types.OneofComplexTypes ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -38,5 +38,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | str, | str, | | **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithBaseSchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithBaseSchema.md similarity index 86% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithBaseSchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithBaseSchema.md index 20776594f4e..fad093b1574 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithBaseSchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithBaseSchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.oneof_with_base_schema.OneofWithBaseSchema +# unit_test_api.components.schema.oneof_with_base_schema.OneofWithBaseSchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithEmptySchema.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithEmptySchema.md similarity index 85% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithEmptySchema.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithEmptySchema.md index f420f5c61de..6cd9eada637 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithEmptySchema.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithEmptySchema.md @@ -1,4 +1,4 @@ -# unit_test_api.model.oneof_with_empty_schema.OneofWithEmptySchema +# unit_test_api.components.schema.oneof_with_empty_schema.OneofWithEmptySchema ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithRequired.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithRequired.md similarity index 87% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithRequired.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithRequired.md index e9ba38802cf..0f11f78c7a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/OneofWithRequired.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/OneofWithRequired.md @@ -1,4 +1,4 @@ -# unit_test_api.model.oneof_with_required.OneofWithRequired +# unit_test_api.components.schema.oneof_with_required.OneofWithRequired ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -26,5 +26,5 @@ Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PatternIsNotAnchored.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PatternIsNotAnchored.md similarity index 59% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/PatternIsNotAnchored.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PatternIsNotAnchored.md index e9b758d826c..cb05508fb9b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PatternIsNotAnchored.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PatternIsNotAnchored.md @@ -1,9 +1,9 @@ -# unit_test_api.model.pattern_is_not_anchored.PatternIsNotAnchored +# unit_test_api.components.schema.pattern_is_not_anchored.PatternIsNotAnchored ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PatternValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PatternValidation.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/PatternValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PatternValidation.md index a2c7e75f30b..f84b9f457a6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PatternValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PatternValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.pattern_validation.PatternValidation +# unit_test_api.components.schema.pattern_validation.PatternValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PropertiesWithEscapedCharacters.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PropertiesWithEscapedCharacters.md similarity index 82% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/PropertiesWithEscapedCharacters.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PropertiesWithEscapedCharacters.md index 7505eb4e1ce..18598d0666c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PropertiesWithEscapedCharacters.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PropertiesWithEscapedCharacters.md @@ -1,4 +1,4 @@ -# unit_test_api.model.properties_with_escaped_characters.PropertiesWithEscapedCharacters +# unit_test_api.components.schema.properties_with_escaped_characters.PropertiesWithEscapedCharacters ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -16,5 +16,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo\fbar** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PropertyNamedRefThatIsNotAReference.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PropertyNamedRefThatIsNotAReference.md similarity index 75% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/PropertyNamedRefThatIsNotAReference.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PropertyNamedRefThatIsNotAReference.md index 4d0ec592570..22e02378553 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/PropertyNamedRefThatIsNotAReference.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/PropertyNamedRefThatIsNotAReference.md @@ -1,4 +1,4 @@ -# unit_test_api.model.property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference +# unit_test_api.components.schema.property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **$ref** | str, | str, | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAdditionalproperties.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAdditionalproperties.md similarity index 69% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAdditionalproperties.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAdditionalproperties.md index 15d5366ac51..f4f778055ed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAdditionalproperties.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAdditionalproperties.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_additionalproperties.RefInAdditionalproperties +# unit_test_api.components.schema.ref_in_additionalproperties.RefInAdditionalproperties ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Key | Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- | ------------- **any_string_name** | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAllof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAllof.md similarity index 77% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAllof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAllof.md index 12158f9e282..90534fa67fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAllof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAllof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_allof.RefInAllof +# unit_test_api.components.schema.ref_in_allof.RefInAllof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [PropertyNamedRefThatIsNotAReference](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAnyof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAnyof.md similarity index 77% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAnyof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAnyof.md index 5ff141f69b4..3abb79a4b73 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInAnyof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInAnyof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_anyof.RefInAnyof +# unit_test_api.components.schema.ref_in_anyof.RefInAnyof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [PropertyNamedRefThatIsNotAReference](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInItems.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInItems.md similarity index 70% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInItems.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInItems.md index 687a4da176c..7d2cb3bb83e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInItems.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInItems.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_items.RefInItems +# unit_test_api.components.schema.ref_in_items.RefInItems ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -10,5 +10,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInNot.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInNot.md similarity index 77% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInNot.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInNot.md index 4414c35841d..470ca85e0e0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInNot.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInNot.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_not.RefInNot +# unit_test_api.components.schema.ref_in_not.RefInNot ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [PropertyNamedRefThatIsNotAReference](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInOneof.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInOneof.md similarity index 77% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInOneof.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInOneof.md index 68659fd58a0..58469c6f902 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInOneof.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInOneof.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_oneof.RefInOneof +# unit_test_api.components.schema.ref_in_oneof.RefInOneof ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Class Name | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- [PropertyNamedRefThatIsNotAReference](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInProperty.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInProperty.md similarity index 81% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInProperty.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInProperty.md index 67ac9dd119e..e8ee0136e3c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RefInProperty.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RefInProperty.md @@ -1,4 +1,4 @@ -# unit_test_api.model.ref_in_property.RefInProperty +# unit_test_api.components.schema.ref_in_property.RefInProperty ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **a** | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | [**PropertyNamedRefThatIsNotAReference**](PropertyNamedRefThatIsNotAReference.md) | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredDefaultValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredDefaultValidation.md similarity index 80% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredDefaultValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredDefaultValidation.md index 942d13d2644..a0b6d3ee196 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredDefaultValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredDefaultValidation.md @@ -1,4 +1,4 @@ -# unit_test_api.model.required_default_validation.RequiredDefaultValidation +# unit_test_api.components.schema.required_default_validation.RequiredDefaultValidation ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredValidation.md similarity index 84% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredValidation.md index 0bdb9e64611..10763697bd0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredValidation.md @@ -1,4 +1,4 @@ -# unit_test_api.model.required_validation.RequiredValidation +# unit_test_api.components.schema.required_validation.RequiredValidation ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **bar** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredWithEmptyArray.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredWithEmptyArray.md similarity index 81% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredWithEmptyArray.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredWithEmptyArray.md index 097a433c649..3f377d25d41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredWithEmptyArray.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredWithEmptyArray.md @@ -1,4 +1,4 @@ -# unit_test_api.model.required_with_empty_array.RequiredWithEmptyArray +# unit_test_api.components.schema.required_with_empty_array.RequiredWithEmptyArray ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **foo** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | [optional] **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredWithEscapedCharacters.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredWithEscapedCharacters.md similarity index 57% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredWithEscapedCharacters.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredWithEscapedCharacters.md index a89c4b8bf84..813e847cca7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/RequiredWithEscapedCharacters.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/RequiredWithEscapedCharacters.md @@ -1,9 +1,9 @@ -# unit_test_api.model.required_with_escaped_characters.RequiredWithEscapedCharacters +# unit_test_api.components.schema.required_with_escaped_characters.RequiredWithEscapedCharacters ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/SimpleEnumValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/SimpleEnumValidation.md new file mode 100644 index 00000000000..68a214a6172 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/SimpleEnumValidation.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.simple_enum_validation.SimpleEnumValidation + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +decimal.Decimal, int, float, | decimal.Decimal, | | must be one of [1, 2, 3, ] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/StringTypeMatchesStrings.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/StringTypeMatchesStrings.md new file mode 100644 index 00000000000..cccde39478c --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/StringTypeMatchesStrings.md @@ -0,0 +1,9 @@ +# unit_test_api.components.schema.string_type_matches_strings.StringTypeMatchesStrings + +## Model Type Info +Input Type | Accessed Type | Description | Notes +------------ | ------------- | ------------- | ------------- +str, | str, | | + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md similarity index 70% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md index 5d3e5000007..f10339d0cfc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md @@ -1,4 +1,4 @@ -# unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +# unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -11,5 +11,5 @@ Key | Input Type | Accessed Type | Description | Notes **alpha** | decimal.Decimal, int, float, | decimal.Decimal, | | [optional] if omitted the server will use the default value of 5 **any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UniqueitemsFalseValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UniqueitemsFalseValidation.md similarity index 58% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/UniqueitemsFalseValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UniqueitemsFalseValidation.md index f06a22b0be2..03e05f5c2fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UniqueitemsFalseValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UniqueitemsFalseValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.uniqueitems_false_validation.UniqueitemsFalseValidation +# unit_test_api.components.schema.uniqueitems_false_validation.UniqueitemsFalseValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UniqueitemsValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UniqueitemsValidation.md similarity index 59% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/UniqueitemsValidation.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UniqueitemsValidation.md index 89fe7ce6572..6c9f2e832b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UniqueitemsValidation.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UniqueitemsValidation.md @@ -1,9 +1,9 @@ -# unit_test_api.model.uniqueitems_validation.UniqueitemsValidation +# unit_test_api.components.schema.uniqueitems_validation.UniqueitemsValidation ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriFormat.md similarity index 61% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriFormat.md index 82ee5f3cdb0..ac6aef8fa51 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.uri_format.UriFormat +# unit_test_api.components.schema.uri_format.UriFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriReferenceFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriReferenceFormat.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriReferenceFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriReferenceFormat.md index c0bdbf8e260..2c5b22eec94 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriReferenceFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriReferenceFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.uri_reference_format.UriReferenceFormat +# unit_test_api.components.schema.uri_reference_format.UriReferenceFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriTemplateFormat.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriTemplateFormat.md similarity index 60% rename from samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriTemplateFormat.md rename to samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriTemplateFormat.md index cfb0c0c98d4..d4269c34379 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/UriTemplateFormat.md +++ b/samples/openapi3/client/3_0_3_unit_test/python/docs/components/schema/UriTemplateFormat.md @@ -1,9 +1,9 @@ -# unit_test_api.model.uri_template_format.UriTemplateFormat +# unit_test_api.components.schema.uri_template_format.UriTemplateFormat ## Model Type Info Input Type | Accessed Type | Description | Notes ------------ | ------------- | ------------- | ------------- dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/BooleanTypeMatchesBooleans.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/BooleanTypeMatchesBooleans.md deleted file mode 100644 index 63d7e87453b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/BooleanTypeMatchesBooleans.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.boolean_type_matches_booleans.BooleanTypeMatchesBooleans - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith0DoesNotMatchFalse.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith0DoesNotMatchFalse.md deleted file mode 100644 index 8acc40f17f4..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith0DoesNotMatchFalse.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | must be one of [0, ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith1DoesNotMatchTrue.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith1DoesNotMatchTrue.md deleted file mode 100644 index 40b4a8a2f55..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWith1DoesNotMatchTrue.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | must be one of [1, ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithEscapedCharacters.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithEscapedCharacters.md deleted file mode 100644 index 7910c5126ea..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithEscapedCharacters.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.enum_with_escaped_characters.EnumWithEscapedCharacters - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["foo\nbar", "foo\rbar", ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithFalseDoesNotMatch0.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithFalseDoesNotMatch0.md deleted file mode 100644 index 19b1b49815d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithFalseDoesNotMatch0.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | must be one of [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) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithTrueDoesNotMatch1.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithTrueDoesNotMatch1.md deleted file mode 100644 index 469529fa841..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/EnumWithTrueDoesNotMatch1.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1 - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | must be one of [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) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/IntegerTypeMatchesIntegers.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/IntegerTypeMatchesIntegers.md deleted file mode 100644 index 2575c1ca534..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/IntegerTypeMatchesIntegers.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.integer_type_matches_integers.IntegerTypeMatchesIntegers - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md deleted file mode 100644 index 753345128a8..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidation.md deleted file mode 100644 index 826c055762d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MaximumValidation.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.maximum_validation.MaximumValidation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidation.md deleted file mode 100644 index 768068c3a63..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/MinimumValidation.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.minimum_validation.MinimumValidation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NulCharactersInStrings.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NulCharactersInStrings.md deleted file mode 100644 index 8532d97c92e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NulCharactersInStrings.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.nul_characters_in_strings.NulCharactersInStrings - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | must be one of ["hello\x00there", ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NullTypeMatchesOnlyTheNullObject.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NullTypeMatchesOnlyTheNullObject.md deleted file mode 100644 index 9a8e21c21be..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NullTypeMatchesOnlyTheNullObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -None, | NoneClass, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NumberTypeMatchesNumbers.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NumberTypeMatchesNumbers.md deleted file mode 100644 index deebc8ff56d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/NumberTypeMatchesNumbers.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.number_type_matches_numbers.NumberTypeMatchesNumbers - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectTypeMatchesObjects.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectTypeMatchesObjects.md deleted file mode 100644 index 7ef7e50f16f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/ObjectTypeMatchesObjects.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.object_type_matches_objects.ObjectTypeMatchesObjects - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/SimpleEnumValidation.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/SimpleEnumValidation.md deleted file mode 100644 index 12c0eaf4f83..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/SimpleEnumValidation.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.simple_enum_validation.SimpleEnumValidation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, float, | decimal.Decimal, | | must be one of [1, 2, 3, ] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/StringTypeMatchesStrings.md b/samples/openapi3/client/3_0_3_unit_test/python/docs/models/StringTypeMatchesStrings.md deleted file mode 100644 index 6cee3b4720c..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/docs/models/StringTypeMatchesStrings.md +++ /dev/null @@ -1,9 +0,0 @@ -# unit_test_api.model.string_type_matches_strings.StringTypeMatchesStrings - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/__init__.py similarity index 100% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/__init__.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/__init__.py diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_allows_a_schema_which_should_validate.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_allows_a_schema_which_should_validate.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_allows_a_schema_which_should_validate.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_allows_a_schema_which_should_validate.py index b946a7840f2..f62119c83d9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_allows_a_schema_which_should_validate.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_allows_a_schema_which_should_validate.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_are_allowed_by_default.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_are_allowed_by_default.py similarity index 88% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_are_allowed_by_default.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_are_allowed_by_default.py index ede7b006506..e6e905b4de6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_are_allowed_by_default.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_are_allowed_by_default.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_can_exist_by_itself.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_can_exist_by_itself.py similarity index 91% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_can_exist_by_itself.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_can_exist_by_itself.py index fd4c4b4e9f9..1c870f17e80 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_can_exist_by_itself.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_can_exist_by_itself.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_should_not_look_in_applicators.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_should_not_look_in_applicators.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_should_not_look_in_applicators.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_should_not_look_in_applicators.py index cc08697897f..0875f1714cb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_additionalproperties_should_not_look_in_applicators.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_additionalproperties_should_not_look_in_applicators.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof.py similarity index 97% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof.py index d03edae4b79..68f30eeb387 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_combined_with_anyof_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_combined_with_anyof_oneof.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_combined_with_anyof_oneof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_combined_with_anyof_oneof.py index f1875ccfff7..429e27c9280 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_combined_with_anyof_oneof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_combined_with_anyof_oneof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_simple_types.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_simple_types.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_simple_types.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_simple_types.py index 7f351098909..ab8c0c1d912 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_simple_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_simple_types.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_base_schema.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_base_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_base_schema.py index f089c4a39fe..c7725abf7c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_base_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_one_empty_schema.py similarity index 88% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_one_empty_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_one_empty_schema.py index f3eee78309c..2d1d469b92e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_one_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_one_empty_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_the_first_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_the_first_empty_schema.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_the_first_empty_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_the_first_empty_schema.py index f30ef23cb29..e2bc5dbe5a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_the_first_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_the_first_empty_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_the_last_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_the_last_empty_schema.py similarity index 91% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_the_last_empty_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_the_last_empty_schema.py index 94e0a662c19..96e61a0a7aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_the_last_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_the_last_empty_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_two_empty_schemas.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_two_empty_schemas.py similarity index 88% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_two_empty_schemas.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_two_empty_schemas.py index db5b6fa9caf..811f193e5e2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_allof_with_two_empty_schemas.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_allof_with_two_empty_schemas.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof.py index d300d967d03..b4a59979b76 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_complex_types.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_complex_types.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_complex_types.py index fc6d14191dc..a284d3bec8a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_complex_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_complex_types.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_with_base_schema.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_with_base_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_with_base_schema.py index 7edf767ad5b..016d6c28953 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_with_base_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_with_one_empty_schema.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_with_one_empty_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_with_one_empty_schema.py index 31cc78ca3c2..71891f8c0cd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_anyof_with_one_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_anyof_with_one_empty_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_array_type_matches_arrays.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_array_type_matches_arrays.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_array_type_matches_arrays.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_array_type_matches_arrays.py index 98fbd44a16c..6e8285508de 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_array_type_matches_arrays.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_array_type_matches_arrays.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_boolean_type_matches_booleans.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_boolean_type_matches_booleans.py similarity index 97% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_boolean_type_matches_booleans.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_boolean_type_matches_booleans.py index fc20c8059dc..2cd38bb4663 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_boolean_type_matches_booleans.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_boolean_type_matches_booleans.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_int.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_int.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_int.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_int.py index 4abbab69a57..5984c9f73bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_int.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_int.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_number.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_number.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_number.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_number.py index 9614cc470d1..bce0bfca81a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_number.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_number.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_small_number.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_small_number.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_small_number.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_small_number.py index 3a4e1449caf..ccd23db5bf6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_by_small_number.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_by_small_number.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_date_time_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_date_time_format.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_date_time_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_date_time_format.py index 1fdd3e3614e..5939c88248f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_date_time_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_date_time_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_email_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_email_format.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_email_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_email_format.py index 830b136aae6..e3d00ebdde3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_email_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_email_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with0_does_not_match_false.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with0_does_not_match_false.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with0_does_not_match_false.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with0_does_not_match_false.py index 5456b86202f..24daa4a0a26 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with0_does_not_match_false.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with0_does_not_match_false.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with1_does_not_match_true.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with1_does_not_match_true.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with1_does_not_match_true.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with1_does_not_match_true.py index e9a97663fe6..df6a37c9471 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with1_does_not_match_true.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with1_does_not_match_true.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_escaped_characters.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_escaped_characters.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_escaped_characters.py index 4144f3b77d8..91a196d61c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_escaped_characters.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_false_does_not_match0.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_false_does_not_match0.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_false_does_not_match0.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_false_does_not_match0.py index ebd6bc55d45..12e329ea715 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_false_does_not_match0.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_false_does_not_match0.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_true_does_not_match1.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_true_does_not_match1.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_true_does_not_match1.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_true_does_not_match1.py index 7827ca725b9..0b6638b7241 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enum_with_true_does_not_match1.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enum_with_true_does_not_match1.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enums_in_properties.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enums_in_properties.py similarity index 97% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enums_in_properties.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enums_in_properties.py index 3850f849db1..e591e90f8aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_enums_in_properties.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_enums_in_properties.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_forbidden_property.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_forbidden_property.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_forbidden_property.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_forbidden_property.py index f1db3521b1e..d7b9f572246 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_forbidden_property.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_forbidden_property.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_hostname_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_hostname_format.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_hostname_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_hostname_format.py index 20c3febcb3e..d4f0096ac97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_hostname_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_hostname_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_integer_type_matches_integers.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_integer_type_matches_integers.py similarity index 97% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_integer_type_matches_integers.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_integer_type_matches_integers.py index 4ffba76e328..ab8fa9376b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_integer_type_matches_integers.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_integer_type_matches_integers.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_invalid_instance_should_not_raise_error_when_float_division_inf.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_invalid_instance_should_not_raise_error_when_float_division_inf.py similarity index 89% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_invalid_instance_should_not_raise_error_when_float_division_inf.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_invalid_instance_should_not_raise_error_when_float_division_inf.py index fb2c597c565..723c7b01296 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_invalid_instance_should_not_raise_error_when_float_division_inf.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_invalid_instance_should_not_raise_error_when_float_division_inf.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_invalid_string_value_for_default.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_invalid_string_value_for_default.py similarity index 91% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_invalid_string_value_for_default.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_invalid_string_value_for_default.py index c62e6e45b56..d3f0d7e1994 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_invalid_string_value_for_default.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_invalid_string_value_for_default.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ipv4_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ipv4_format.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ipv4_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ipv4_format.py index 19e925b9a7e..9187ee3516d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ipv4_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ipv4_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ipv6_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ipv6_format.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ipv6_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ipv6_format.py index 09e7895b469..c93e793d5f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ipv6_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ipv6_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_json_pointer_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_json_pointer_format.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_json_pointer_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_json_pointer_format.py index 9b5fae8d6e7..516d528af2a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_json_pointer_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_json_pointer_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maximum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maximum_validation.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maximum_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maximum_validation.py index b9cdf9e3617..bdf5e949d62 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maximum_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maximum_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maximum_validation_with_unsigned_integer.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maximum_validation_with_unsigned_integer.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maximum_validation_with_unsigned_integer.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maximum_validation_with_unsigned_integer.py index c18028ee2af..4b27673c2e0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maximum_validation_with_unsigned_integer.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maximum_validation_with_unsigned_integer.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxitems_validation.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxitems_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxitems_validation.py index 1a8afe4e9bb..024baa0c87d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxitems_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxitems_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxlength_validation.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxlength_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxlength_validation.py index 7454b37934c..86b22f42aea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxlength_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxlength_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxproperties0_means_the_object_is_empty.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxproperties0_means_the_object_is_empty.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxproperties0_means_the_object_is_empty.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxproperties0_means_the_object_is_empty.py index 92a8cf2139a..c97b47a00a1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxproperties0_means_the_object_is_empty.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxproperties0_means_the_object_is_empty.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxproperties_validation.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxproperties_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxproperties_validation.py index cc3684783b6..8436aa706f5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_maxproperties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_maxproperties_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minimum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minimum_validation.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minimum_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minimum_validation.py index 9c3798fadb9..0e645a1da5b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minimum_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minimum_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minimum_validation_with_signed_integer.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minimum_validation_with_signed_integer.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minimum_validation_with_signed_integer.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minimum_validation_with_signed_integer.py index 02795c09294..92d1d8e031f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minimum_validation_with_signed_integer.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minimum_validation_with_signed_integer.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minitems_validation.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minitems_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minitems_validation.py index db5bb4eea03..482fb90ef32 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minitems_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minitems_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minlength_validation.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minlength_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minlength_validation.py index e7327d1a4d6..73815a6a6b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minlength_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minlength_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minproperties_validation.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minproperties_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minproperties_validation.py index 6d79810b1d9..882694da382 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_minproperties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_minproperties_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_model_not.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_model_not.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_model_not.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_model_not.py index 996812828d1..b2034c3d642 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_model_not.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_model_not.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_allof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_allof_to_check_validation_semantics.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_allof_to_check_validation_semantics.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_allof_to_check_validation_semantics.py index 7919e40463c..958c42391ce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_allof_to_check_validation_semantics.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_allof_to_check_validation_semantics.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_anyof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_anyof_to_check_validation_semantics.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_anyof_to_check_validation_semantics.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_anyof_to_check_validation_semantics.py index 2be0dd8edae..de345dbd3ff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_anyof_to_check_validation_semantics.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_anyof_to_check_validation_semantics.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_items.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_items.py similarity index 98% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_items.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_items.py index 273f27f8b7e..3227e6b3d73 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_items.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_items.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_oneof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_oneof_to_check_validation_semantics.py similarity index 90% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_oneof_to_check_validation_semantics.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_oneof_to_check_validation_semantics.py index 80f80e3ec49..f1370bc914e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nested_oneof_to_check_validation_semantics.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nested_oneof_to_check_validation_semantics.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_not_more_complex_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_not_more_complex_schema.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_not_more_complex_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_not_more_complex_schema.py index 38acbc0e04b..285392fb563 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_not_more_complex_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_not_more_complex_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nul_characters_in_strings.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nul_characters_in_strings.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nul_characters_in_strings.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nul_characters_in_strings.py index c5bbe098599..9084a80b9e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_nul_characters_in_strings.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_nul_characters_in_strings.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_null_type_matches_only_the_null_object.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_null_type_matches_only_the_null_object.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_null_type_matches_only_the_null_object.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_null_type_matches_only_the_null_object.py index be22b3587ca..2279b16f3fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_null_type_matches_only_the_null_object.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_null_type_matches_only_the_null_object.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_number_type_matches_numbers.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_number_type_matches_numbers.py similarity index 97% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_number_type_matches_numbers.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_number_type_matches_numbers.py index 2070edb70c8..e696122fe9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_number_type_matches_numbers.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_number_type_matches_numbers.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_object_properties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_object_properties_validation.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_object_properties_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_object_properties_validation.py index 9b74a32cc99..f8ed78ba34b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_object_properties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_object_properties_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_object_type_matches_objects.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_object_type_matches_objects.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_object_type_matches_objects.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_object_type_matches_objects.py index 2a33d925794..7d9b6c4f97f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_object_type_matches_objects.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_object_type_matches_objects.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof.py index c23316082f8..5ae3f55557f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_complex_types.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_complex_types.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_complex_types.py index f577d4cfa75..575d66b660d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_complex_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_complex_types.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_base_schema.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_base_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_base_schema.py index a1662542c13..a4befc2763f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_base_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_empty_schema.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_empty_schema.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_empty_schema.py index ad3cd286186..5b404f9bbce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_empty_schema.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_required.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_required.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_required.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_required.py index 5c8132375d6..e5930eb841b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_oneof_with_required.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_oneof_with_required.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_pattern_is_not_anchored.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_pattern_is_not_anchored.py similarity index 89% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_pattern_is_not_anchored.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_pattern_is_not_anchored.py index 42f533b9013..0825aff0a85 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_pattern_is_not_anchored.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_pattern_is_not_anchored.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_pattern_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_pattern_validation.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_pattern_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_pattern_validation.py index 60cb2e1a1c7..15cadec6749 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_pattern_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_pattern_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_properties_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_properties_with_escaped_characters.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_properties_with_escaped_characters.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_properties_with_escaped_characters.py index 9cef87212dc..5b15e2ae485 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_properties_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_properties_with_escaped_characters.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_property_named_ref_that_is_not_a_reference.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_property_named_ref_that_is_not_a_reference.py similarity index 91% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_property_named_ref_that_is_not_a_reference.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_property_named_ref_that_is_not_a_reference.py index 52809d26e4d..aca0bcaf125 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_property_named_ref_that_is_not_a_reference.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_property_named_ref_that_is_not_a_reference.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_additionalproperties.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_additionalproperties.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_additionalproperties.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_additionalproperties.py index db4bc26bbba..e0b0684c954 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_additionalproperties.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_additionalproperties.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_allof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_allof.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_allof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_allof.py index 66ff7e5cdcf..5e773ecb9d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_allof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_allof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_anyof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_anyof.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_anyof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_anyof.py index ddf20866766..79440cc47e6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_anyof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_anyof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_items.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_items.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_items.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_items.py index 4f39d31763b..a9cf7738200 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_items.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_items.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_not.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_not.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_not.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_not.py index c33378cd279..d1b8fe5c22a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_not.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_not.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_oneof.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_oneof.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_oneof.py index f21623c8d8d..4838fb7ff72 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_oneof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_oneof.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_property.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_property.py similarity index 94% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_property.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_property.py index 38113b134fe..866b9485c1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_ref_in_property.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_ref_in_property.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_default_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_default_validation.py similarity index 88% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_default_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_default_validation.py index 839aa6742db..8882537451c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_default_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_default_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_validation.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_validation.py index 9f1f18cc6ac..3550424427a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_with_empty_array.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_with_empty_array.py similarity index 89% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_with_empty_array.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_with_empty_array.py index 8a42ce63bac..162baf3a9eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_with_empty_array.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_with_empty_array.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_with_escaped_characters.py similarity index 93% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_with_escaped_characters.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_with_escaped_characters.py index bd327f0981f..cc730dd11cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_required_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_required_with_escaped_characters.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_simple_enum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_simple_enum_validation.py similarity index 92% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_simple_enum_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_simple_enum_validation.py index 76658126189..e3fd5d1cc41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_simple_enum_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_simple_enum_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_string_type_matches_strings.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_string_type_matches_strings.py similarity index 97% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_string_type_matches_strings.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_string_type_matches_strings.py index a1990db3021..7023715bb8d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_string_type_matches_strings.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_string_type_matches_strings.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py similarity index 91% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py index d3ab488aa50..6314a54a0c8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_the_default_keyword_does_not_do_anything_if_the_property_is_missing.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uniqueitems_false_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uniqueitems_false_validation.py similarity index 98% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uniqueitems_false_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uniqueitems_false_validation.py index cda8f767328..dbc783f4c82 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uniqueitems_false_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uniqueitems_false_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uniqueitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uniqueitems_validation.py similarity index 99% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uniqueitems_validation.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uniqueitems_validation.py index 819beed3070..862e2af2d92 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uniqueitems_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uniqueitems_validation.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_format.py similarity index 96% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_format.py index b44051e385c..74b8cb45fd2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_reference_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_reference_format.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_reference_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_reference_format.py index 4feeaca2787..06b889c5f05 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_reference_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_reference_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_template_format.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_template_format.py similarity index 95% rename from samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_template_format.py rename to samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_template_format.py index a3e1e2f9876..f53a0d8cab0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/test/test_models/test_uri_template_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/test/components/schema/test_uri_template_format.py @@ -12,7 +12,7 @@ import unittest import unit_test_api -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from unit_test_api import configuration diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/__init__.py similarity index 100% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/__init__.py rename to samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/__init__.py diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/__init__.py new file mode 100644 index 00000000000..233d2aefb12 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/__init__.py @@ -0,0 +1,5 @@ +# we can not import model classes here because that would create a circular +# reference which would not work in python2 +# do not import all models into this module because that uses a lot of memory and stack frames +# if you need the ability to import all models from one package, import them with +# from unit_test_api.components.schemas import ModelA, ModelB diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py new file mode 100644 index 00000000000..66cc28eb41e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesAllowsASchemaWhichShouldValidate( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + additional_properties = schemas.BoolSchema + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.pyi new file mode 100644 index 00000000000..66cc28eb41e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_allows_a_schema_which_should_validate.pyi @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesAllowsASchemaWhichShouldValidate( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + additional_properties = schemas.BoolSchema + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py new file mode 100644 index 00000000000..273766346b2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesAreAllowedByDefault( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalpropertiesAreAllowedByDefault': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.pyi new file mode 100644 index 00000000000..273766346b2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_are_allowed_by_default.pyi @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesAreAllowedByDefault( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AdditionalpropertiesAreAllowedByDefault': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py new file mode 100644 index 00000000000..6f57c6b4e80 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesCanExistByItself( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'AdditionalpropertiesCanExistByItself': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.pyi new file mode 100644 index 00000000000..6f57c6b4e80 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_can_exist_by_itself.pyi @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesCanExistByItself( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'AdditionalpropertiesCanExistByItself': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py new file mode 100644 index 00000000000..cabf9af560d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesShouldNotLookInApplicators( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'AdditionalpropertiesShouldNotLookInApplicators': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.pyi new file mode 100644 index 00000000000..cabf9af560d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/additionalproperties_should_not_look_in_applicators.pyi @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AdditionalpropertiesShouldNotLookInApplicators( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + additional_properties = schemas.BoolSchema + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], + ) -> 'AdditionalpropertiesShouldNotLookInApplicators': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.py new file mode 100644 index 00000000000..2e093c6cec6 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Allof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Allof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.pyi new file mode 100644 index 00000000000..2e093c6cec6 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof.pyi @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Allof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Allof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.py new file mode 100644 index 00000000000..e40aab43eb4 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofCombinedWithAnyofOneof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + multiple_of = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + multiple_of = 5 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class any_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + multiple_of = 3 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + ] + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofCombinedWithAnyofOneof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.pyi new file mode 100644 index 00000000000..bc7e2eaf6bc --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_combined_with_anyof_oneof.pyi @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofCombinedWithAnyofOneof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class any_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + ] + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofCombinedWithAnyofOneof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.py new file mode 100644 index 00000000000..da2bd544777 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofSimpleTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + inclusive_maximum = 30 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + inclusive_minimum = 20 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofSimpleTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.pyi new file mode 100644 index 00000000000..ce96198a3e6 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_simple_types.pyi @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofSimpleTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofSimpleTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.py new file mode 100644 index 00000000000..6677ca50a7c --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithBaseSchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "baz", + } + + class properties: + baz = schemas.NoneSchema + __annotations__ = { + "baz": baz, + } + + + baz: MetaOapg.properties.baz + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + baz: typing.Union[MetaOapg.properties.baz, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + baz=baz, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithBaseSchema': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.pyi new file mode 100644 index 00000000000..6677ca50a7c --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_base_schema.pyi @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithBaseSchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + class all_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + + class all_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "baz", + } + + class properties: + baz = schemas.NoneSchema + __annotations__ = { + "baz": baz, + } + + + baz: MetaOapg.properties.baz + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + baz: typing.Union[MetaOapg.properties.baz, None, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_1': + return super().__new__( + cls, + *args, + baz=baz, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithBaseSchema': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.py new file mode 100644 index 00000000000..ccdf6237db3 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithOneEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithOneEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.pyi new file mode 100644 index 00000000000..ccdf6237db3 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_one_empty_schema.pyi @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithOneEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithOneEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.py new file mode 100644 index 00000000000..ca512486cf0 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithTheFirstEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + all_of_1 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithTheFirstEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.pyi new file mode 100644 index 00000000000..ca512486cf0 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_first_empty_schema.pyi @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithTheFirstEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + all_of_1 = schemas.NumberSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithTheFirstEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.py new file mode 100644 index 00000000000..d243c83104b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithTheLastEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.NumberSchema + all_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithTheLastEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.pyi new file mode 100644 index 00000000000..d243c83104b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_the_last_empty_schema.pyi @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithTheLastEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.NumberSchema + all_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithTheLastEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.py new file mode 100644 index 00000000000..0ee8f8a3243 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithTwoEmptySchemas( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + all_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithTwoEmptySchemas': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.pyi new file mode 100644 index 00000000000..0ee8f8a3243 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/allof_with_two_empty_schemas.pyi @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AllofWithTwoEmptySchemas( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + all_of_0 = schemas.AnyTypeSchema + all_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + cls.all_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AllofWithTwoEmptySchemas': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.py new file mode 100644 index 00000000000..fe69e481437 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Anyof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + any_of_0 = schemas.IntSchema + + + class any_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + inclusive_minimum = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Anyof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.pyi new file mode 100644 index 00000000000..d2bf4a03d2e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof.pyi @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Anyof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + any_of_0 = schemas.IntSchema + + + class any_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Anyof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.py new file mode 100644 index 00000000000..6e0b801eef7 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AnyofComplexTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class any_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + + + class any_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_1': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyofComplexTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.pyi new file mode 100644 index 00000000000..6e0b801eef7 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_complex_types.pyi @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AnyofComplexTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class any_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + + + class any_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_1': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyofComplexTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.py new file mode 100644 index 00000000000..a310a33c9d2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AnyofWithBaseSchema( + schemas.ComposedBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class any_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + max_length = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class any_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + min_length = 4 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AnyofWithBaseSchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.pyi new file mode 100644 index 00000000000..65862600d54 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_base_schema.pyi @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AnyofWithBaseSchema( + schemas.ComposedBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class any_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class any_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AnyofWithBaseSchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.py new file mode 100644 index 00000000000..117c0374aa8 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AnyofWithOneEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + any_of_0 = schemas.NumberSchema + any_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyofWithOneEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.pyi new file mode 100644 index 00000000000..117c0374aa8 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/anyof_with_one_empty_schema.pyi @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class AnyofWithOneEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + any_of_0 = schemas.NumberSchema + any_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + cls.any_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'AnyofWithOneEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.py new file mode 100644 index 00000000000..7c6cc33a3d5 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ArrayTypeMatchesArrays( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayTypeMatchesArrays': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.pyi new file mode 100644 index 00000000000..7c6cc33a3d5 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/array_type_matches_arrays.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ArrayTypeMatchesArrays( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + items = schemas.AnyTypeSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'ArrayTypeMatchesArrays': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.py new file mode 100644 index 00000000000..8e9d55f91a4 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +BooleanTypeMatchesBooleans = schemas.BoolSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.pyi new file mode 100644 index 00000000000..8e9d55f91a4 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/boolean_type_matches_booleans.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +BooleanTypeMatchesBooleans = schemas.BoolSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.py new file mode 100644 index 00000000000..76988d65937 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ByInt( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + multiple_of = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ByInt': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.pyi new file mode 100644 index 00000000000..d93f787d68b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_int.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ByInt( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ByInt': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.py new file mode 100644 index 00000000000..184acb97b7f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ByNumber( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + multiple_of = 1.5 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ByNumber': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.pyi new file mode 100644 index 00000000000..1a082d5d3e1 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_number.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ByNumber( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ByNumber': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.py new file mode 100644 index 00000000000..426ee59b91e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class BySmallNumber( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + multiple_of = 0.00010 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'BySmallNumber': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.pyi new file mode 100644 index 00000000000..95da8644ea6 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/by_small_number.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class BySmallNumber( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'BySmallNumber': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.py new file mode 100644 index 00000000000..9fed78c4907 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class DateTimeFormat( + schemas.DateTimeBase, + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'date-time' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'DateTimeFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.pyi new file mode 100644 index 00000000000..9fed78c4907 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/date_time_format.pyi @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class DateTimeFormat( + schemas.DateTimeBase, + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'date-time' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'DateTimeFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.py new file mode 100644 index 00000000000..8a3fa4bbabb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EmailFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'email' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EmailFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.pyi new file mode 100644 index 00000000000..8a3fa4bbabb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/email_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EmailFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'email' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EmailFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.py new file mode 100644 index 00000000000..2f77c5996f4 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWith0DoesNotMatchFalse( + schemas.EnumBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 0: "POSITIVE_0", + } + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.pyi new file mode 100644 index 00000000000..337edc4956d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with0_does_not_match_false.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWith0DoesNotMatchFalse( + schemas.EnumBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_0(cls): + return cls(0) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.py new file mode 100644 index 00000000000..2acbb376d63 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWith1DoesNotMatchTrue( + schemas.EnumBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 1: "POSITIVE_1", + } + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.pyi new file mode 100644 index 00000000000..8664a7f747f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with1_does_not_match_true.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWith1DoesNotMatchTrue( + schemas.EnumBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.py new file mode 100644 index 00000000000..c8f68c1000d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWithEscapedCharacters( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "foo\nbar": "FOO_BAR", + "foo\rbar": "FOO_BAR", + } + + @schemas.classproperty + def FOO_BAR(cls): + return cls("foo\nbar") + + @schemas.classproperty + def FOO_BAR(cls): + return cls("foo\rbar") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.pyi new file mode 100644 index 00000000000..6fb1827e441 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_escaped_characters.pyi @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWithEscapedCharacters( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def FOO_BAR(cls): + return cls("foo\nbar") + + @schemas.classproperty + def FOO_BAR(cls): + return cls("foo\rbar") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.py new file mode 100644 index 00000000000..c4992b57a35 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWithFalseDoesNotMatch0( + schemas.EnumBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + schemas.BoolClass.FALSE: "FALSE", + } + + @schemas.classproperty + def FALSE(cls): + return cls(False) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.pyi new file mode 100644 index 00000000000..35ef43076ce --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_false_does_not_match0.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWithFalseDoesNotMatch0( + schemas.EnumBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def FALSE(cls): + return cls(False) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.py new file mode 100644 index 00000000000..a8e80747103 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWithTrueDoesNotMatch1( + schemas.EnumBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + schemas.BoolClass.TRUE: "TRUE", + } + + @schemas.classproperty + def TRUE(cls): + return cls(True) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.pyi new file mode 100644 index 00000000000..f86fc0d2810 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enum_with_true_does_not_match1.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumWithTrueDoesNotMatch1( + schemas.EnumBase, + schemas.BoolSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def TRUE(cls): + return cls(True) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.py new file mode 100644 index 00000000000..0010f712aba --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumsInProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "bar", + } + + class properties: + + + class bar( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "bar": "BAR", + } + + @schemas.classproperty + def BAR(cls): + return cls("bar") + + + class foo( + schemas.EnumBase, + schemas.StrSchema + ): + + + class MetaOapg: + enum_value_to_name = { + "foo": "FOO", + } + + @schemas.classproperty + def FOO(cls): + return cls("foo") + __annotations__ = { + "bar": bar, + "foo": foo, + } + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union[MetaOapg.properties.bar, str, ], + foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EnumsInProperties': + return super().__new__( + cls, + *args, + bar=bar, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.pyi new file mode 100644 index 00000000000..d45a82aad04 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/enums_in_properties.pyi @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class EnumsInProperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "bar", + } + + class properties: + + + class bar( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def BAR(cls): + return cls("bar") + + + class foo( + schemas.EnumBase, + schemas.StrSchema + ): + + @schemas.classproperty + def FOO(cls): + return cls("foo") + __annotations__ = { + "bar": bar, + "foo": foo, + } + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + bar: typing.Union[MetaOapg.properties.bar, str, ], + foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'EnumsInProperties': + return super().__new__( + cls, + *args, + bar=bar, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.py new file mode 100644 index 00000000000..b81f17e5b17 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ForbiddenProperty( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.NotAnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ForbiddenProperty': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.pyi new file mode 100644 index 00000000000..b81f17e5b17 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/forbidden_property.pyi @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ForbiddenProperty( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.NotAnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ForbiddenProperty': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.py new file mode 100644 index 00000000000..40942f67b82 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class HostnameFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'hostname' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HostnameFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.pyi new file mode 100644 index 00000000000..40942f67b82 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/hostname_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class HostnameFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'hostname' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'HostnameFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.py new file mode 100644 index 00000000000..ccb986ac466 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +IntegerTypeMatchesIntegers = schemas.IntSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.pyi new file mode 100644 index 00000000000..ccb986ac466 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/integer_type_matches_integers.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +IntegerTypeMatchesIntegers = schemas.IntSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.py new file mode 100644 index 00000000000..3f5ff42395c --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf( + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + multiple_of = 0.123456789 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.pyi new file mode 100644 index 00000000000..33c88d10402 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.pyi @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf( + schemas.IntSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + pass diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.py new file mode 100644 index 00000000000..47529863695 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class InvalidStringValueForDefault( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class bar( + schemas.StrSchema + ): + + + class MetaOapg: + min_length = 4 + __annotations__ = { + "bar": bar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'InvalidStringValueForDefault': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.pyi new file mode 100644 index 00000000000..7ab2145d29b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/invalid_string_value_for_default.pyi @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class InvalidStringValueForDefault( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class bar( + schemas.StrSchema + ): + pass + __annotations__ = { + "bar": bar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'InvalidStringValueForDefault': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.py new file mode 100644 index 00000000000..0eae025a87f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Ipv4Format( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'ipv4' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Ipv4Format': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.pyi new file mode 100644 index 00000000000..0eae025a87f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv4_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Ipv4Format( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'ipv4' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Ipv4Format': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.py new file mode 100644 index 00000000000..23a8aa658da --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Ipv6Format( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'ipv6' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Ipv6Format': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.pyi new file mode 100644 index 00000000000..23a8aa658da --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ipv6_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Ipv6Format( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'ipv6' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Ipv6Format': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.py new file mode 100644 index 00000000000..ddbc5084238 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class JsonPointerFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'json-pointer' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'JsonPointerFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.pyi new file mode 100644 index 00000000000..ddbc5084238 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/json_pointer_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class JsonPointerFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'json-pointer' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'JsonPointerFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.py new file mode 100644 index 00000000000..5a992b87f00 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaximumValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + inclusive_maximum = 3.0 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaximumValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.pyi new file mode 100644 index 00000000000..f0f3010b941 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaximumValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaximumValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.py new file mode 100644 index 00000000000..dc28bf37f35 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaximumValidationWithUnsignedInteger( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + inclusive_maximum = 300 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaximumValidationWithUnsignedInteger': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.pyi new file mode 100644 index 00000000000..223cf29f836 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maximum_validation_with_unsigned_integer.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaximumValidationWithUnsignedInteger( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaximumValidationWithUnsignedInteger': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.py new file mode 100644 index 00000000000..de40bec0b0a --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaxitemsValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + max_items = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaxitemsValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.pyi new file mode 100644 index 00000000000..7c0a10e4fb2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxitems_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaxitemsValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaxitemsValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.py new file mode 100644 index 00000000000..c34f02ea119 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaxlengthValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + max_length = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaxlengthValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.pyi new file mode 100644 index 00000000000..1ed6a96b36b --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxlength_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaxlengthValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaxlengthValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.py new file mode 100644 index 00000000000..24dd02220f7 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Maxproperties0MeansTheObjectIsEmpty( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + max_properties = 0 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Maxproperties0MeansTheObjectIsEmpty': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.pyi new file mode 100644 index 00000000000..82013206b84 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties0_means_the_object_is_empty.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Maxproperties0MeansTheObjectIsEmpty( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Maxproperties0MeansTheObjectIsEmpty': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.py new file mode 100644 index 00000000000..2adf12f7500 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaxpropertiesValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + max_properties = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaxpropertiesValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.pyi new file mode 100644 index 00000000000..4252e69a43a --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/maxproperties_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MaxpropertiesValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MaxpropertiesValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.py new file mode 100644 index 00000000000..6409f72d484 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinimumValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + inclusive_minimum = 1.1 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinimumValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.pyi new file mode 100644 index 00000000000..a96f7db6e39 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinimumValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinimumValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.py new file mode 100644 index 00000000000..73e0b2613db --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinimumValidationWithSignedInteger( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + inclusive_minimum = -2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinimumValidationWithSignedInteger': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.pyi new file mode 100644 index 00000000000..c57929021ab --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minimum_validation_with_signed_integer.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinimumValidationWithSignedInteger( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinimumValidationWithSignedInteger': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.py new file mode 100644 index 00000000000..2ae9925d451 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinitemsValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + min_items = 1 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinitemsValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.pyi new file mode 100644 index 00000000000..d84e653cfc8 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minitems_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinitemsValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinitemsValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.py new file mode 100644 index 00000000000..acd0d6d8929 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinlengthValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + min_length = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinlengthValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.pyi new file mode 100644 index 00000000000..7e633c88ee4 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minlength_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinlengthValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinlengthValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.py new file mode 100644 index 00000000000..ebc2b1db516 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinpropertiesValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + min_properties = 1 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinpropertiesValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.pyi new file mode 100644 index 00000000000..ea06a20b31f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/minproperties_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class MinpropertiesValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'MinpropertiesValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.py new file mode 100644 index 00000000000..317bddb0d8e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ModelNot( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + not_schema = schemas.IntSchema + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelNot': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.pyi new file mode 100644 index 00000000000..317bddb0d8e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/model_not.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ModelNot( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + not_schema = schemas.IntSchema + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ModelNot': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py new file mode 100644 index 00000000000..f6f8069357f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedAllofToCheckValidationSemantics( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.ComposedSchema, + ): + + + class MetaOapg: + all_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NestedAllofToCheckValidationSemantics': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.pyi new file mode 100644 index 00000000000..f6f8069357f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_allof_to_check_validation_semantics.pyi @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedAllofToCheckValidationSemantics( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class all_of_0( + schemas.ComposedSchema, + ): + + + class MetaOapg: + all_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'all_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.all_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NestedAllofToCheckValidationSemantics': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py new file mode 100644 index 00000000000..65ae3adef07 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedAnyofToCheckValidationSemantics( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class any_of_0( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NestedAnyofToCheckValidationSemantics': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.pyi new file mode 100644 index 00000000000..65ae3adef07 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_anyof_to_check_validation_semantics.pyi @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedAnyofToCheckValidationSemantics( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class any_of_0( + schemas.ComposedSchema, + ): + + + class MetaOapg: + any_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'any_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.any_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NestedAnyofToCheckValidationSemantics': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.py new file mode 100644 index 00000000000..36f1aad97fd --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedItems( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NestedItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.pyi new file mode 100644 index 00000000000..36f1aad97fd --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_items.pyi @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedItems( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + + + class items( + schemas.ListSchema + ): + + + class MetaOapg: + items = schemas.NumberSchema + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'items': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) + + def __new__( + cls, + arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'NestedItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> MetaOapg.items: + return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py new file mode 100644 index 00000000000..ebede9469dd --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedOneofToCheckValidationSemantics( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.ComposedSchema, + ): + + + class MetaOapg: + one_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NestedOneofToCheckValidationSemantics': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.pyi new file mode 100644 index 00000000000..ebede9469dd --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nested_oneof_to_check_validation_semantics.pyi @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NestedOneofToCheckValidationSemantics( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.ComposedSchema, + ): + + + class MetaOapg: + one_of_0 = schemas.NoneSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NestedOneofToCheckValidationSemantics': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.py new file mode 100644 index 00000000000..f04fa2d4d95 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NotMoreComplexSchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class not_schema( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'not_schema': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NotMoreComplexSchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.pyi new file mode 100644 index 00000000000..f04fa2d4d95 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/not_more_complex_schema.pyi @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NotMoreComplexSchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class not_schema( + schemas.DictSchema + ): + + + class MetaOapg: + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'not_schema': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'NotMoreComplexSchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.py new file mode 100644 index 00000000000..3aa6a9fe9ba --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NulCharactersInStrings( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + "hello\x00there": "HELLOTHERE", + } + + @schemas.classproperty + def HELLOTHERE(cls): + return cls("hello\x00there") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.pyi new file mode 100644 index 00000000000..eb9d42800cf --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/nul_characters_in_strings.pyi @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class NulCharactersInStrings( + schemas.EnumBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def HELLOTHERE(cls): + return cls("hello\x00there") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.py new file mode 100644 index 00000000000..4b1bff62a13 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.pyi new file mode 100644 index 00000000000..4b1bff62a13 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/null_type_matches_only_the_null_object.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.py new file mode 100644 index 00000000000..e4d1d79b975 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +NumberTypeMatchesNumbers = schemas.NumberSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.pyi new file mode 100644 index 00000000000..e4d1d79b975 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/number_type_matches_numbers.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +NumberTypeMatchesNumbers = schemas.NumberSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.py new file mode 100644 index 00000000000..d74b394f069 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ObjectPropertiesValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.IntSchema + bar = schemas.StrSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, decimal.Decimal, int, schemas.Unset] = schemas.unset, + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectPropertiesValidation': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.pyi new file mode 100644 index 00000000000..d74b394f069 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_properties_validation.pyi @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class ObjectPropertiesValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.IntSchema + bar = schemas.StrSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, decimal.Decimal, int, schemas.Unset] = schemas.unset, + bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'ObjectPropertiesValidation': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.py new file mode 100644 index 00000000000..a7c70ef5648 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +ObjectTypeMatchesObjects = schemas.DictSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.pyi new file mode 100644 index 00000000000..a7c70ef5648 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/object_type_matches_objects.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +ObjectTypeMatchesObjects = schemas.DictSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.py new file mode 100644 index 00000000000..072f28a7fbc --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Oneof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + one_of_0 = schemas.IntSchema + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + inclusive_minimum = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Oneof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.pyi new file mode 100644 index 00000000000..fcf3fb10220 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof.pyi @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class Oneof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + one_of_0 = schemas.IntSchema + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Oneof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.py new file mode 100644 index 00000000000..b38b5751a71 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofComplexTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'OneofComplexTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.pyi new file mode 100644 index 00000000000..b38b5751a71 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_complex_types.pyi @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofComplexTypes( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + } + + class properties: + bar = schemas.IntSchema + __annotations__ = { + "bar": bar, + } + + + bar: MetaOapg.properties.bar + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + bar=bar, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.StrSchema + __annotations__ = { + "foo": foo, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'OneofComplexTypes': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.py new file mode 100644 index 00000000000..343181f8463 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofWithBaseSchema( + schemas.ComposedBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + min_length = 2 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + max_length = 4 + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'OneofWithBaseSchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.pyi new file mode 100644 index 00000000000..dbd9a7fdf36 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_base_schema.pyi @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofWithBaseSchema( + schemas.ComposedBase, + schemas.StrSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'OneofWithBaseSchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.py new file mode 100644 index 00000000000..d0339f57edb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofWithEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + one_of_0 = schemas.NumberSchema + one_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'OneofWithEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.pyi new file mode 100644 index 00000000000..d0339f57edb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_empty_schema.pyi @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofWithEmptySchema( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + one_of_0 = schemas.NumberSchema + one_of_1 = schemas.AnyTypeSchema + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'OneofWithEmptySchema': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.py new file mode 100644 index 00000000000..06bb23eddae --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofWithRequired( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + "foo", + } + + + bar: schemas.AnyTypeSchema + foo: schemas.AnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + "baz", + } + + + foo: schemas.AnyTypeSchema + baz: schemas.AnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'OneofWithRequired': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.pyi new file mode 100644 index 00000000000..06bb23eddae --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/oneof_with_required.pyi @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class OneofWithRequired( + schemas.ComposedBase, + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + class one_of_0( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "bar", + "foo", + } + + + bar: schemas.AnyTypeSchema + foo: schemas.AnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_0': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + + class one_of_1( + schemas.AnyTypeSchema, + ): + + + class MetaOapg: + required = { + "foo", + "baz", + } + + + foo: schemas.AnyTypeSchema + baz: schemas.AnyTypeSchema + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'one_of_1': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + cls.one_of_0, + cls.one_of_1, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'OneofWithRequired': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.py new file mode 100644 index 00000000000..48773cbbe50 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PatternIsNotAnchored( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + regex=[{ + 'pattern': r'a+', # noqa: E501 + }] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PatternIsNotAnchored': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.pyi new file mode 100644 index 00000000000..d4c18e7fc23 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_is_not_anchored.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PatternIsNotAnchored( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PatternIsNotAnchored': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.py new file mode 100644 index 00000000000..49594057cf8 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PatternValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + regex=[{ + 'pattern': r'^a*$', # noqa: E501 + }] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PatternValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.pyi new file mode 100644 index 00000000000..a2fb9d02f18 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/pattern_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PatternValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PatternValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.py new file mode 100644 index 00000000000..7c73a200e5d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PropertiesWithEscapedCharacters( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo_nbar = schemas.NumberSchema + foo_bar = schemas.NumberSchema + foo__bar = schemas.NumberSchema + foo_rbar = schemas.NumberSchema + foo_tbar = schemas.NumberSchema + foo_fbar = schemas.NumberSchema + __annotations__ = { + "foo\nbar": foo_nbar, + "foo\"bar": foo_bar, + "foo\\bar": foo__bar, + "foo\rbar": foo_rbar, + "foo\tbar": foo_tbar, + "foo\fbar": foo_fbar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PropertiesWithEscapedCharacters': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.pyi new file mode 100644 index 00000000000..7c73a200e5d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/properties_with_escaped_characters.pyi @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PropertiesWithEscapedCharacters( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo_nbar = schemas.NumberSchema + foo_bar = schemas.NumberSchema + foo__bar = schemas.NumberSchema + foo_rbar = schemas.NumberSchema + foo_tbar = schemas.NumberSchema + foo_fbar = schemas.NumberSchema + __annotations__ = { + "foo\nbar": foo_nbar, + "foo\"bar": foo_bar, + "foo\\bar": foo__bar, + "foo\rbar": foo_rbar, + "foo\tbar": foo_tbar, + "foo\fbar": foo_fbar, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PropertiesWithEscapedCharacters': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py new file mode 100644 index 00000000000..344414e9ccb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PropertyNamedRefThatIsNotAReference( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + ref = schemas.StrSchema + __annotations__ = { + "$ref": ref, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["$ref"]) -> MetaOapg.properties.ref: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PropertyNamedRefThatIsNotAReference': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.pyi new file mode 100644 index 00000000000..344414e9ccb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/property_named_ref_that_is_not_a_reference.pyi @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class PropertyNamedRefThatIsNotAReference( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + ref = schemas.StrSchema + __annotations__ = { + "$ref": ref, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["$ref"]) -> MetaOapg.properties.ref: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'PropertyNamedRefThatIsNotAReference': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.py new file mode 100644 index 00000000000..9cc73aac392 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInAdditionalproperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def additional_properties() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + + def __getitem__(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: 'PropertyNamedRefThatIsNotAReference', + ) -> 'RefInAdditionalproperties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.pyi new file mode 100644 index 00000000000..9cc73aac392 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_additionalproperties.pyi @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInAdditionalproperties( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def additional_properties() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + + def __getitem__(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': + # dict_instance[name] accessor + return super().__getitem__(name) + + def get_item_oapg(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: 'PropertyNamedRefThatIsNotAReference', + ) -> 'RefInAdditionalproperties': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.py new file mode 100644 index 00000000000..92bf14b1702 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInAllof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + PropertyNamedRefThatIsNotAReference, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInAllof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.pyi new file mode 100644 index 00000000000..92bf14b1702 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_allof.pyi @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInAllof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def all_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + PropertyNamedRefThatIsNotAReference, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInAllof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.py new file mode 100644 index 00000000000..3f6479bdee2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInAnyof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + PropertyNamedRefThatIsNotAReference, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInAnyof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.pyi new file mode 100644 index 00000000000..3f6479bdee2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_anyof.pyi @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInAnyof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def any_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + PropertyNamedRefThatIsNotAReference, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInAnyof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.py new file mode 100644 index 00000000000..2b91677ec1d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInItems( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + + def __new__( + cls, + arg: typing.Union[typing.Tuple['PropertyNamedRefThatIsNotAReference'], typing.List['PropertyNamedRefThatIsNotAReference']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'RefInItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'PropertyNamedRefThatIsNotAReference': + return super().__getitem__(i) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.pyi new file mode 100644 index 00000000000..2b91677ec1d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_items.pyi @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInItems( + schemas.ListSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def items() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + + def __new__( + cls, + arg: typing.Union[typing.Tuple['PropertyNamedRefThatIsNotAReference'], typing.List['PropertyNamedRefThatIsNotAReference']], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'RefInItems': + return super().__new__( + cls, + arg, + _configuration=_configuration, + ) + + def __getitem__(self, i: int) -> 'PropertyNamedRefThatIsNotAReference': + return super().__getitem__(i) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.py new file mode 100644 index 00000000000..2fff970bc4e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInNot( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInNot': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.pyi new file mode 100644 index 00000000000..2fff970bc4e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_not.pyi @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInNot( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInNot': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.py new file mode 100644 index 00000000000..2f19ec7bc23 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInOneof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + PropertyNamedRefThatIsNotAReference, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInOneof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.pyi new file mode 100644 index 00000000000..2f19ec7bc23 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_oneof.pyi @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInOneof( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + PropertyNamedRefThatIsNotAReference, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInOneof': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.py new file mode 100644 index 00000000000..db766044b38 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInProperty( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def a() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + __annotations__ = { + "a": a, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInProperty': + return super().__new__( + cls, + *args, + a=a, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.pyi new file mode 100644 index 00000000000..db766044b38 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/ref_in_property.pyi @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RefInProperty( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + @staticmethod + def a() -> typing.Type['PropertyNamedRefThatIsNotAReference']: + return PropertyNamedRefThatIsNotAReference + __annotations__ = { + "a": a, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RefInProperty': + return super().__new__( + cls, + *args, + a=a, + _configuration=_configuration, + **kwargs, + ) + +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.py new file mode 100644 index 00000000000..464498e13fb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredDefaultValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredDefaultValidation': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.pyi new file mode 100644 index 00000000000..464498e13fb --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_default_validation.pyi @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredDefaultValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredDefaultValidation': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.py new file mode 100644 index 00000000000..aa43367ca2e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredValidation': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.pyi new file mode 100644 index 00000000000..aa43367ca2e --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_validation.pyi @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "foo", + } + + class properties: + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + "bar": bar, + } + + + foo: MetaOapg.properties.foo + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredValidation': + return super().__new__( + cls, + *args, + foo=foo, + bar=bar, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.py new file mode 100644 index 00000000000..98018693bc1 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredWithEmptyArray( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredWithEmptyArray': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.pyi new file mode 100644 index 00000000000..98018693bc1 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_empty_array.pyi @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredWithEmptyArray( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + foo = schemas.AnyTypeSchema + __annotations__ = { + "foo": foo, + } + + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredWithEmptyArray': + return super().__new__( + cls, + *args, + foo=foo, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.py new file mode 100644 index 00000000000..52a8999cd28 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredWithEscapedCharacters( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "foo\"bar", + "foo\nbar", + "foo\fbar", + "foo\tbar", + "foo\rbar", + "foo\\bar", + } + + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredWithEscapedCharacters': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.pyi new file mode 100644 index 00000000000..52a8999cd28 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/required_with_escaped_characters.pyi @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class RequiredWithEscapedCharacters( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "foo\"bar", + "foo\nbar", + "foo\fbar", + "foo\tbar", + "foo\rbar", + "foo\\bar", + } + + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'RequiredWithEscapedCharacters': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.py new file mode 100644 index 00000000000..26641b8c99f --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class SimpleEnumValidation( + schemas.EnumBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + enum_value_to_name = { + 1: "POSITIVE_1", + 2: "POSITIVE_2", + 3: "POSITIVE_3", + } + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def POSITIVE_2(cls): + return cls(2) + + @schemas.classproperty + def POSITIVE_3(cls): + return cls(3) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.pyi new file mode 100644 index 00000000000..61ed175912c --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/simple_enum_validation.pyi @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class SimpleEnumValidation( + schemas.EnumBase, + schemas.NumberSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + @schemas.classproperty + def POSITIVE_1(cls): + return cls(1) + + @schemas.classproperty + def POSITIVE_2(cls): + return cls(2) + + @schemas.classproperty + def POSITIVE_3(cls): + return cls(3) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.py new file mode 100644 index 00000000000..573e83bc999 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +StringTypeMatchesStrings = schemas.StrSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.pyi new file mode 100644 index 00000000000..573e83bc999 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/string_type_matches_strings.pyi @@ -0,0 +1,24 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 +StringTypeMatchesStrings = schemas.StrSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py new file mode 100644 index 00000000000..57a001ad752 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class alpha( + schemas.NumberSchema + ): + + + class MetaOapg: + inclusive_maximum = 3 + __annotations__ = { + "alpha": alpha, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["alpha"]) -> MetaOapg.properties.alpha: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + alpha: typing.Union[MetaOapg.properties.alpha, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing': + return super().__new__( + cls, + *args, + alpha=alpha, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi new file mode 100644 index 00000000000..caec048424d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + class properties: + + + class alpha( + schemas.NumberSchema + ): + pass + __annotations__ = { + "alpha": alpha, + } + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["alpha"]) -> MetaOapg.properties.alpha: ... + + @typing.overload + def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): + # dict_instance[name] accessor + return super().__getitem__(name) + + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ... + + @typing.overload + def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): + return super().get_item_oapg(name) + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + alpha: typing.Union[MetaOapg.properties.alpha, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing': + return super().__new__( + cls, + *args, + alpha=alpha, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.py new file mode 100644 index 00000000000..485edf4e3c1 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UniqueitemsFalseValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + unique_items = False + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UniqueitemsFalseValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.pyi new file mode 100644 index 00000000000..c5ded11279a --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_false_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UniqueitemsFalseValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UniqueitemsFalseValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.py new file mode 100644 index 00000000000..9fd610f6608 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UniqueitemsValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + unique_items = True + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UniqueitemsValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.pyi new file mode 100644 index 00000000000..175556c6807 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uniqueitems_validation.pyi @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UniqueitemsValidation( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UniqueitemsValidation': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.py new file mode 100644 index 00000000000..c8202e8dcc1 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UriFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uri' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UriFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.pyi new file mode 100644 index 00000000000..c8202e8dcc1 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UriFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uri' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UriFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.py new file mode 100644 index 00000000000..8a66998c4f2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UriReferenceFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uri-reference' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UriReferenceFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.pyi new file mode 100644 index 00000000000..8a66998c4f2 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_reference_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UriReferenceFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uri-reference' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UriReferenceFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.py new file mode 100644 index 00000000000..50fb98bcac0 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UriTemplateFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uri-template' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UriTemplateFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.pyi new file mode 100644 index 00000000000..50fb98bcac0 --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schema/uri_template_format.pyi @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + openapi 3.0.3 sample spec + + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from unit_test_api import schemas # noqa: F401 + + +class UriTemplateFormat( + schemas.AnyTypeSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + format = 'uri-template' + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'UriTemplateFormat': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schemas/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schemas/__init__.py new file mode 100644 index 00000000000..b01d70bdd5d --- /dev/null +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/components/schemas/__init__.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +# flake8: noqa + +# import all models into this package +# if you have many models here with many references from one model to another this may +# raise a RecursionError +# to avoid this, import only the models that you directly need like: +# from from unit_test_api.components.schema.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.allof import Allof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.anyof import Anyof +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.by_int import ByInt +from unit_test_api.components.schema.by_number import ByNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber +from unit_test_api.components.schema.date_time_format import DateTimeFormat +from unit_test_api.components.schema.email_format import EmailFormat +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.hostname_format import HostnameFormat +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.model_not import ModelNot +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_items import NestedItems +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.oneof import Oneof +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_validation import PatternValidation +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_property import RefInProperty +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_validation import RequiredValidation +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uri_format import UriFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.py index 5aed0224ec7..9b0d9bde9c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.pyi index 54581795def..a13efd709c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body.py index 77cb71d334b..016f83d764a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate application_json = AdditionalpropertiesAllowsASchemaWhichShouldValidate diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.py index 518202d323d..961b9022108 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.pyi index f33bc05117d..d80cf6f21ff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body.py index 453b03ab347..6e60d969987 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault application_json = AdditionalpropertiesAreAllowedByDefault diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.py index 73515eb7c3c..53c35c6d16a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.pyi index 1927ac249f7..0304c1042ab 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body.py index f7161a3573c..508c2b476ba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself application_json = AdditionalpropertiesCanExistByItself diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.py index 45e407f5535..dc3c8090d12 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.pyi index 801357c8f13..1f00747739c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body.py index 5242331286f..2ce93a78af7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators application_json = AdditionalpropertiesShouldNotLookInApplicators diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.py index 0b01bc0b426..e2021254b71 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.pyi index cf9a9e07bfe..8d0a520c003 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body.py index 48233ccd206..7738cf2c21c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof application_json = AllofCombinedWithAnyofOneof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.py index 0b21fb5d707..a9dddd24bd2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.pyi index 08a3adf81d0..71b21d6c079 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/request_body.py index 8319bac05bf..5ce6b67f73f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof application_json = Allof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.py index d19723e9590..08bd239b9b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.pyi index 6c1a739f3ab..05533bbf8e4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body.py index 36fa1b91c87..88f5b043385 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes application_json = AllofSimpleTypes diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.py index dbf91106a4c..7ead559aad2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.pyi index 7f3f729a7d6..1d890a5538a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body.py index b89cce3a860..95f7398115f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema application_json = AllofWithBaseSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.py index 5eb1e97647f..1d8a3cfd494 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.pyi index 528f5003525..2a7eb1283f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body.py index f8789eed68d..d5d36a1ae54 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema application_json = AllofWithOneEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.py index f2598642132..7779c1d8f10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.pyi index 75baa79e003..f24da4bd183 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body.py index 26756459d4d..825c6d9390a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema application_json = AllofWithTheFirstEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.py index 89fe18c719f..900eaedcc36 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.pyi index 2c1a6205695..88b99c46abe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body.py index 81c26cf7271..5b77fdf99e9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema application_json = AllofWithTheLastEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.py index 70ccf9ce629..6e6ecd04a58 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.pyi index 7b17a310099..8ccaaaaba72 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body.py index 0acb07a449c..d4c2159ec58 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas application_json = AllofWithTwoEmptySchemas diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.py index 3eaad49e114..5d36196598b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.pyi index cd74edaab22..71559ea2fd6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body.py index af9f45f32c5..0ce93ee09ba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes application_json = AnyofComplexTypes diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.py index 8878f969a85..406c187cefc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.pyi index e02d8b1e2a7..6c38453386e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body.py index 20a63522a31..ae80da59499 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof application_json = Anyof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.py index 2cee0655009..151f124873b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.pyi index 2dd5f923e2a..7efcbc36ad1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body.py index f9281027ac3..22b9e2d103a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema application_json = AnyofWithBaseSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.py index c52c9d65298..6e9ecb4e708 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.pyi index 73184d8e9ca..67245896c46 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body.py index 184b2ca6497..7e856ec5791 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema application_json = AnyofWithOneEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.py index e581f219360..609aea929ba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.pyi index 3df19a7ac46..2f73b4eb7ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body.py index 0e5493a9134..84f1efddf1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays application_json = ArrayTypeMatchesArrays diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.py index ddb24d3ebaf..6144755603c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.pyi index 80470e0ccc7..c71a1b0b8a2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body.py index 8c2ed3f4134..e3f074f812d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans application_json = BooleanTypeMatchesBooleans diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.py index be9d1668fdf..0e949741f7e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.pyi index 71291bd70c9..6e6c1c09d1c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body.py index 90d9a80ec83..591cb20ecb0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt application_json = ByInt diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.py index e80094a7e00..770e187c287 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.pyi index 70ca86ecec0..77c2cb819d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body.py index ed5fbe6f5e4..f530b32451f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber application_json = ByNumber diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.py index 6e70300677f..9f37c4c9dc2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.pyi index 4db8499d95e..a591b3175cd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body.py index 3a83355bf06..1dccd63d285 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber application_json = BySmallNumber diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.py index 952f7c139b9..c22d773777c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.pyi index 3a9a90880ec..a1360fbe6f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body.py index ea8f17c5fc8..2fa7a7f01b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat application_json = DateTimeFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.py index 9a716bf9ccb..89a71bbb9a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.pyi index 324bdf370c6..33d88c72cb5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body.py index dcdc60a397a..66b1eaa3d2c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat application_json = EmailFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.py index 91e52d208c0..a31bdef117a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.pyi index e64b02a6620..50a664c5c35 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body.py index 29ecb30cd09..01bde202cc0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse application_json = EnumWith0DoesNotMatchFalse diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.py index 6f967f10fc5..3f3d5e71c39 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.pyi index c457ddbbb13..4664a7e60e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body.py index f6d2acabd6f..64822498311 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue application_json = EnumWith1DoesNotMatchTrue diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.py index 9c7486fc09b..6edac805f95 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.pyi index dca867d52ae..2249ef427ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body.py index 578e5f6a1bd..b8dbd4d7bff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters application_json = EnumWithEscapedCharacters diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.py index 8d503876b8a..1cbec3ba8bd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.pyi index 76fc9ef4658..6bc77a6e6d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body.py index 0bc292ffb67..4612697d61d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 application_json = EnumWithFalseDoesNotMatch0 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.py index c57ad9e9967..428660c1a3b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.pyi index 659658c9d3e..ccaec0ea679 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body.py index 6def01224ed..c0fd28b3a24 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 application_json = EnumWithTrueDoesNotMatch1 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.py index f134e9eff22..32b53d29a69 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.pyi index 54ee1f64804..650f660f745 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body.py index 2f7871800e9..d0b11f6c9f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties application_json = EnumsInProperties diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.py index d1d28cd8cf4..f80fd81e93a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.pyi index 2d72a735411..80f73d768ce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body.py index 3c6b5b6e8fb..5bcf7b53efa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty application_json = ForbiddenProperty diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.py index 3c58241f45c..4dbb94f6465 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.pyi index 26188242bef..266ee5afba0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body.py index f166e11543a..fced9ffc36a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat application_json = HostnameFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.py index 1e11d0b7869..9fa6c4424a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.pyi index 7c5f08975ff..2525aecce5f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body.py index 4ad3bdbec68..1ee1f883e91 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers application_json = IntegerTypeMatchesIntegers diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.py index 6c9cf965228..a37d08f3f8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.pyi index 0f63c60d103..bd363735b5e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body.py index 9f51d4a1227..2424f8a2eec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf application_json = InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.py index b68648a770e..75bb68bae11 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.pyi index 9f49bfe7a63..1646d3e8f3c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body.py index 697b048d4e9..07f826808aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault application_json = InvalidStringValueForDefault diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.py index 0fd7b449c0d..b8892c248ec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.pyi index a05f5844baa..c9402ab6202 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body.py index 7f093a60ccb..0a9a81436d5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format application_json = Ipv4Format diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.py index 92a590f6190..60b0bba1e03 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.pyi index 8f2dc1960a1..a4897994581 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body.py index 237695aa6e7..f5861b65300 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format application_json = Ipv6Format diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.py index 9f057bb7058..fbc96344c5a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.pyi index b079f09e324..800c68e9f54 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body.py index 83764f518ef..ccc649dc174 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat application_json = JsonPointerFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.py index c2d3d9e1516..35475951e46 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.pyi index 0ee76b1edd8..12ac0e51a52 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body.py index d4d734e78aa..f7f1224bed2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation application_json = MaximumValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.py index c66782292b8..a6229792ed1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.pyi index 237dc5ae46b..aaaca21550c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body.py index 409c44595b9..628d2997625 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger application_json = MaximumValidationWithUnsignedInteger diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.py index 172f3d32be2..cd75ee1e5c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.pyi index 3782ed4f7a5..37c3c5c544f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body.py index 8dda3818f15..0390ef79740 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation application_json = MaxitemsValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.py index d551f1996ee..e62e85a8ee0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.pyi index f76523e4278..bd88d958b81 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body.py index de047472a4d..d41b1d27ade 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation application_json = MaxlengthValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.py index 6523a26e996..56065e37b48 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.pyi index 3e5996a76d7..f89e356c9fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body.py index 0273b49cc35..bc171df3899 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty application_json = Maxproperties0MeansTheObjectIsEmpty diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.py index f62b1a979a7..12a16cff134 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.pyi index 4276cd53a58..0428ff38d67 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body.py index 0209b1cabe8..a56b58af093 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation application_json = MaxpropertiesValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.py index 9f2c71e0428..c6f3e5bb449 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.pyi index 1a2e43d3d57..65d1c73d173 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body.py index 6753a9b9ad3..b447be8646f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation application_json = MinimumValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.py index 368a68f2a3c..e946d9f1394 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.pyi index 9cec43dafb6..da34d395a69 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body.py index a4cfb57c4b6..0bb12ac7e9d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger application_json = MinimumValidationWithSignedInteger diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.py index a2d1472f9a9..5401adf53fc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.pyi index 0f9d575c67c..fb59925e89b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body.py index 6ade15c1b01..3f1c6723415 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation application_json = MinitemsValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.py index df6fb00a4c1..2c3d599f660 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.pyi index 823f0fde73e..5e28df1b3c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body.py index 36d9eea3931..d9898738c8e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation application_json = MinlengthValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.py index bec54091e10..2dffb3c5449 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.pyi index 6795c506398..3408cb1387d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body.py index d13efb041e3..ae304a733ef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation application_json = MinpropertiesValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.py index f937fefb152..346201d18ed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.pyi index dd0b66b49cd..9bb505d125c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body.py index e79e955ab33..c977c5321a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics application_json = NestedAllofToCheckValidationSemantics diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.py index ab1e91d78ea..9516863acf3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.pyi index 9120be06e12..6a3f69618bd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body.py index 5b0876c9415..ec7cb8c6f1e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics application_json = NestedAnyofToCheckValidationSemantics diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.py index d259020d224..b8b21fe9e9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.pyi index d7ab7d36432..58a9d5cfbda 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body.py index d1fe031e5f8..4194da57284 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems application_json = NestedItems diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.py index 7af8591a898..f7e9688b6db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.pyi index ffcde511c37..ebdd2cd03f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body.py index 63ef74f6713..5aa03628d74 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics application_json = NestedOneofToCheckValidationSemantics diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.py index fdbe6a4476a..ccac97485fc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.pyi index 5caa30cddf2..e8d18916fbd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body.py index 6fa79b4cbca..d9f49b4ee01 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema application_json = NotMoreComplexSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.py index cd34f4185bf..9c26b14b1ab 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.pyi index f2b7737e5c0..53e56d76614 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/request_body.py index 191061de0d8..ae48be17004 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot application_json = ModelNot diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.py index 3d459f6a00b..18f2429f5d3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.pyi index 3ec7398cb41..4a3fa4c61d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body.py index 45b4ddd6ce9..537b2bf7afe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings application_json = NulCharactersInStrings diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.py index 04a16fd3bc6..85829352f1e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.pyi index b160315e34f..b03d41c94ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body.py index dbb8ea5fc1d..c4258f1e09b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject application_json = NullTypeMatchesOnlyTheNullObject diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.py index 3040541109a..66458e5be5c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.pyi index 23c77e076c5..d0e97123399 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body.py index 49c5d77f3a5..ce90ad2dab4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers application_json = NumberTypeMatchesNumbers diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.py index c93871c59bb..239602a55c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.pyi index 52b9a73c407..87fa7144277 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body.py index 4e690c48b04..5f51f558423 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation application_json = ObjectPropertiesValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.py index 7fc7af732f3..df1b93a5f31 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.pyi index bb5cd0ffecb..6a0a192049b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body.py index 215485e3eed..eb4b3d33f31 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects application_json = ObjectTypeMatchesObjects diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.py index f36248fe402..4a12bf29628 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.pyi index 062b33a762f..655e03ba0f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body.py index 49a966f4d27..cc5d59661ed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes application_json = OneofComplexTypes diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.py index f5b4cd589c5..a6a71fad90c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.pyi index 0d07be24939..fdac4170fff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body.py index d687ad3bd8a..528ca780700 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof application_json = Oneof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.py index 56f4e4f6b0a..a391d82b4bd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.pyi index 780882891ca..772355fec17 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body.py index dec4ab97735..773874755f1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema application_json = OneofWithBaseSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.py index 9e395611715..d46f5f9fadc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.pyi index 5fe4956e071..7d8c5152539 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body.py index b1848b3135b..ff35270baaa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema application_json = OneofWithEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.py index ff17f772f91..3f9869ab03c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.pyi index 0fa00eafabe..af967de3d37 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body.py index ff43a2ac73d..90ac51a6e9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired application_json = OneofWithRequired diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.py index 7784da193c3..a3006fbaed1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.pyi index c275f52edae..69e47d24198 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body.py index badc5815e60..bbdbce28b53 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored application_json = PatternIsNotAnchored diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.py index b2548ef8f31..ef6bc5c3741 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.pyi index fb11180c5a9..01c48fad8fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body.py index f8a74f89011..13b381c77b0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation application_json = PatternValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.py index 2dc8709d082..51807075521 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.pyi index db09ab345d4..6e45aa6f3d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body.py index 658839c1160..84836a7c53f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters application_json = PropertiesWithEscapedCharacters diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.py index 01e969dd098..2e63e5d9fcf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.pyi index f06b0d71dfc..4fbe49bf2ad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body.py index a2fa916039f..2a9cbc1c372 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference application_json = PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.py index 761586f5854..984f8cba9cb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.pyi index a89912a35d6..b60709bf8e2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body.py index 93caa3b29d9..93e2ebe2e68 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties application_json = RefInAdditionalproperties diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.py index 4db205f732f..9bc1cb184b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.pyi index 3434b159571..b22661988c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body.py index 754f366cc11..e071692b89d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof application_json = RefInAllof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.py index 52cd5941144..9f46ed50b63 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.pyi index a11e562d4d5..50d4bbf709d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body.py index 04b82a4e0cc..7eb3898472b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof application_json = RefInAnyof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.py index c1dfef213c5..8f387bb4531 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.pyi index 7ee9c87f8a1..5226c9bebe1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body.py index ec1c6725f39..eed13fa2553 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems application_json = RefInItems diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.py index ef5f3fa7d2e..e9e6fe119d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.pyi index 7ef6be5a222..e9304bcb3ad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body.py index 48357311ad0..01feee5da42 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot application_json = RefInNot diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.py index ad62f903c36..37d2d23fa9c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.pyi index f44212b058a..5f87203bea8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body.py index 26e86883258..297d2e81943 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof application_json = RefInOneof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.py index 28c1e504959..34a15d79bde 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.pyi index 57d3089b820..463044a272f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body.py index 8512ffb1cbf..080bccf35c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty application_json = RefInProperty diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.py index a82f2b7846e..0709b8a94da 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.pyi index 84a2844b16c..ed153868215 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body.py index 968fd56df63..d903b82d7a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation application_json = RequiredDefaultValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.py index 274342b5619..ab8a20f0d2e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.pyi index 4811e6900da..92ff640841a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body.py index 910f20f4162..497ea398bd5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation application_json = RequiredValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.py index d67d51f0924..531726784c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.pyi index 9fca3e7ebcc..b60657a86b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body.py index e06a73ad6a5..7e772793a83 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray application_json = RequiredWithEmptyArray diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.py index 08461a0b292..a95575972a5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.pyi index 6fce9a77113..fc121e2c3e9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body.py index 2022f32226e..b7a8f0fd946 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters application_json = RequiredWithEscapedCharacters diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.py index 6cd6dd0cbc6..499c06ab033 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.pyi index 922d77aeda8..2409b6fee36 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body.py index f656544dd48..249fcfce874 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation application_json = SimpleEnumValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.py index a7ba3061d8a..b70a16c4d8d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.pyi index 696b365ad88..f748d700a48 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body.py index 9a5d5a4bf0c..ffc46c15cb2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings application_json = StringTypeMatchesStrings diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.py index 30c532a6cdc..f92ae40a12c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.pyi index 653ba1908ad..45e2318abef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body.py index d989672c627..99d24d1a713 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing application_json = TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.py index 530cf8dccb6..fdec20f8cc3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.pyi index 297e2d51032..81d98698806 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body.py index 81adae98d39..3a2a9d3a2c3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation application_json = UniqueitemsFalseValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.py index 93a0cba92d5..a2cb555f0b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.pyi index 631dcf9f21b..dd2ad836c68 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body.py index d6f57a4e3de..e2dbde52d3e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation application_json = UniqueitemsValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.py index 39eb2266762..270ebac775f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.pyi index 5da19af09df..c3d59462f75 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body.py index 668f0429431..c61e687f606 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat application_json = UriFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.py index 6d44c1c78cd..5cf59375c4c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.pyi index d8f65983598..c7bbfb27940 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body.py index 396547a554e..592df361279 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat application_json = UriReferenceFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.py index 609f13cd95b..72689300a0c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.py @@ -25,7 +25,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.pyi index ad4181075ed..706055e0577 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body.py index a8d04362cc0..af22f3fb5ba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body.py @@ -24,7 +24,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat application_json = UriTemplateFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/response_for_200/__init__.py index 9379855beba..5184aab659c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate +from unit_test_api.components.schema.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate # body schemas application_json = AdditionalpropertiesAllowsASchemaWhichShouldValidate diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/response_for_200/__init__.py index 5432b264a7d..953d64ca6be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault +from unit_test_api.components.schema.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault # body schemas application_json = AdditionalpropertiesAreAllowedByDefault diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/response_for_200/__init__.py index 36a412fc3c8..271e82fc606 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself +from unit_test_api.components.schema.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself # body schemas application_json = AdditionalpropertiesCanExistByItself diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/response_for_200/__init__.py index a608e25aa52..0daf9118e9c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators +from unit_test_api.components.schema.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators # body schemas application_json = AdditionalpropertiesShouldNotLookInApplicators diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/response_for_200/__init__.py index 1f2bc06839b..b91049a20c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof +from unit_test_api.components.schema.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof # body schemas application_json = AllofCombinedWithAnyofOneof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/response_for_200/__init__.py index 0ca352f4e2f..653ca889627 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof import Allof +from unit_test_api.components.schema.allof import Allof # body schemas application_json = Allof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/response_for_200/__init__.py index 23e3f17abba..a1a9ade2887 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_simple_types import AllofSimpleTypes +from unit_test_api.components.schema.allof_simple_types import AllofSimpleTypes # body schemas application_json = AllofSimpleTypes diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py index 7e1028de645..244a2f88051 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema +from unit_test_api.components.schema.allof_with_base_schema import AllofWithBaseSchema # body schemas application_json = AllofWithBaseSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py index bfff58a71cc..5ccbd112838 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema +from unit_test_api.components.schema.allof_with_one_empty_schema import AllofWithOneEmptySchema # body schemas application_json = AllofWithOneEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py index a620fdeb15c..d63e81807c2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema +from unit_test_api.components.schema.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema # body schemas application_json = AllofWithTheFirstEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py index d7e03ad92c7..a45b48c67d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema +from unit_test_api.components.schema.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema # body schemas application_json = AllofWithTheLastEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/response_for_200/__init__.py index c1f6badab1a..36a59984b2e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas +from unit_test_api.components.schema.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas # body schemas application_json = AllofWithTwoEmptySchemas diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py index 656d22dc6e4..c8baa2c0897 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes +from unit_test_api.components.schema.anyof_complex_types import AnyofComplexTypes # body schemas application_json = AnyofComplexTypes diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/response_for_200/__init__.py index 7aff13e0092..cf33e1bfc51 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof import Anyof +from unit_test_api.components.schema.anyof import Anyof # body schemas application_json = Anyof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py index d231f9b6665..610c3c819ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema +from unit_test_api.components.schema.anyof_with_base_schema import AnyofWithBaseSchema # body schemas application_json = AnyofWithBaseSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py index 483778a707e..9834cbbdc87 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema +from unit_test_api.components.schema.anyof_with_one_empty_schema import AnyofWithOneEmptySchema # body schemas application_json = AnyofWithOneEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/response_for_200/__init__.py index 33364035e57..e4d050c12a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays +from unit_test_api.components.schema.array_type_matches_arrays import ArrayTypeMatchesArrays # body schemas application_json = ArrayTypeMatchesArrays diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/response_for_200/__init__.py index 011a11b2849..41a7865348a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans +from unit_test_api.components.schema.boolean_type_matches_booleans import BooleanTypeMatchesBooleans # body schemas application_json = BooleanTypeMatchesBooleans diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/response_for_200/__init__.py index 7788843d3f4..a97f669a5b4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_int import ByInt +from unit_test_api.components.schema.by_int import ByInt # body schemas application_json = ByInt diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/response_for_200/__init__.py index 6899a519f6e..aad64d8c8ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_number import ByNumber +from unit_test_api.components.schema.by_number import ByNumber # body schemas application_json = ByNumber diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/response_for_200/__init__.py index cfbedb0bd78..77cb2df4117 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.by_small_number import BySmallNumber +from unit_test_api.components.schema.by_small_number import BySmallNumber # body schemas application_json = BySmallNumber diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/response_for_200/__init__.py index dc553a97708..bf82853884e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.date_time_format import DateTimeFormat +from unit_test_api.components.schema.date_time_format import DateTimeFormat # body schemas application_json = DateTimeFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/response_for_200/__init__.py index e3b8a53ed14..cebc73068aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.email_format import EmailFormat +from unit_test_api.components.schema.email_format import EmailFormat # body schemas application_json = EmailFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/response_for_200/__init__.py index b143e6eca67..9fe2f2cd537 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse +from unit_test_api.components.schema.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse # body schemas application_json = EnumWith0DoesNotMatchFalse diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/response_for_200/__init__.py index 97cd77bdb5b..70a3f49884a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue +from unit_test_api.components.schema.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue # body schemas application_json = EnumWith1DoesNotMatchTrue diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py index 9a0819dcc44..f418747b687 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters +from unit_test_api.components.schema.enum_with_escaped_characters import EnumWithEscapedCharacters # body schemas application_json = EnumWithEscapedCharacters diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/response_for_200/__init__.py index e1607146781..f32eeed00e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 +from unit_test_api.components.schema.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 # body schemas application_json = EnumWithFalseDoesNotMatch0 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/response_for_200/__init__.py index bb705c82c7e..77cd9dd6ac5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 +from unit_test_api.components.schema.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 # body schemas application_json = EnumWithTrueDoesNotMatch1 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/response_for_200/__init__.py index 18a9f786a8d..336452dcbe9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.enums_in_properties import EnumsInProperties +from unit_test_api.components.schema.enums_in_properties import EnumsInProperties # body schemas application_json = EnumsInProperties diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/response_for_200/__init__.py index f5a7e0b0595..789f4e2c513 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.forbidden_property import ForbiddenProperty +from unit_test_api.components.schema.forbidden_property import ForbiddenProperty # body schemas application_json = ForbiddenProperty diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/response_for_200/__init__.py index db307627a22..0b25289dc49 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.hostname_format import HostnameFormat +from unit_test_api.components.schema.hostname_format import HostnameFormat # body schemas application_json = HostnameFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/response_for_200/__init__.py index df87b19e9fa..b524cc7c2c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers +from unit_test_api.components.schema.integer_type_matches_integers import IntegerTypeMatchesIntegers # body schemas application_json = IntegerTypeMatchesIntegers diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/response_for_200/__init__.py index 090981ddf48..72d698f3a56 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf +from unit_test_api.components.schema.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf # body schemas application_json = InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/response_for_200/__init__.py index ff57c5bdef5..f9a0e8aff8f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault +from unit_test_api.components.schema.invalid_string_value_for_default import InvalidStringValueForDefault # body schemas application_json = InvalidStringValueForDefault diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/response_for_200/__init__.py index df8bc6a18a4..3200aa7ee39 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv4_format import Ipv4Format +from unit_test_api.components.schema.ipv4_format import Ipv4Format # body schemas application_json = Ipv4Format diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/response_for_200/__init__.py index 7a729d2e77a..bdd2c9c28f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ipv6_format import Ipv6Format +from unit_test_api.components.schema.ipv6_format import Ipv6Format # body schemas application_json = Ipv6Format diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/response_for_200/__init__.py index c1157a67bad..2e29b2f8cee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.json_pointer_format import JsonPointerFormat +from unit_test_api.components.schema.json_pointer_format import JsonPointerFormat # body schemas application_json = JsonPointerFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/response_for_200/__init__.py index 3d66e730eb2..1ef7ab92dec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation import MaximumValidation +from unit_test_api.components.schema.maximum_validation import MaximumValidation # body schemas application_json = MaximumValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/response_for_200/__init__.py index e4520f7135c..e88bf2d0551 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger +from unit_test_api.components.schema.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger # body schemas application_json = MaximumValidationWithUnsignedInteger diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/response_for_200/__init__.py index 5591204ea39..323b39b2190 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxitems_validation import MaxitemsValidation +from unit_test_api.components.schema.maxitems_validation import MaxitemsValidation # body schemas application_json = MaxitemsValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/response_for_200/__init__.py index 8a1519dc18a..3f0fecde3d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxlength_validation import MaxlengthValidation +from unit_test_api.components.schema.maxlength_validation import MaxlengthValidation # body schemas application_json = MaxlengthValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/response_for_200/__init__.py index aad5de54a9e..d82f31a19af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty +from unit_test_api.components.schema.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty # body schemas application_json = Maxproperties0MeansTheObjectIsEmpty diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py index 77726e6909c..6ae3bc8ba20 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation +from unit_test_api.components.schema.maxproperties_validation import MaxpropertiesValidation # body schemas application_json = MaxpropertiesValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/response_for_200/__init__.py index dfb512fee0c..ad407bd0857 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation import MinimumValidation +from unit_test_api.components.schema.minimum_validation import MinimumValidation # body schemas application_json = MinimumValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/response_for_200/__init__.py index 573cdc31bfc..82cee940b18 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger +from unit_test_api.components.schema.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger # body schemas application_json = MinimumValidationWithSignedInteger diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/response_for_200/__init__.py index 0496ad741cd..aecc5229d79 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minitems_validation import MinitemsValidation +from unit_test_api.components.schema.minitems_validation import MinitemsValidation # body schemas application_json = MinitemsValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/response_for_200/__init__.py index 042040bd95c..159ee712243 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minlength_validation import MinlengthValidation +from unit_test_api.components.schema.minlength_validation import MinlengthValidation # body schemas application_json = MinlengthValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py index 938daa299ed..cdbabafe56e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.minproperties_validation import MinpropertiesValidation +from unit_test_api.components.schema.minproperties_validation import MinpropertiesValidation # body schemas application_json = MinpropertiesValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py index 952925c811b..2fea46a6af9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics +from unit_test_api.components.schema.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics # body schemas application_json = NestedAllofToCheckValidationSemantics diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py index 26aac0e5f88..77c1690643f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics +from unit_test_api.components.schema.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics # body schemas application_json = NestedAnyofToCheckValidationSemantics diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/response_for_200/__init__.py index eececd794e6..4dbe3fca24f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_items import NestedItems +from unit_test_api.components.schema.nested_items import NestedItems # body schemas application_json = NestedItems diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py index d38d9aa466a..f5d104bd68a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics +from unit_test_api.components.schema.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics # body schemas application_json = NestedOneofToCheckValidationSemantics diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/response_for_200/__init__.py index 02cbd8c44f8..c98b1887a84 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema +from unit_test_api.components.schema.not_more_complex_schema import NotMoreComplexSchema # body schemas application_json = NotMoreComplexSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/response_for_200/__init__.py index 7453435d0d8..ceea90e6f35 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.model_not import ModelNot +from unit_test_api.components.schema.model_not import ModelNot # body schemas application_json = ModelNot diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/response_for_200/__init__.py index 948374f1d9d..b7d59330fbf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings +from unit_test_api.components.schema.nul_characters_in_strings import NulCharactersInStrings # body schemas application_json = NulCharactersInStrings diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/response_for_200/__init__.py index ddbc2a32fc4..f1658c906b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject +from unit_test_api.components.schema.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject # body schemas application_json = NullTypeMatchesOnlyTheNullObject diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/response_for_200/__init__.py index df1d5b7eb5b..4738c4022d3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers +from unit_test_api.components.schema.number_type_matches_numbers import NumberTypeMatchesNumbers # body schemas application_json = NumberTypeMatchesNumbers diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/response_for_200/__init__.py index 58b529a654e..586c7b5791e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation +from unit_test_api.components.schema.object_properties_validation import ObjectPropertiesValidation # body schemas application_json = ObjectPropertiesValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/response_for_200/__init__.py index cb105d343c3..41d31aff89a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects +from unit_test_api.components.schema.object_type_matches_objects import ObjectTypeMatchesObjects # body schemas application_json = ObjectTypeMatchesObjects diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py index 0d732143355..0374decd70c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_complex_types import OneofComplexTypes +from unit_test_api.components.schema.oneof_complex_types import OneofComplexTypes # body schemas application_json = OneofComplexTypes diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/response_for_200/__init__.py index 3912c634e35..4e35f89eb54 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof import Oneof +from unit_test_api.components.schema.oneof import Oneof # body schemas application_json = Oneof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py index 0af6e0f9c3f..3690343f780 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema +from unit_test_api.components.schema.oneof_with_base_schema import OneofWithBaseSchema # body schemas application_json = OneofWithBaseSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py index d3c8e44bbd8..aecd14719c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema +from unit_test_api.components.schema.oneof_with_empty_schema import OneofWithEmptySchema # body schemas application_json = OneofWithEmptySchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/response_for_200/__init__.py index 7ec04280d0d..39d2c2a2378 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.oneof_with_required import OneofWithRequired +from unit_test_api.components.schema.oneof_with_required import OneofWithRequired # body schemas application_json = OneofWithRequired diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/response_for_200/__init__.py index e5b8ee6b97b..0628397fe19 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored +from unit_test_api.components.schema.pattern_is_not_anchored import PatternIsNotAnchored # body schemas application_json = PatternIsNotAnchored diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/response_for_200/__init__.py index f7bf241cd88..efb3a18d0fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.pattern_validation import PatternValidation +from unit_test_api.components.schema.pattern_validation import PatternValidation # body schemas application_json = PatternValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py index 18e683df1db..bc0ddc3682c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters +from unit_test_api.components.schema.properties_with_escaped_characters import PropertiesWithEscapedCharacters # body schemas application_json = PropertiesWithEscapedCharacters diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/response_for_200/__init__.py index eeeb78df96b..4be6cffd7a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference +from unit_test_api.components.schema.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference # body schemas application_json = PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/response_for_200/__init__.py index 210a28b4e42..eadcdece652 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties +from unit_test_api.components.schema.ref_in_additionalproperties import RefInAdditionalproperties # body schemas application_json = RefInAdditionalproperties diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/response_for_200/__init__.py index 375585fb3b9..e9900a9146b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_allof import RefInAllof +from unit_test_api.components.schema.ref_in_allof import RefInAllof # body schemas application_json = RefInAllof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/response_for_200/__init__.py index a8167fc2719..f9a47948eae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_anyof import RefInAnyof +from unit_test_api.components.schema.ref_in_anyof import RefInAnyof # body schemas application_json = RefInAnyof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/response_for_200/__init__.py index b798000913e..7867070e9a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_items import RefInItems +from unit_test_api.components.schema.ref_in_items import RefInItems # body schemas application_json = RefInItems diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/response_for_200/__init__.py index 82a7bbd1dff..dfdd7cbae0b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_not import RefInNot +from unit_test_api.components.schema.ref_in_not import RefInNot # body schemas application_json = RefInNot diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/response_for_200/__init__.py index d5fb89739cf..e283b602287 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_oneof import RefInOneof +from unit_test_api.components.schema.ref_in_oneof import RefInOneof # body schemas application_json = RefInOneof diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/response_for_200/__init__.py index f92f3e72365..69e7825be8f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.ref_in_property import RefInProperty +from unit_test_api.components.schema.ref_in_property import RefInProperty # body schemas application_json = RefInProperty diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/response_for_200/__init__.py index 5bc849ed73b..371ad0b2615 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_default_validation import RequiredDefaultValidation +from unit_test_api.components.schema.required_default_validation import RequiredDefaultValidation # body schemas application_json = RequiredDefaultValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/response_for_200/__init__.py index 80cc4fc1db5..a0ee1c33e58 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_validation import RequiredValidation +from unit_test_api.components.schema.required_validation import RequiredValidation # body schemas application_json = RequiredValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/response_for_200/__init__.py index a2eb440f37e..f0a80ad9943 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray +from unit_test_api.components.schema.required_with_empty_array import RequiredWithEmptyArray # body schemas application_json = RequiredWithEmptyArray diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py index 3eea19e42e6..657d376e67c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters +from unit_test_api.components.schema.required_with_escaped_characters import RequiredWithEscapedCharacters # body schemas application_json = RequiredWithEscapedCharacters diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/response_for_200/__init__.py index 59b2034507d..c121f9bce9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation +from unit_test_api.components.schema.simple_enum_validation import SimpleEnumValidation # body schemas application_json = SimpleEnumValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/response_for_200/__init__.py index 2beb495d3e6..91d37be3256 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings +from unit_test_api.components.schema.string_type_matches_strings import StringTypeMatchesStrings # body schemas application_json = StringTypeMatchesStrings diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/response_for_200/__init__.py index b74e0e6eb02..d4e83595875 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing +from unit_test_api.components.schema.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing # body schemas application_json = TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/response_for_200/__init__.py index 676d8e843d0..3df32b36374 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation +from unit_test_api.components.schema.uniqueitems_false_validation import UniqueitemsFalseValidation # body schemas application_json = UniqueitemsFalseValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/response_for_200/__init__.py index 3ade56fb257..a7cc09871fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation +from unit_test_api.components.schema.uniqueitems_validation import UniqueitemsValidation # body schemas application_json = UniqueitemsValidation diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/response_for_200/__init__.py index 4706c452b82..fa0984b97b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_format import UriFormat +from unit_test_api.components.schema.uri_format import UriFormat # body schemas application_json = UriFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/response_for_200/__init__.py index ca7ab14181f..4d281ac8531 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_reference_format import UriReferenceFormat +from unit_test_api.components.schema.uri_reference_format import UriReferenceFormat # body schemas application_json = UriReferenceFormat diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/response_for_200/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/response_for_200/__init__.py index 9ab96d2c12c..58edb80ba19 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/response_for_200/__init__.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/response_for_200/__init__.py @@ -15,7 +15,7 @@ from unit_test_api import schemas # noqa: F401 -from unit_test_api.model.uri_template_format import UriTemplateFormat +from unit_test_api.components.schema.uri_template_format import UriTemplateFormat # body schemas application_json = UriTemplateFormat diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES index 3584b2ac026..64bb19c8d73 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES @@ -3,30 +3,34 @@ .travis.yml README.md docs/apis/tags/DefaultApi.md -docs/models/AdditionOperator.md -docs/models/Operator.md -docs/models/SubtractionOperator.md +docs/components/schema/AdditionOperator.md +docs/components/schema/Operator.md +docs/components/schema/SubtractionOperator.md git_push.sh requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_models/__init__.py +test/components/schema/__init__.py +test/components/schema/test_addition_operator.py +test/components/schema/test_operator.py +test/components/schema/test_subtraction_operator.py this_package/__init__.py this_package/api_client.py this_package/apis/__init__.py this_package/apis/tags/default_api.py +this_package/components/__init__.py +this_package/components/schema/__init__.py +this_package/components/schema/addition_operator.py +this_package/components/schema/addition_operator.pyi +this_package/components/schema/operator.py +this_package/components/schema/operator.pyi +this_package/components/schema/subtraction_operator.py +this_package/components/schema/subtraction_operator.pyi +this_package/components/schemas/__init__.py this_package/configuration.py this_package/exceptions.py -this_package/model/__init__.py -this_package/model/addition_operator.py -this_package/model/addition_operator.pyi -this_package/model/operator.py -this_package/model/operator.pyi -this_package/model/subtraction_operator.py -this_package/model/subtraction_operator.pyi -this_package/models/__init__.py this_package/rest.py this_package/schemas.py tox.ini diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/VERSION b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/VERSION index 227cea21564..359a5b952d4 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/VERSION +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/VERSION @@ -1 +1 @@ -2.0.0 +2.0.0 \ No newline at end of file diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md index da56bb8f242..3863aba2faa 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md @@ -138,7 +138,7 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python import this_package from this_package.apis.tags import default_api -from this_package.model.operator import Operator +from this_package.components.schema.operator import Operator from pprint import pprint # Defining the host is optional and defaults to http://localhost:3000 # See configuration.py for a list of all supported configuration parameters. @@ -175,9 +175,9 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AdditionOperator](docs/models/AdditionOperator.md) - - [Operator](docs/models/Operator.md) - - [SubtractionOperator](docs/models/SubtractionOperator.md) + - [AdditionOperator](docs/components/schema/AdditionOperator.md) + - [Operator](docs/components/schema/Operator.md) + - [SubtractionOperator](docs/components/schema/SubtractionOperator.md) ## Documentation For Authorization @@ -188,20 +188,22 @@ Class | Method | HTTP request | Description ## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in this_package.apis and this_package.models may fail with a +If the OpenAPI document is large, imports in this_package.apis.tags.tag_to_api and this_package.components.schemas may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: Solution 1: Use specific imports for apis and models like: - `from this_package.apis.default_api import DefaultApi` -- `from this_package.model.pet import Pet` +- `from this_package.apis.paths.some_path import SomePath` +- `from this_package.paths.some_path.get import ApiForget` +- `from this_package.components.schema.pet import Pet` -Solution 1: +Solution 2: Before importing the package, adjust the maximum recursion limit as shown below: ``` import sys sys.setrecursionlimit(1500) import this_package -from this_package.apis import * -from this_package.models import * +from this_package.apis.tags.tag_to_api import * +from this_package.components.schemas import * ``` diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/apis/tags/DefaultApi.md b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/apis/tags/DefaultApi.md index b213274e904..61851f8046f 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/apis/tags/DefaultApi.md +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/apis/tags/DefaultApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ```python import this_package from this_package.apis.tags import default_api -from this_package.model.operator import Operator +from this_package.components.schema.operator import Operator from pprint import pprint # Defining the host is optional and defaults to http://localhost:3000 # See configuration.py for a list of all supported configuration parameters. @@ -57,7 +57,7 @@ skip_deserialization | bool | default is False | when True, headers and body wil # request_body.application_json Type | Description | Notes ------------- | ------------- | ------------- -[**Operator**](../../models/Operator.md) | | +[**Operator**](../../components/schema/Operator.md) | | ### Return Types, Responses diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/AdditionOperator.md b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/AdditionOperator.md similarity index 71% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/AdditionOperator.md rename to samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/AdditionOperator.md index 5303f6da17c..3c71b69cb76 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/AdditionOperator.md +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/AdditionOperator.md @@ -1,4 +1,4 @@ -# this_package.model.addition_operator.AdditionOperator +# this_package.components.schema.addition_operator.AdditionOperator ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **b** | decimal.Decimal, int, float, | decimal.Decimal, | | value must be a 64 bit float **operator_id** | str, | str, | | if omitted the server will use the default value of "ADD" -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/Operator.md b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/Operator.md similarity index 79% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/Operator.md rename to samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/Operator.md index 01a33e47239..bfbad42d374 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/Operator.md +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/Operator.md @@ -1,4 +1,4 @@ -# this_package.model.operator.Operator +# this_package.components.schema.operator.Operator ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Class Name | Input Type | Accessed Type | Description | Notes [AdditionOperator](AdditionOperator.md) | [**AdditionOperator**](AdditionOperator.md) | [**AdditionOperator**](AdditionOperator.md) | | [SubtractionOperator](SubtractionOperator.md) | [**SubtractionOperator**](SubtractionOperator.md) | [**SubtractionOperator**](SubtractionOperator.md) | | -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/SubtractionOperator.md b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/SubtractionOperator.md similarity index 71% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/SubtractionOperator.md rename to samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/SubtractionOperator.md index c7f17eb2f6a..9852ff29e0e 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/models/SubtractionOperator.md +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/SubtractionOperator.md @@ -1,4 +1,4 @@ -# this_package.model.subtraction_operator.SubtractionOperator +# this_package.components.schema.subtraction_operator.SubtractionOperator ## Model Type Info Input Type | Accessed Type | Description | Notes @@ -12,5 +12,5 @@ Key | Input Type | Accessed Type | Description | Notes **b** | decimal.Decimal, int, float, | decimal.Decimal, | | value must be a 64 bit float **operator_id** | str, | str, | | if omitted the server will use the default value of "SUB" -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_addition_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_addition_operator.py similarity index 87% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_addition_operator.py rename to samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_addition_operator.py index 2c185a95d97..e63c41beae9 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_addition_operator.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_addition_operator.py @@ -12,7 +12,7 @@ import unittest import this_package -from this_package.model.addition_operator import AdditionOperator +from this_package.components.schema.addition_operator import AdditionOperator from this_package import configuration diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_operator.py similarity index 89% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_operator.py rename to samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_operator.py index d61fa39d124..9132c7358e4 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_operator.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_operator.py @@ -12,7 +12,7 @@ import unittest import this_package -from this_package.model.operator import Operator +from this_package.components.schema.operator import Operator from this_package import configuration diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_subtraction_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_subtraction_operator.py similarity index 86% rename from samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_subtraction_operator.py rename to samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_subtraction_operator.py index 1e1979b9d8b..30f000f9550 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/test_models/test_subtraction_operator.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/schema/test_subtraction_operator.py @@ -12,7 +12,7 @@ import unittest import this_package -from this_package.model.subtraction_operator import SubtractionOperator +from this_package.components.schema.subtraction_operator import SubtractionOperator from this_package import configuration diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/__init__.py new file mode 100644 index 00000000000..5f04205d88c --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/__init__.py @@ -0,0 +1,5 @@ +# we can not import model classes here because that would create a circular +# reference which would not work in python2 +# do not import all models into this module because that uses a lot of memory and stack frames +# if you need the ability to import all models from one package, import them with +# from this_package.components.schemas import ModelA, ModelB diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.py new file mode 100644 index 00000000000..01d4788e468 --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + discriminator-test + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 1.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from this_package import schemas # noqa: F401 + + +class AdditionOperator( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "a", + "b", + "operator_id", + } + + class properties: + a = schemas.Float64Schema + b = schemas.Float64Schema + operator_id = schemas.StrSchema + __annotations__ = { + "a": a, + "b": b, + "operator_id": operator_id, + } + additional_properties = schemas.NotAnyTypeSchema + + a: MetaOapg.properties.a + b: MetaOapg.properties.b + operator_id: MetaOapg.properties.operator_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], + b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], + operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AdditionOperator': + return super().__new__( + cls, + *args, + a=a, + b=b, + operator_id=operator_id, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.pyi new file mode 100644 index 00000000000..01d4788e468 --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/addition_operator.pyi @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + discriminator-test + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 1.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from this_package import schemas # noqa: F401 + + +class AdditionOperator( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "a", + "b", + "operator_id", + } + + class properties: + a = schemas.Float64Schema + b = schemas.Float64Schema + operator_id = schemas.StrSchema + __annotations__ = { + "a": a, + "b": b, + "operator_id": operator_id, + } + additional_properties = schemas.NotAnyTypeSchema + + a: MetaOapg.properties.a + b: MetaOapg.properties.b + operator_id: MetaOapg.properties.operator_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], + b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], + operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'AdditionOperator': + return super().__new__( + cls, + *args, + a=a, + b=b, + operator_id=operator_id, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.py new file mode 100644 index 00000000000..9aa90e7d978 --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + discriminator-test + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 1.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from this_package import schemas # noqa: F401 + + +class Operator( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'operator_id': { + 'ADD': AdditionOperator, + 'AdditionOperator': AdditionOperator, + 'SUB': SubtractionOperator, + 'SubtractionOperator': SubtractionOperator, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + AdditionOperator, + SubtractionOperator, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Operator': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from this_package.components.schema.addition_operator import AdditionOperator +from this_package.components.schema.subtraction_operator import SubtractionOperator diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.pyi new file mode 100644 index 00000000000..9aa90e7d978 --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/operator.pyi @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + discriminator-test + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 1.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from this_package import schemas # noqa: F401 + + +class Operator( + schemas.ComposedSchema, +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + + @staticmethod + def discriminator(): + return { + 'operator_id': { + 'ADD': AdditionOperator, + 'AdditionOperator': AdditionOperator, + 'SUB': SubtractionOperator, + 'SubtractionOperator': SubtractionOperator, + } + } + + @classmethod + @functools.lru_cache() + def one_of(cls): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + return [ + AdditionOperator, + SubtractionOperator, + ] + + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], + ) -> 'Operator': + return super().__new__( + cls, + *args, + _configuration=_configuration, + **kwargs, + ) + +from this_package.components.schema.addition_operator import AdditionOperator +from this_package.components.schema.subtraction_operator import SubtractionOperator diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.py new file mode 100644 index 00000000000..6d766fd52da --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + discriminator-test + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 1.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from this_package import schemas # noqa: F401 + + +class SubtractionOperator( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "a", + "b", + "operator_id", + } + + class properties: + a = schemas.Float64Schema + b = schemas.Float64Schema + operator_id = schemas.StrSchema + __annotations__ = { + "a": a, + "b": b, + "operator_id": operator_id, + } + additional_properties = schemas.NotAnyTypeSchema + + a: MetaOapg.properties.a + b: MetaOapg.properties.b + operator_id: MetaOapg.properties.operator_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], + b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], + operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'SubtractionOperator': + return super().__new__( + cls, + *args, + a=a, + b=b, + operator_id=operator_id, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.pyi new file mode 100644 index 00000000000..6d766fd52da --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schema/subtraction_operator.pyi @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + discriminator-test + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: 1.0 + Generated by: https://openapi-generator.tech +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from this_package import schemas # noqa: F401 + + +class SubtractionOperator( + schemas.DictSchema +): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + + class MetaOapg: + required = { + "a", + "b", + "operator_id", + } + + class properties: + a = schemas.Float64Schema + b = schemas.Float64Schema + operator_id = schemas.StrSchema + __annotations__ = { + "a": a, + "b": b, + "operator_id": operator_id, + } + additional_properties = schemas.NotAnyTypeSchema + + a: MetaOapg.properties.a + b: MetaOapg.properties.b + operator_id: MetaOapg.properties.operator_id + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + # dict_instance[name] accessor + return super().__getitem__(name) + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... + + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... + + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): + return super().get_item_oapg(name) + + def __new__( + cls, + *args: typing.Union[dict, frozendict.frozendict, ], + a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], + b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], + operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], + _configuration: typing.Optional[schemas.Configuration] = None, + ) -> 'SubtractionOperator': + return super().__new__( + cls, + *args, + a=a, + b=b, + operator_id=operator_id, + _configuration=_configuration, + ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schemas/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schemas/__init__.py new file mode 100644 index 00000000000..755e18164fb --- /dev/null +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/components/schemas/__init__.py @@ -0,0 +1,16 @@ +# coding: utf-8 + +# flake8: noqa + +# import all models into this package +# if you have many models here with many references from one model to another this may +# raise a RecursionError +# to avoid this, import only the models that you directly need like: +# from from this_package.components.schema.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from this_package.components.schema.addition_operator import AdditionOperator +from this_package.components.schema.operator import Operator +from this_package.components.schema.subtraction_operator import SubtractionOperator diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.py index 8707bf777d1..e53cf74318e 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.py @@ -25,7 +25,7 @@ from this_package import schemas # noqa: F401 -from this_package.model.operator import Operator +from this_package.components.schema.operator import Operator from .. import path from . import response_for_200 diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.pyi index 15ce07c06ac..eccbf0e2a70 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.pyi +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/__init__.pyi @@ -25,7 +25,7 @@ import frozendict # noqa: F401 from this_package import schemas # noqa: F401 -from this_package.model.operator import Operator +from this_package.components.schema.operator import Operator from . import response_for_200 from . import request_body diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/request_body.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/request_body.py index 3dddc6191c1..f45913ba403 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/request_body.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/paths/operators/post/request_body.py @@ -24,7 +24,7 @@ from this_package import schemas # noqa: F401 -from this_package.model.operator import Operator +from this_package.components.schema.operator import Operator application_json = Operator diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/VERSION b/samples/openapi3/client/petstore/python/.openapi-generator/VERSION index 717311e32e3..359a5b952d4 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/python/.openapi-generator/VERSION @@ -1 +1 @@ -unset \ No newline at end of file +2.0.0 \ No newline at end of file From e7eb01931f5eb37b62f36ab2ac4927f6de97dd8b Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 10:08:43 -0700 Subject: [PATCH 09/11] Fixes manual test model imports --- .../python/test_manual/test_operator.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test_manual/test_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test_manual/test_operator.py index 4e72fa00b3b..8ea4aec30cc 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test_manual/test_operator.py +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test_manual/test_operator.py @@ -11,15 +11,13 @@ import unittest -from this_package.model.operator import Operator -from this_package.model.addition_operator import AdditionOperator -from this_package.model.subtraction_operator import SubtractionOperator -from this_package import configuration +from this_package.components.schema.operator import Operator +from this_package.components.schema.addition_operator import AdditionOperator +from this_package.components.schema.subtraction_operator import SubtractionOperator class TestOperator(unittest.TestCase): """Operator unit test stubs""" - _configuration = configuration.Configuration() def test_discriminator_works(self): op = Operator( From 579d32a7dd68a9cf3fa5a2159da5401cedab1402 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 17:43:39 -0700 Subject: [PATCH 10/11] Samples regenerated, added init for test components --- .../openapitools/codegen/languages/PythonClientCodegen.java | 1 + .../client/3_0_3_unit_test/python/.openapi-generator/FILES | 1 + .../client/3_0_3_unit_test/python/test/components/__init__.py | 0 .../python/.openapi-generator/FILES | 4 +--- .../python/test/components/__init__.py | 0 .../openapi3/client/petstore/python/.openapi-generator/FILES | 1 + .../client/petstore/python/test/components/__init__.py | 0 7 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 samples/openapi3/client/3_0_3_unit_test/python/test/components/__init__.py create mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/__init__.py create mode 100644 samples/openapi3/client/petstore/python/test/components/__init__.py diff --git a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 8c1277139f4..1f87e4e2ff9 100644 --- a/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -421,6 +421,7 @@ public void processOpts() { if (Boolean.FALSE.equals(excludeTests)) { supportingFiles.add(new SupportingFile("__init__." + templateExtension, testFolder, "__init__.py")); supportingFiles.add(new SupportingFile("__init__." + templateExtension, testFolder + File.separator + modelPackage.replace('.', File.separatorChar), "__init__.py")); + supportingFiles.add(new SupportingFile("__init__." + templateExtension, testFolder + File.separator + "components", "__init__.py")); } supportingFiles.add(new SupportingFile("api_client." + templateExtension, packagePath(), "api_client.py")); diff --git a/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES b/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES index 177da8497d6..87941b27310 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES +++ b/samples/openapi3/client/3_0_3_unit_test/python/.openapi-generator/FILES @@ -123,6 +123,7 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/components/__init__.py test/components/schema/__init__.py test/components/schema/test_additionalproperties_allows_a_schema_which_should_validate.py test/components/schema/test_additionalproperties_are_allowed_by_default.py diff --git a/samples/openapi3/client/3_0_3_unit_test/python/test/components/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/test/components/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES index 64bb19c8d73..53a8265395d 100644 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES +++ b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/.openapi-generator/FILES @@ -12,10 +12,8 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/components/__init__.py test/components/schema/__init__.py -test/components/schema/test_addition_operator.py -test/components/schema/test_operator.py -test/components/schema/test_subtraction_operator.py this_package/__init__.py this_package/api_client.py this_package/apis/__init__.py diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/test/components/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/FILES b/samples/openapi3/client/petstore/python/.openapi-generator/FILES index 1de746c1ff1..9ff2044177e 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/python/.openapi-generator/FILES @@ -396,5 +396,6 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/components/__init__.py test/components/schema/__init__.py tox.ini diff --git a/samples/openapi3/client/petstore/python/test/components/__init__.py b/samples/openapi3/client/petstore/python/test/components/__init__.py new file mode 100644 index 00000000000..e69de29bb2d From 34ab640be3dfc9a43fcd240ad0570ca6e57ea3bf Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 23 Oct 2022 18:00:40 -0700 Subject: [PATCH 11/11] Removes model models folders --- .../python/unit_test_api/model/__init__.py | 5 - ...s_allows_a_schema_which_should_validate.py | 87 -------- ..._allows_a_schema_which_should_validate.pyi | 87 -------- ...tionalproperties_are_allowed_by_default.py | 89 -------- ...ionalproperties_are_allowed_by_default.pyi | 89 -------- ...dditionalproperties_can_exist_by_itself.py | 57 ----- ...ditionalproperties_can_exist_by_itself.pyi | 57 ----- ...operties_should_not_look_in_applicators.py | 123 ---------- ...perties_should_not_look_in_applicators.pyi | 123 ---------- .../python/unit_test_api/model/allof.py | 177 --------------- .../python/unit_test_api/model/allof.pyi | 177 --------------- .../model/allof_combined_with_anyof_oneof.py | 161 ------------- .../model/allof_combined_with_anyof_oneof.pyi | 158 ------------- .../unit_test_api/model/allof_simple_types.py | 111 --------- .../model/allof_simple_types.pyi | 109 --------- .../model/allof_with_base_schema.py | 211 ------------------ .../model/allof_with_base_schema.pyi | 211 ------------------ .../model/allof_with_one_empty_schema.py | 65 ------ .../model/allof_with_one_empty_schema.pyi | 65 ------ .../allof_with_the_first_empty_schema.py | 67 ------ .../allof_with_the_first_empty_schema.pyi | 67 ------ .../model/allof_with_the_last_empty_schema.py | 67 ------ .../allof_with_the_last_empty_schema.pyi | 67 ------ .../model/allof_with_two_empty_schemas.py | 67 ------ .../model/allof_with_two_empty_schemas.pyi | 67 ------ .../python/unit_test_api/model/anyof.py | 89 -------- .../python/unit_test_api/model/anyof.pyi | 88 -------- .../model/anyof_complex_types.py | 177 --------------- .../model/anyof_complex_types.pyi | 177 --------------- .../model/anyof_with_base_schema.py | 110 --------- .../model/anyof_with_base_schema.pyi | 108 --------- .../model/anyof_with_one_empty_schema.py | 67 ------ .../model/anyof_with_one_empty_schema.pyi | 67 ------ .../model/array_type_matches_arrays.py | 51 ----- .../model/array_type_matches_arrays.pyi | 51 ----- .../model/boolean_type_matches_booleans.py | 24 -- .../model/boolean_type_matches_booleans.pyi | 24 -- .../python/unit_test_api/model/by_int.py | 51 ----- .../python/unit_test_api/model/by_int.pyi | 50 ----- .../python/unit_test_api/model/by_number.py | 51 ----- .../python/unit_test_api/model/by_number.pyi | 50 ----- .../unit_test_api/model/by_small_number.py | 51 ----- .../unit_test_api/model/by_small_number.pyi | 50 ----- .../unit_test_api/model/date_time_format.py | 52 ----- .../unit_test_api/model/date_time_format.pyi | 52 ----- .../unit_test_api/model/email_format.py | 51 ----- .../unit_test_api/model/email_format.pyi | 51 ----- .../model/enum_with0_does_not_match_false.py | 44 ---- .../model/enum_with0_does_not_match_false.pyi | 38 ---- .../model/enum_with1_does_not_match_true.py | 44 ---- .../model/enum_with1_does_not_match_true.pyi | 38 ---- .../model/enum_with_escaped_characters.py | 49 ---- .../model/enum_with_escaped_characters.pyi | 42 ---- .../model/enum_with_false_does_not_match0.py | 44 ---- .../model/enum_with_false_does_not_match0.pyi | 38 ---- .../model/enum_with_true_does_not_match1.py | 44 ---- .../model/enum_with_true_does_not_match1.pyi | 38 ---- .../model/enums_in_properties.py | 123 ---------- .../model/enums_in_properties.pyi | 111 --------- .../unit_test_api/model/forbidden_property.py | 79 ------- .../model/forbidden_property.pyi | 79 ------- .../unit_test_api/model/hostname_format.py | 51 ----- .../unit_test_api/model/hostname_format.pyi | 51 ----- .../model/integer_type_matches_integers.py | 24 -- .../model/integer_type_matches_integers.pyi | 24 -- ...not_raise_error_when_float_division_inf.py | 37 --- ...ot_raise_error_when_float_division_inf.pyi | 34 --- .../model/invalid_string_value_for_default.py | 87 -------- .../invalid_string_value_for_default.pyi | 84 ------- .../python/unit_test_api/model/ipv4_format.py | 51 ----- .../unit_test_api/model/ipv4_format.pyi | 51 ----- .../python/unit_test_api/model/ipv6_format.py | 51 ----- .../unit_test_api/model/ipv6_format.pyi | 51 ----- .../model/json_pointer_format.py | 51 ----- .../model/json_pointer_format.pyi | 51 ----- .../unit_test_api/model/maximum_validation.py | 51 ----- .../model/maximum_validation.pyi | 50 ----- ...aximum_validation_with_unsigned_integer.py | 51 ----- ...ximum_validation_with_unsigned_integer.pyi | 50 ----- .../model/maxitems_validation.py | 51 ----- .../model/maxitems_validation.pyi | 50 ----- .../model/maxlength_validation.py | 51 ----- .../model/maxlength_validation.pyi | 50 ----- ...axproperties0_means_the_object_is_empty.py | 51 ----- ...xproperties0_means_the_object_is_empty.pyi | 50 ----- .../model/maxproperties_validation.py | 51 ----- .../model/maxproperties_validation.pyi | 50 ----- .../unit_test_api/model/minimum_validation.py | 51 ----- .../model/minimum_validation.pyi | 50 ----- .../minimum_validation_with_signed_integer.py | 51 ----- ...minimum_validation_with_signed_integer.pyi | 50 ----- .../model/minitems_validation.py | 51 ----- .../model/minitems_validation.pyi | 50 ----- .../model/minlength_validation.py | 51 ----- .../model/minlength_validation.pyi | 50 ----- .../model/minproperties_validation.py | 51 ----- .../model/minproperties_validation.pyi | 50 ----- .../python/unit_test_api/model/model_not.py | 51 ----- .../python/unit_test_api/model/model_not.pyi | 51 ----- ...ted_allof_to_check_validation_semantics.py | 101 --------- ...ed_allof_to_check_validation_semantics.pyi | 101 --------- ...ted_anyof_to_check_validation_semantics.py | 101 --------- ...ed_anyof_to_check_validation_semantics.pyi | 101 --------- .../unit_test_api/model/nested_items.py | 117 ---------- .../unit_test_api/model/nested_items.pyi | 117 ---------- ...ted_oneof_to_check_validation_semantics.py | 101 --------- ...ed_oneof_to_check_validation_semantics.pyi | 101 --------- .../model/not_more_complex_schema.py | 100 --------- .../model/not_more_complex_schema.pyi | 100 --------- .../model/nul_characters_in_strings.py | 44 ---- .../model/nul_characters_in_strings.pyi | 38 ---- .../null_type_matches_only_the_null_object.py | 24 -- ...null_type_matches_only_the_null_object.pyi | 24 -- .../model/number_type_matches_numbers.py | 24 -- .../model/number_type_matches_numbers.pyi | 24 -- .../model/object_properties_validation.py | 89 -------- .../model/object_properties_validation.pyi | 89 -------- .../model/object_type_matches_objects.py | 24 -- .../model/object_type_matches_objects.pyi | 24 -- .../python/unit_test_api/model/oneof.py | 89 -------- .../python/unit_test_api/model/oneof.pyi | 88 -------- .../model/oneof_complex_types.py | 177 --------------- .../model/oneof_complex_types.pyi | 177 --------------- .../model/oneof_with_base_schema.py | 110 --------- .../model/oneof_with_base_schema.pyi | 108 --------- .../model/oneof_with_empty_schema.py | 67 ------ .../model/oneof_with_empty_schema.pyi | 67 ------ .../model/oneof_with_required.py | 124 ---------- .../model/oneof_with_required.pyi | 124 ---------- .../model/pattern_is_not_anchored.py | 53 ----- .../model/pattern_is_not_anchored.pyi | 50 ----- .../unit_test_api/model/pattern_validation.py | 53 ----- .../model/pattern_validation.pyi | 50 ----- .../properties_with_escaped_characters.py | 117 ---------- .../properties_with_escaped_characters.pyi | 117 ---------- ...perty_named_ref_that_is_not_a_reference.py | 77 ------- ...erty_named_ref_that_is_not_a_reference.pyi | 77 ------- .../model/ref_in_additionalproperties.py | 62 ----- .../model/ref_in_additionalproperties.pyi | 62 ----- .../unit_test_api/model/ref_in_allof.py | 66 ------ .../unit_test_api/model/ref_in_allof.pyi | 66 ------ .../unit_test_api/model/ref_in_anyof.py | 66 ------ .../unit_test_api/model/ref_in_anyof.pyi | 66 ------ .../unit_test_api/model/ref_in_items.py | 56 ----- .../unit_test_api/model/ref_in_items.pyi | 56 ----- .../python/unit_test_api/model/ref_in_not.py | 56 ----- .../python/unit_test_api/model/ref_in_not.pyi | 56 ----- .../unit_test_api/model/ref_in_oneof.py | 66 ------ .../unit_test_api/model/ref_in_oneof.pyi | 66 ------ .../unit_test_api/model/ref_in_property.py | 84 ------- .../unit_test_api/model/ref_in_property.pyi | 84 ------- .../model/required_default_validation.py | 79 ------- .../model/required_default_validation.pyi | 79 ------- .../model/required_validation.py | 94 -------- .../model/required_validation.pyi | 94 -------- .../model/required_with_empty_array.py | 79 ------- .../model/required_with_empty_array.pyi | 79 ------- .../model/required_with_escaped_characters.py | 59 ----- .../required_with_escaped_characters.pyi | 59 ----- .../model/simple_enum_validation.py | 54 ----- .../model/simple_enum_validation.pyi | 46 ---- .../model/string_type_matches_strings.py | 24 -- .../model/string_type_matches_strings.pyi | 24 -- ..._do_anything_if_the_property_is_missing.py | 86 ------- ...do_anything_if_the_property_is_missing.pyi | 83 ------- .../model/uniqueitems_false_validation.py | 51 ----- .../model/uniqueitems_false_validation.pyi | 50 ----- .../model/uniqueitems_validation.py | 51 ----- .../model/uniqueitems_validation.pyi | 50 ----- .../python/unit_test_api/model/uri_format.py | 51 ----- .../python/unit_test_api/model/uri_format.pyi | 51 ----- .../model/uri_reference_format.py | 51 ----- .../model/uri_reference_format.pyi | 51 ----- .../model/uri_template_format.py | 51 ----- .../model/uri_template_format.pyi | 51 ----- .../python/unit_test_api/models/__init__.py | 100 --------- .../python/this_package/model/__init__.py | 5 - .../this_package/model/addition_operator.py | 98 -------- .../this_package/model/addition_operator.pyi | 98 -------- .../python/this_package/model/operator.py | 79 ------- .../python/this_package/model/operator.pyi | 79 ------- .../model/subtraction_operator.py | 98 -------- .../model/subtraction_operator.pyi | 98 -------- .../python/this_package/models/__init__.py | 16 -- 184 files changed, 13027 deletions(-) delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/__init__.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.py delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.pyi delete mode 100644 samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/models/__init__.py delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/__init__.py delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.py delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.pyi delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.py delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.pyi delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.py delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.pyi delete mode 100644 samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/models/__init__.py diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/__init__.py deleted file mode 100644 index 0056d7a31eb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from unit_test_api.models import ModelA, ModelB diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py deleted file mode 100644 index 66cc28eb41e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesAllowsASchemaWhichShouldValidate( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - bar = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - additional_properties = schemas.BoolSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi deleted file mode 100644 index 66cc28eb41e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesAllowsASchemaWhichShouldValidate( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - bar = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - additional_properties = schemas.BoolSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.py deleted file mode 100644 index 273766346b2..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesAreAllowedByDefault( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - bar = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalpropertiesAreAllowedByDefault': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi deleted file mode 100644 index 273766346b2..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesAreAllowedByDefault( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - bar = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AdditionalpropertiesAreAllowedByDefault': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.py deleted file mode 100644 index 6f57c6b4e80..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesCanExistByItself( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'AdditionalpropertiesCanExistByItself': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi deleted file mode 100644 index 6f57c6b4e80..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesCanExistByItself( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'AdditionalpropertiesCanExistByItself': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py deleted file mode 100644 index cabf9af560d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesShouldNotLookInApplicators( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'AdditionalpropertiesShouldNotLookInApplicators': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi deleted file mode 100644 index cabf9af560d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AdditionalpropertiesShouldNotLookInApplicators( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - additional_properties = schemas.BoolSchema - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, bool, ], - ) -> 'AdditionalpropertiesShouldNotLookInApplicators': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.py deleted file mode 100644 index 2e093c6cec6..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Allof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Allof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.pyi deleted file mode 100644 index 2e093c6cec6..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof.pyi +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Allof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Allof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.py deleted file mode 100644 index e40aab43eb4..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofCombinedWithAnyofOneof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - multiple_of = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - multiple_of = 5 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class any_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - multiple_of = 3 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - ] - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofCombinedWithAnyofOneof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.pyi deleted file mode 100644 index bc7e2eaf6bc..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_combined_with_anyof_oneof.pyi +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofCombinedWithAnyofOneof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class any_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - ] - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofCombinedWithAnyofOneof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.py deleted file mode 100644 index da2bd544777..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofSimpleTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - inclusive_maximum = 30 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - inclusive_minimum = 20 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofSimpleTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.pyi deleted file mode 100644 index ce96198a3e6..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_simple_types.pyi +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofSimpleTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofSimpleTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.py deleted file mode 100644 index 6677ca50a7c..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.py +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithBaseSchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "baz", - } - - class properties: - baz = schemas.NoneSchema - __annotations__ = { - "baz": baz, - } - - - baz: MetaOapg.properties.baz - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - baz: typing.Union[MetaOapg.properties.baz, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - baz=baz, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithBaseSchema': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.pyi deleted file mode 100644 index 6677ca50a7c..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_base_schema.pyi +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithBaseSchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - class all_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - - class all_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "baz", - } - - class properties: - baz = schemas.NoneSchema - __annotations__ = { - "baz": baz, - } - - - baz: MetaOapg.properties.baz - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baz", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - baz: typing.Union[MetaOapg.properties.baz, None, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_1': - return super().__new__( - cls, - *args, - baz=baz, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithBaseSchema': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.py deleted file mode 100644 index ccdf6237db3..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithOneEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithOneEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.pyi deleted file mode 100644 index ccdf6237db3..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_one_empty_schema.pyi +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithOneEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithOneEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.py deleted file mode 100644 index ca512486cf0..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithTheFirstEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - all_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithTheFirstEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.pyi deleted file mode 100644 index ca512486cf0..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_first_empty_schema.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithTheFirstEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - all_of_1 = schemas.NumberSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithTheFirstEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.py deleted file mode 100644 index d243c83104b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithTheLastEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.NumberSchema - all_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithTheLastEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.pyi deleted file mode 100644 index d243c83104b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_the_last_empty_schema.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithTheLastEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.NumberSchema - all_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithTheLastEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.py deleted file mode 100644 index 0ee8f8a3243..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithTwoEmptySchemas( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - all_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithTwoEmptySchemas': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.pyi deleted file mode 100644 index 0ee8f8a3243..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/allof_with_two_empty_schemas.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AllofWithTwoEmptySchemas( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - all_of_0 = schemas.AnyTypeSchema - all_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - cls.all_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AllofWithTwoEmptySchemas': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.py deleted file mode 100644 index fe69e481437..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Anyof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - any_of_0 = schemas.IntSchema - - - class any_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - inclusive_minimum = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Anyof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.pyi deleted file mode 100644 index d2bf4a03d2e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Anyof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - any_of_0 = schemas.IntSchema - - - class any_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Anyof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.py deleted file mode 100644 index 6e0b801eef7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AnyofComplexTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class any_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - - - class any_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_1': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyofComplexTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.pyi deleted file mode 100644 index 6e0b801eef7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_complex_types.pyi +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AnyofComplexTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class any_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - - - class any_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_1': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyofComplexTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.py deleted file mode 100644 index a310a33c9d2..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AnyofWithBaseSchema( - schemas.ComposedBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class any_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - max_length = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class any_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - min_length = 4 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AnyofWithBaseSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.pyi deleted file mode 100644 index 65862600d54..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_base_schema.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AnyofWithBaseSchema( - schemas.ComposedBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class any_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class any_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AnyofWithBaseSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.py deleted file mode 100644 index 117c0374aa8..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AnyofWithOneEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - any_of_0 = schemas.NumberSchema - any_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyofWithOneEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.pyi deleted file mode 100644 index 117c0374aa8..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/anyof_with_one_empty_schema.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class AnyofWithOneEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - any_of_0 = schemas.NumberSchema - any_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - cls.any_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'AnyofWithOneEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.py deleted file mode 100644 index 7c6cc33a3d5..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ArrayTypeMatchesArrays( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayTypeMatchesArrays': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.pyi deleted file mode 100644 index 7c6cc33a3d5..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/array_type_matches_arrays.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ArrayTypeMatchesArrays( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - items = schemas.AnyTypeSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'ArrayTypeMatchesArrays': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.py deleted file mode 100644 index 8e9d55f91a4..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -BooleanTypeMatchesBooleans = schemas.BoolSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.pyi deleted file mode 100644 index 8e9d55f91a4..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/boolean_type_matches_booleans.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -BooleanTypeMatchesBooleans = schemas.BoolSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.py deleted file mode 100644 index 76988d65937..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ByInt( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - multiple_of = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ByInt': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.pyi deleted file mode 100644 index d93f787d68b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_int.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ByInt( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ByInt': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.py deleted file mode 100644 index 184acb97b7f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ByNumber( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - multiple_of = 1.5 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ByNumber': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.pyi deleted file mode 100644 index 1a082d5d3e1..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_number.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ByNumber( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ByNumber': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.py deleted file mode 100644 index 426ee59b91e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class BySmallNumber( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - multiple_of = 0.00010 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'BySmallNumber': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.pyi deleted file mode 100644 index 95da8644ea6..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/by_small_number.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class BySmallNumber( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'BySmallNumber': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.py deleted file mode 100644 index 9fed78c4907..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class DateTimeFormat( - schemas.DateTimeBase, - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'date-time' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DateTimeFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.pyi deleted file mode 100644 index 9fed78c4907..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/date_time_format.pyi +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class DateTimeFormat( - schemas.DateTimeBase, - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'date-time' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'DateTimeFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.py deleted file mode 100644 index 8a3fa4bbabb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EmailFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'email' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EmailFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.pyi deleted file mode 100644 index 8a3fa4bbabb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/email_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EmailFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'email' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EmailFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.py deleted file mode 100644 index 2f77c5996f4..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWith0DoesNotMatchFalse( - schemas.EnumBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 0: "POSITIVE_0", - } - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.pyi deleted file mode 100644 index 337edc4956d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with0_does_not_match_false.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWith0DoesNotMatchFalse( - schemas.EnumBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_0(cls): - return cls(0) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.py deleted file mode 100644 index 2acbb376d63..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWith1DoesNotMatchTrue( - schemas.EnumBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 1: "POSITIVE_1", - } - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.pyi deleted file mode 100644 index 8664a7f747f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with1_does_not_match_true.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWith1DoesNotMatchTrue( - schemas.EnumBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.py deleted file mode 100644 index c8f68c1000d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWithEscapedCharacters( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "foo\nbar": "FOO_BAR", - "foo\rbar": "FOO_BAR", - } - - @schemas.classproperty - def FOO_BAR(cls): - return cls("foo\nbar") - - @schemas.classproperty - def FOO_BAR(cls): - return cls("foo\rbar") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.pyi deleted file mode 100644 index 6fb1827e441..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_escaped_characters.pyi +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWithEscapedCharacters( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def FOO_BAR(cls): - return cls("foo\nbar") - - @schemas.classproperty - def FOO_BAR(cls): - return cls("foo\rbar") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.py deleted file mode 100644 index c4992b57a35..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWithFalseDoesNotMatch0( - schemas.EnumBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - schemas.BoolClass.FALSE: "FALSE", - } - - @schemas.classproperty - def FALSE(cls): - return cls(False) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.pyi deleted file mode 100644 index 35ef43076ce..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_false_does_not_match0.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWithFalseDoesNotMatch0( - schemas.EnumBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def FALSE(cls): - return cls(False) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.py deleted file mode 100644 index a8e80747103..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWithTrueDoesNotMatch1( - schemas.EnumBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - schemas.BoolClass.TRUE: "TRUE", - } - - @schemas.classproperty - def TRUE(cls): - return cls(True) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.pyi deleted file mode 100644 index f86fc0d2810..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enum_with_true_does_not_match1.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumWithTrueDoesNotMatch1( - schemas.EnumBase, - schemas.BoolSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def TRUE(cls): - return cls(True) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.py deleted file mode 100644 index 0010f712aba..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumsInProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "bar", - } - - class properties: - - - class bar( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "bar": "BAR", - } - - @schemas.classproperty - def BAR(cls): - return cls("bar") - - - class foo( - schemas.EnumBase, - schemas.StrSchema - ): - - - class MetaOapg: - enum_value_to_name = { - "foo": "FOO", - } - - @schemas.classproperty - def FOO(cls): - return cls("foo") - __annotations__ = { - "bar": bar, - "foo": foo, - } - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union[MetaOapg.properties.bar, str, ], - foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EnumsInProperties': - return super().__new__( - cls, - *args, - bar=bar, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.pyi deleted file mode 100644 index d45a82aad04..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/enums_in_properties.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class EnumsInProperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "bar", - } - - class properties: - - - class bar( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def BAR(cls): - return cls("bar") - - - class foo( - schemas.EnumBase, - schemas.StrSchema - ): - - @schemas.classproperty - def FOO(cls): - return cls("foo") - __annotations__ = { - "bar": bar, - "foo": foo, - } - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - bar: typing.Union[MetaOapg.properties.bar, str, ], - foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'EnumsInProperties': - return super().__new__( - cls, - *args, - bar=bar, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.py deleted file mode 100644 index b81f17e5b17..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ForbiddenProperty( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.NotAnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ForbiddenProperty': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.pyi deleted file mode 100644 index b81f17e5b17..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/forbidden_property.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ForbiddenProperty( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.NotAnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ForbiddenProperty': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.py deleted file mode 100644 index 40942f67b82..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class HostnameFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'hostname' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'HostnameFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.pyi deleted file mode 100644 index 40942f67b82..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/hostname_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class HostnameFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'hostname' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'HostnameFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.py deleted file mode 100644 index ccb986ac466..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -IntegerTypeMatchesIntegers = schemas.IntSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.pyi deleted file mode 100644 index ccb986ac466..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/integer_type_matches_integers.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -IntegerTypeMatchesIntegers = schemas.IntSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py deleted file mode 100644 index 3f5ff42395c..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf( - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - multiple_of = 0.123456789 diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi deleted file mode 100644 index 33c88d10402..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf( - schemas.IntSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.py deleted file mode 100644 index 47529863695..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class InvalidStringValueForDefault( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bar( - schemas.StrSchema - ): - - - class MetaOapg: - min_length = 4 - __annotations__ = { - "bar": bar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'InvalidStringValueForDefault': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.pyi deleted file mode 100644 index 7ab2145d29b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/invalid_string_value_for_default.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class InvalidStringValueForDefault( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bar( - schemas.StrSchema - ): - pass - __annotations__ = { - "bar": bar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'InvalidStringValueForDefault': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.py deleted file mode 100644 index 0eae025a87f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Ipv4Format( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'ipv4' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Ipv4Format': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.pyi deleted file mode 100644 index 0eae025a87f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv4_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Ipv4Format( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'ipv4' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Ipv4Format': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.py deleted file mode 100644 index 23a8aa658da..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Ipv6Format( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'ipv6' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Ipv6Format': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.pyi deleted file mode 100644 index 23a8aa658da..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ipv6_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Ipv6Format( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'ipv6' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Ipv6Format': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.py deleted file mode 100644 index ddbc5084238..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class JsonPointerFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'json-pointer' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'JsonPointerFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.pyi deleted file mode 100644 index ddbc5084238..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/json_pointer_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class JsonPointerFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'json-pointer' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'JsonPointerFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.py deleted file mode 100644 index 5a992b87f00..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaximumValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - inclusive_maximum = 3.0 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaximumValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.pyi deleted file mode 100644 index f0f3010b941..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaximumValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaximumValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.py deleted file mode 100644 index dc28bf37f35..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaximumValidationWithUnsignedInteger( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - inclusive_maximum = 300 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaximumValidationWithUnsignedInteger': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi deleted file mode 100644 index 223cf29f836..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaximumValidationWithUnsignedInteger( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaximumValidationWithUnsignedInteger': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.py deleted file mode 100644 index de40bec0b0a..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaxitemsValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - max_items = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaxitemsValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.pyi deleted file mode 100644 index 7c0a10e4fb2..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxitems_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaxitemsValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaxitemsValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.py deleted file mode 100644 index c34f02ea119..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaxlengthValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - max_length = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaxlengthValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.pyi deleted file mode 100644 index 1ed6a96b36b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxlength_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaxlengthValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaxlengthValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.py deleted file mode 100644 index 24dd02220f7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Maxproperties0MeansTheObjectIsEmpty( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - max_properties = 0 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Maxproperties0MeansTheObjectIsEmpty': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi deleted file mode 100644 index 82013206b84..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Maxproperties0MeansTheObjectIsEmpty( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Maxproperties0MeansTheObjectIsEmpty': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.py deleted file mode 100644 index 2adf12f7500..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaxpropertiesValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - max_properties = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaxpropertiesValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.pyi deleted file mode 100644 index 4252e69a43a..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/maxproperties_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MaxpropertiesValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MaxpropertiesValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.py deleted file mode 100644 index 6409f72d484..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinimumValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - inclusive_minimum = 1.1 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinimumValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.pyi deleted file mode 100644 index a96f7db6e39..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinimumValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinimumValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.py deleted file mode 100644 index 73e0b2613db..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinimumValidationWithSignedInteger( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - inclusive_minimum = -2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinimumValidationWithSignedInteger': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.pyi deleted file mode 100644 index c57929021ab..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minimum_validation_with_signed_integer.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinimumValidationWithSignedInteger( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinimumValidationWithSignedInteger': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.py deleted file mode 100644 index 2ae9925d451..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinitemsValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - min_items = 1 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinitemsValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.pyi deleted file mode 100644 index d84e653cfc8..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minitems_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinitemsValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinitemsValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.py deleted file mode 100644 index acd0d6d8929..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinlengthValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - min_length = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinlengthValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.pyi deleted file mode 100644 index 7e633c88ee4..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minlength_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinlengthValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinlengthValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.py deleted file mode 100644 index ebc2b1db516..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinpropertiesValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - min_properties = 1 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinpropertiesValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.pyi deleted file mode 100644 index ea06a20b31f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/minproperties_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class MinpropertiesValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'MinpropertiesValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.py deleted file mode 100644 index 317bddb0d8e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ModelNot( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - not_schema = schemas.IntSchema - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ModelNot': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.pyi deleted file mode 100644 index 317bddb0d8e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/model_not.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ModelNot( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - not_schema = schemas.IntSchema - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ModelNot': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.py deleted file mode 100644 index f6f8069357f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedAllofToCheckValidationSemantics( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.ComposedSchema, - ): - - - class MetaOapg: - all_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NestedAllofToCheckValidationSemantics': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi deleted file mode 100644 index f6f8069357f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedAllofToCheckValidationSemantics( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class all_of_0( - schemas.ComposedSchema, - ): - - - class MetaOapg: - all_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'all_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.all_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NestedAllofToCheckValidationSemantics': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.py deleted file mode 100644 index 65ae3adef07..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedAnyofToCheckValidationSemantics( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class any_of_0( - schemas.ComposedSchema, - ): - - - class MetaOapg: - any_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NestedAnyofToCheckValidationSemantics': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi deleted file mode 100644 index 65ae3adef07..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedAnyofToCheckValidationSemantics( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class any_of_0( - schemas.ComposedSchema, - ): - - - class MetaOapg: - any_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'any_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.any_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NestedAnyofToCheckValidationSemantics': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.py deleted file mode 100644 index 36f1aad97fd..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedItems( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NestedItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.pyi deleted file mode 100644 index 36f1aad97fd..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_items.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedItems( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - - - class items( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.NumberSchema - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]], typing.List[typing.Union[MetaOapg.items, decimal.Decimal, int, float, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'items': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - def __new__( - cls, - arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, list, tuple, ]], typing.List[typing.Union[MetaOapg.items, list, tuple, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'NestedItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.py deleted file mode 100644 index ebede9469dd..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedOneofToCheckValidationSemantics( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NestedOneofToCheckValidationSemantics': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi deleted file mode 100644 index ebede9469dd..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NestedOneofToCheckValidationSemantics( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.ComposedSchema, - ): - - - class MetaOapg: - one_of_0 = schemas.NoneSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NestedOneofToCheckValidationSemantics': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.py deleted file mode 100644 index f04fa2d4d95..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NotMoreComplexSchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class not_schema( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'not_schema': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NotMoreComplexSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.pyi deleted file mode 100644 index f04fa2d4d95..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/not_more_complex_schema.pyi +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NotMoreComplexSchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class not_schema( - schemas.DictSchema - ): - - - class MetaOapg: - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - foo: typing.Union[MetaOapg.properties.foo, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'not_schema': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'NotMoreComplexSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.py deleted file mode 100644 index 3aa6a9fe9ba..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NulCharactersInStrings( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - "hello\x00there": "HELLOTHERE", - } - - @schemas.classproperty - def HELLOTHERE(cls): - return cls("hello\x00there") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.pyi deleted file mode 100644 index eb9d42800cf..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/nul_characters_in_strings.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class NulCharactersInStrings( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def HELLOTHERE(cls): - return cls("hello\x00there") diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.py deleted file mode 100644 index 4b1bff62a13..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.pyi deleted file mode 100644 index 4b1bff62a13..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/null_type_matches_only_the_null_object.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.py deleted file mode 100644 index e4d1d79b975..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -NumberTypeMatchesNumbers = schemas.NumberSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.pyi deleted file mode 100644 index e4d1d79b975..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/number_type_matches_numbers.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -NumberTypeMatchesNumbers = schemas.NumberSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.py deleted file mode 100644 index d74b394f069..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ObjectPropertiesValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.IntSchema - bar = schemas.StrSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, decimal.Decimal, int, schemas.Unset] = schemas.unset, - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectPropertiesValidation': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.pyi deleted file mode 100644 index d74b394f069..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_properties_validation.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class ObjectPropertiesValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.IntSchema - bar = schemas.StrSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, decimal.Decimal, int, schemas.Unset] = schemas.unset, - bar: typing.Union[MetaOapg.properties.bar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'ObjectPropertiesValidation': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.py deleted file mode 100644 index a7c70ef5648..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -ObjectTypeMatchesObjects = schemas.DictSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.pyi deleted file mode 100644 index a7c70ef5648..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/object_type_matches_objects.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -ObjectTypeMatchesObjects = schemas.DictSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.py deleted file mode 100644 index 072f28a7fbc..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Oneof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - one_of_0 = schemas.IntSchema - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - inclusive_minimum = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Oneof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.pyi deleted file mode 100644 index fcf3fb10220..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof.pyi +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class Oneof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - one_of_0 = schemas.IntSchema - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Oneof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.py deleted file mode 100644 index b38b5751a71..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofComplexTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneofComplexTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.pyi deleted file mode 100644 index b38b5751a71..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_complex_types.pyi +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofComplexTypes( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - } - - class properties: - bar = schemas.IntSchema - __annotations__ = { - "bar": bar, - } - - - bar: MetaOapg.properties.bar - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, decimal.Decimal, int, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - bar=bar, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.StrSchema - __annotations__ = { - "foo": foo, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneofComplexTypes': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.py deleted file mode 100644 index 343181f8463..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofWithBaseSchema( - schemas.ComposedBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - min_length = 2 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - max_length = 4 - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'OneofWithBaseSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.pyi deleted file mode 100644 index dbd9a7fdf36..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_base_schema.pyi +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofWithBaseSchema( - schemas.ComposedBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'OneofWithBaseSchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.py deleted file mode 100644 index d0339f57edb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofWithEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - one_of_0 = schemas.NumberSchema - one_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneofWithEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.pyi deleted file mode 100644 index d0339f57edb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_empty_schema.pyi +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofWithEmptySchema( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - one_of_0 = schemas.NumberSchema - one_of_1 = schemas.AnyTypeSchema - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneofWithEmptySchema': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.py deleted file mode 100644 index 06bb23eddae..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofWithRequired( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - "foo", - } - - - bar: schemas.AnyTypeSchema - foo: schemas.AnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - "baz", - } - - - foo: schemas.AnyTypeSchema - baz: schemas.AnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneofWithRequired': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.pyi deleted file mode 100644 index 06bb23eddae..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/oneof_with_required.pyi +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class OneofWithRequired( - schemas.ComposedBase, - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - class one_of_0( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "bar", - "foo", - } - - - bar: schemas.AnyTypeSchema - foo: schemas.AnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_0': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - - class one_of_1( - schemas.AnyTypeSchema, - ): - - - class MetaOapg: - required = { - "foo", - "baz", - } - - - foo: schemas.AnyTypeSchema - baz: schemas.AnyTypeSchema - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'one_of_1': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - cls.one_of_0, - cls.one_of_1, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'OneofWithRequired': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.py deleted file mode 100644 index 48773cbbe50..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PatternIsNotAnchored( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - regex=[{ - 'pattern': r'a+', # noqa: E501 - }] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PatternIsNotAnchored': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.pyi deleted file mode 100644 index d4c18e7fc23..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_is_not_anchored.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PatternIsNotAnchored( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PatternIsNotAnchored': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.py deleted file mode 100644 index 49594057cf8..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PatternValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - regex=[{ - 'pattern': r'^a*$', # noqa: E501 - }] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PatternValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.pyi deleted file mode 100644 index a2fb9d02f18..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/pattern_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PatternValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PatternValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.py deleted file mode 100644 index 7c73a200e5d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PropertiesWithEscapedCharacters( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo_nbar = schemas.NumberSchema - foo_bar = schemas.NumberSchema - foo__bar = schemas.NumberSchema - foo_rbar = schemas.NumberSchema - foo_tbar = schemas.NumberSchema - foo_fbar = schemas.NumberSchema - __annotations__ = { - "foo\nbar": foo_nbar, - "foo\"bar": foo_bar, - "foo\\bar": foo__bar, - "foo\rbar": foo_rbar, - "foo\tbar": foo_tbar, - "foo\fbar": foo_fbar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PropertiesWithEscapedCharacters': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.pyi deleted file mode 100644 index 7c73a200e5d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/properties_with_escaped_characters.pyi +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PropertiesWithEscapedCharacters( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo_nbar = schemas.NumberSchema - foo_bar = schemas.NumberSchema - foo__bar = schemas.NumberSchema - foo_rbar = schemas.NumberSchema - foo_tbar = schemas.NumberSchema - foo_fbar = schemas.NumberSchema - __annotations__ = { - "foo\nbar": foo_nbar, - "foo\"bar": foo_bar, - "foo\\bar": foo__bar, - "foo\rbar": foo_rbar, - "foo\tbar": foo_tbar, - "foo\fbar": foo_fbar, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PropertiesWithEscapedCharacters': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.py deleted file mode 100644 index 344414e9ccb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PropertyNamedRefThatIsNotAReference( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ref = schemas.StrSchema - __annotations__ = { - "$ref": ref, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["$ref"]) -> MetaOapg.properties.ref: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PropertyNamedRefThatIsNotAReference': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi deleted file mode 100644 index 344414e9ccb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class PropertyNamedRefThatIsNotAReference( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - ref = schemas.StrSchema - __annotations__ = { - "$ref": ref, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["$ref"]) -> MetaOapg.properties.ref: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'PropertyNamedRefThatIsNotAReference': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.py deleted file mode 100644 index a15df310544..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInAdditionalproperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def additional_properties() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - - def __getitem__(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'PropertyNamedRefThatIsNotAReference', - ) -> 'RefInAdditionalproperties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.pyi deleted file mode 100644 index a15df310544..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_additionalproperties.pyi +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInAdditionalproperties( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def additional_properties() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - - def __getitem__(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference': - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: 'PropertyNamedRefThatIsNotAReference', - ) -> 'RefInAdditionalproperties': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.py deleted file mode 100644 index 979c66540f7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInAllof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PropertyNamedRefThatIsNotAReference, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInAllof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.pyi deleted file mode 100644 index 979c66540f7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_allof.pyi +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInAllof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def all_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PropertyNamedRefThatIsNotAReference, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInAllof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.py deleted file mode 100644 index df7546c1c2b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInAnyof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PropertyNamedRefThatIsNotAReference, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInAnyof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.pyi deleted file mode 100644 index df7546c1c2b..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_anyof.pyi +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInAnyof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def any_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PropertyNamedRefThatIsNotAReference, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInAnyof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.py deleted file mode 100644 index 73663ab9c05..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInItems( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - - def __new__( - cls, - arg: typing.Union[typing.Tuple['PropertyNamedRefThatIsNotAReference'], typing.List['PropertyNamedRefThatIsNotAReference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'RefInItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PropertyNamedRefThatIsNotAReference': - return super().__getitem__(i) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.pyi deleted file mode 100644 index 73663ab9c05..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_items.pyi +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInItems( - schemas.ListSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - - def __new__( - cls, - arg: typing.Union[typing.Tuple['PropertyNamedRefThatIsNotAReference'], typing.List['PropertyNamedRefThatIsNotAReference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'RefInItems': - return super().__new__( - cls, - arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'PropertyNamedRefThatIsNotAReference': - return super().__getitem__(i) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.py deleted file mode 100644 index b1362b851ad..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInNot( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInNot': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.pyi deleted file mode 100644 index b1362b851ad..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_not.pyi +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInNot( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInNot': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.py deleted file mode 100644 index 99be8069ed7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInOneof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PropertyNamedRefThatIsNotAReference, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInOneof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.pyi deleted file mode 100644 index 99be8069ed7..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_oneof.pyi +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInOneof( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - PropertyNamedRefThatIsNotAReference, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInOneof': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.py deleted file mode 100644 index 00390b08058..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInProperty( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def a() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - __annotations__ = { - "a": a, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInProperty': - return super().__new__( - cls, - *args, - a=a, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.pyi deleted file mode 100644 index 00390b08058..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/ref_in_property.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RefInProperty( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def a() -> typing.Type['PropertyNamedRefThatIsNotAReference']: - return PropertyNamedRefThatIsNotAReference - __annotations__ = { - "a": a, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RefInProperty': - return super().__new__( - cls, - *args, - a=a, - _configuration=_configuration, - **kwargs, - ) - -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.py deleted file mode 100644 index 464498e13fb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredDefaultValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredDefaultValidation': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.pyi deleted file mode 100644 index 464498e13fb..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_default_validation.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredDefaultValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredDefaultValidation': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.py deleted file mode 100644 index aa43367ca2e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.AnyTypeSchema - bar = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredValidation': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.pyi deleted file mode 100644 index aa43367ca2e..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_validation.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "foo", - } - - class properties: - foo = schemas.AnyTypeSchema - bar = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - "bar": bar, - } - - - foo: MetaOapg.properties.foo - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - bar: typing.Union[MetaOapg.properties.bar, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredValidation': - return super().__new__( - cls, - *args, - foo=foo, - bar=bar, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.py deleted file mode 100644 index 98018693bc1..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredWithEmptyArray( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredWithEmptyArray': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.pyi deleted file mode 100644 index 98018693bc1..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_empty_array.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredWithEmptyArray( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - foo = schemas.AnyTypeSchema - __annotations__ = { - "foo": foo, - } - - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - foo: typing.Union[MetaOapg.properties.foo, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredWithEmptyArray': - return super().__new__( - cls, - *args, - foo=foo, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.py deleted file mode 100644 index 52a8999cd28..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredWithEscapedCharacters( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "foo\"bar", - "foo\nbar", - "foo\fbar", - "foo\tbar", - "foo\rbar", - "foo\\bar", - } - - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredWithEscapedCharacters': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.pyi deleted file mode 100644 index 52a8999cd28..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/required_with_escaped_characters.pyi +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class RequiredWithEscapedCharacters( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "foo\"bar", - "foo\nbar", - "foo\fbar", - "foo\tbar", - "foo\rbar", - "foo\\bar", - } - - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RequiredWithEscapedCharacters': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.py deleted file mode 100644 index 26641b8c99f..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class SimpleEnumValidation( - schemas.EnumBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - enum_value_to_name = { - 1: "POSITIVE_1", - 2: "POSITIVE_2", - 3: "POSITIVE_3", - } - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def POSITIVE_2(cls): - return cls(2) - - @schemas.classproperty - def POSITIVE_3(cls): - return cls(3) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.pyi deleted file mode 100644 index 61ed175912c..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/simple_enum_validation.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class SimpleEnumValidation( - schemas.EnumBase, - schemas.NumberSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - @schemas.classproperty - def POSITIVE_1(cls): - return cls(1) - - @schemas.classproperty - def POSITIVE_2(cls): - return cls(2) - - @schemas.classproperty - def POSITIVE_3(cls): - return cls(3) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.py deleted file mode 100644 index 573e83bc999..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.py +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -StringTypeMatchesStrings = schemas.StrSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.pyi deleted file mode 100644 index 573e83bc999..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/string_type_matches_strings.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 -StringTypeMatchesStrings = schemas.StrSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py deleted file mode 100644 index 57a001ad752..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class alpha( - schemas.NumberSchema - ): - - - class MetaOapg: - inclusive_maximum = 3 - __annotations__ = { - "alpha": alpha, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["alpha"]) -> MetaOapg.properties.alpha: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - alpha: typing.Union[MetaOapg.properties.alpha, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing': - return super().__new__( - cls, - *args, - alpha=alpha, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi deleted file mode 100644 index caec048424d..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class alpha( - schemas.NumberSchema - ): - pass - __annotations__ = { - "alpha": alpha, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["alpha"]) -> MetaOapg.properties.alpha: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - alpha: typing.Union[MetaOapg.properties.alpha, decimal.Decimal, int, float, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing': - return super().__new__( - cls, - *args, - alpha=alpha, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py deleted file mode 100644 index 485edf4e3c1..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UniqueitemsFalseValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - unique_items = False - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UniqueitemsFalseValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.pyi deleted file mode 100644 index c5ded11279a..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UniqueitemsFalseValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UniqueitemsFalseValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.py deleted file mode 100644 index 9fd610f6608..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UniqueitemsValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - unique_items = True - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UniqueitemsValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.pyi deleted file mode 100644 index 175556c6807..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_validation.pyi +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UniqueitemsValidation( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UniqueitemsValidation': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.py deleted file mode 100644 index c8202e8dcc1..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UriFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uri' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UriFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.pyi deleted file mode 100644 index c8202e8dcc1..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UriFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uri' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UriFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.py deleted file mode 100644 index 8a66998c4f2..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UriReferenceFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uri-reference' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UriReferenceFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.pyi deleted file mode 100644 index 8a66998c4f2..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_reference_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UriReferenceFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uri-reference' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UriReferenceFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.py deleted file mode 100644 index 50fb98bcac0..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UriTemplateFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uri-template' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UriTemplateFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.pyi deleted file mode 100644 index 50fb98bcac0..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uri_template_format.pyi +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - openapi 3.0.3 sample spec - - sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 - - The version of the OpenAPI document: 0.0.1 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from unit_test_api import schemas # noqa: F401 - - -class UriTemplateFormat( - schemas.AnyTypeSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - format = 'uri-template' - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'UriTemplateFormat': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/models/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/models/__init__.py deleted file mode 100644 index df0bd23b6d5..00000000000 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/models/__init__.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -# import all models into this package -# if you have many models here with many references from one model to another this may -# raise a RecursionError -# to avoid this, import only the models that you directly need like: -# from from unit_test_api.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate -from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault -from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself -from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators -from unit_test_api.model.allof import Allof -from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof -from unit_test_api.model.allof_simple_types import AllofSimpleTypes -from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema -from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema -from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema -from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema -from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas -from unit_test_api.model.anyof import Anyof -from unit_test_api.model.anyof_complex_types import AnyofComplexTypes -from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema -from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema -from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays -from unit_test_api.model.boolean_type_matches_booleans import BooleanTypeMatchesBooleans -from unit_test_api.model.by_int import ByInt -from unit_test_api.model.by_number import ByNumber -from unit_test_api.model.by_small_number import BySmallNumber -from unit_test_api.model.date_time_format import DateTimeFormat -from unit_test_api.model.email_format import EmailFormat -from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse -from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue -from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters -from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 -from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 -from unit_test_api.model.enums_in_properties import EnumsInProperties -from unit_test_api.model.forbidden_property import ForbiddenProperty -from unit_test_api.model.hostname_format import HostnameFormat -from unit_test_api.model.integer_type_matches_integers import IntegerTypeMatchesIntegers -from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf -from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault -from unit_test_api.model.ipv4_format import Ipv4Format -from unit_test_api.model.ipv6_format import Ipv6Format -from unit_test_api.model.json_pointer_format import JsonPointerFormat -from unit_test_api.model.maximum_validation import MaximumValidation -from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger -from unit_test_api.model.maxitems_validation import MaxitemsValidation -from unit_test_api.model.maxlength_validation import MaxlengthValidation -from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty -from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation -from unit_test_api.model.minimum_validation import MinimumValidation -from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger -from unit_test_api.model.minitems_validation import MinitemsValidation -from unit_test_api.model.minlength_validation import MinlengthValidation -from unit_test_api.model.minproperties_validation import MinpropertiesValidation -from unit_test_api.model.model_not import ModelNot -from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics -from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics -from unit_test_api.model.nested_items import NestedItems -from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics -from unit_test_api.model.not_more_complex_schema import NotMoreComplexSchema -from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings -from unit_test_api.model.null_type_matches_only_the_null_object import NullTypeMatchesOnlyTheNullObject -from unit_test_api.model.number_type_matches_numbers import NumberTypeMatchesNumbers -from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation -from unit_test_api.model.object_type_matches_objects import ObjectTypeMatchesObjects -from unit_test_api.model.oneof import Oneof -from unit_test_api.model.oneof_complex_types import OneofComplexTypes -from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema -from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema -from unit_test_api.model.oneof_with_required import OneofWithRequired -from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored -from unit_test_api.model.pattern_validation import PatternValidation -from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters -from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference -from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties -from unit_test_api.model.ref_in_allof import RefInAllof -from unit_test_api.model.ref_in_anyof import RefInAnyof -from unit_test_api.model.ref_in_items import RefInItems -from unit_test_api.model.ref_in_not import RefInNot -from unit_test_api.model.ref_in_oneof import RefInOneof -from unit_test_api.model.ref_in_property import RefInProperty -from unit_test_api.model.required_default_validation import RequiredDefaultValidation -from unit_test_api.model.required_validation import RequiredValidation -from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray -from unit_test_api.model.required_with_escaped_characters import RequiredWithEscapedCharacters -from unit_test_api.model.simple_enum_validation import SimpleEnumValidation -from unit_test_api.model.string_type_matches_strings import StringTypeMatchesStrings -from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing -from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation -from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation -from unit_test_api.model.uri_format import UriFormat -from unit_test_api.model.uri_reference_format import UriReferenceFormat -from unit_test_api.model.uri_template_format import UriTemplateFormat diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/__init__.py deleted file mode 100644 index b339018352e..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from this_package.models import ModelA, ModelB diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.py deleted file mode 100644 index 01d4788e468..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - discriminator-test - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from this_package import schemas # noqa: F401 - - -class AdditionOperator( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "a", - "b", - "operator_id", - } - - class properties: - a = schemas.Float64Schema - b = schemas.Float64Schema - operator_id = schemas.StrSchema - __annotations__ = { - "a": a, - "b": b, - "operator_id": operator_id, - } - additional_properties = schemas.NotAnyTypeSchema - - a: MetaOapg.properties.a - b: MetaOapg.properties.b - operator_id: MetaOapg.properties.operator_id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], - b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], - operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AdditionOperator': - return super().__new__( - cls, - *args, - a=a, - b=b, - operator_id=operator_id, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.pyi deleted file mode 100644 index 01d4788e468..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/addition_operator.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - discriminator-test - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from this_package import schemas # noqa: F401 - - -class AdditionOperator( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "a", - "b", - "operator_id", - } - - class properties: - a = schemas.Float64Schema - b = schemas.Float64Schema - operator_id = schemas.StrSchema - __annotations__ = { - "a": a, - "b": b, - "operator_id": operator_id, - } - additional_properties = schemas.NotAnyTypeSchema - - a: MetaOapg.properties.a - b: MetaOapg.properties.b - operator_id: MetaOapg.properties.operator_id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], - b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], - operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'AdditionOperator': - return super().__new__( - cls, - *args, - a=a, - b=b, - operator_id=operator_id, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.py deleted file mode 100644 index c76cc526a8f..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - discriminator-test - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from this_package import schemas # noqa: F401 - - -class Operator( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'operator_id': { - 'ADD': AdditionOperator, - 'AdditionOperator': AdditionOperator, - 'SUB': SubtractionOperator, - 'SubtractionOperator': SubtractionOperator, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - AdditionOperator, - SubtractionOperator, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Operator': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from this_package.model.addition_operator import AdditionOperator -from this_package.model.subtraction_operator import SubtractionOperator diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.pyi deleted file mode 100644 index c76cc526a8f..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/operator.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - discriminator-test - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from this_package import schemas # noqa: F401 - - -class Operator( - schemas.ComposedSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - @staticmethod - def discriminator(): - return { - 'operator_id': { - 'ADD': AdditionOperator, - 'AdditionOperator': AdditionOperator, - 'SUB': SubtractionOperator, - 'SubtractionOperator': SubtractionOperator, - } - } - - @classmethod - @functools.lru_cache() - def one_of(cls): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - return [ - AdditionOperator, - SubtractionOperator, - ] - - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'Operator': - return super().__new__( - cls, - *args, - _configuration=_configuration, - **kwargs, - ) - -from this_package.model.addition_operator import AdditionOperator -from this_package.model.subtraction_operator import SubtractionOperator diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.py deleted file mode 100644 index 6d766fd52da..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - discriminator-test - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from this_package import schemas # noqa: F401 - - -class SubtractionOperator( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "a", - "b", - "operator_id", - } - - class properties: - a = schemas.Float64Schema - b = schemas.Float64Schema - operator_id = schemas.StrSchema - __annotations__ = { - "a": a, - "b": b, - "operator_id": operator_id, - } - additional_properties = schemas.NotAnyTypeSchema - - a: MetaOapg.properties.a - b: MetaOapg.properties.b - operator_id: MetaOapg.properties.operator_id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], - b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], - operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SubtractionOperator': - return super().__new__( - cls, - *args, - a=a, - b=b, - operator_id=operator_id, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.pyi b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.pyi deleted file mode 100644 index 6d766fd52da..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/model/subtraction_operator.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - discriminator-test - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: 1.0 - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from this_package import schemas # noqa: F401 - - -class SubtractionOperator( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "a", - "b", - "operator_id", - } - - class properties: - a = schemas.Float64Schema - b = schemas.Float64Schema - operator_id = schemas.StrSchema - __annotations__ = { - "a": a, - "b": b, - "operator_id": operator_id, - } - additional_properties = schemas.NotAnyTypeSchema - - a: MetaOapg.properties.a - b: MetaOapg.properties.b - operator_id: MetaOapg.properties.operator_id - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["b"]) -> MetaOapg.properties.b: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["operator_id"]) -> MetaOapg.properties.operator_id: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a"], typing_extensions.Literal["b"], typing_extensions.Literal["operator_id"], ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *args: typing.Union[dict, frozendict.frozendict, ], - a: typing.Union[MetaOapg.properties.a, decimal.Decimal, int, float, ], - b: typing.Union[MetaOapg.properties.b, decimal.Decimal, int, float, ], - operator_id: typing.Union[MetaOapg.properties.operator_id, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'SubtractionOperator': - return super().__new__( - cls, - *args, - a=a, - b=b, - operator_id=operator_id, - _configuration=_configuration, - ) diff --git a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/models/__init__.py b/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/models/__init__.py deleted file mode 100644 index 5eba4cb111e..00000000000 --- a/samples/openapi3/client/features/nonCompliantUseDiscriminatorIfCompositionFails/python/this_package/models/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -# import all models into this package -# if you have many models here with many references from one model to another this may -# raise a RecursionError -# to avoid this, import only the models that you directly need like: -# from from this_package.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from this_package.model.addition_operator import AdditionOperator -from this_package.model.operator import Operator -from this_package.model.subtraction_operator import SubtractionOperator