From 48ff57b4f692d0599f2dfee3670d7bb4ed9d4f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= <34892635+fa0311@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:42:46 +0900 Subject: [PATCH] [python-nextgen] fix #16010 circular refs lead to no imports (#16199) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [python-nextgen] fix #16010 circular refs lead to no imports Signed-off-by: ふぁ * [python-nextgen] update samples Signed-off-by: ふぁ * [python-nextgen] remove unnecessary Postponed annotations Signed-off-by: ふぁ * [python-nextgen] update samples Signed-off-by: ふぁ * [python-nextgen] remove unnecessary Postponed annotations Signed-off-by: ふぁ * [python-nextgen] update samples Signed-off-by: ふぁ * [python-nextgen] update samples Signed-off-by: ふぁ --------- Signed-off-by: ふぁ --- .../languages/PythonClientCodegen.java | 62 ++++++++++++++++--- .../resources/python/api_doc_example.mustache | 7 +++ .../resources/python/model_anyof.mustache | 7 +++ .../resources/python/model_generic.mustache | 7 +++ .../resources/python/model_oneof.mustache | 7 +++ .../client/echo_api/python/docs/BodyApi.md | 7 +++ .../client/echo_api/python/docs/FormApi.md | 1 + .../client/echo_api/python/docs/HeaderApi.md | 1 + .../client/echo_api/python/docs/PathApi.md | 1 + .../client/echo_api/python/docs/QueryApi.md | 8 +++ .../python/openapi_client/models/bird.py | 1 + .../python/openapi_client/models/category.py | 1 + .../openapi_client/models/data_query.py | 1 + .../openapi_client/models/default_value.py | 1 + .../models/number_properties_only.py | 1 + .../python/openapi_client/models/pet.py | 1 + .../python/openapi_client/models/query.py | 1 + .../python/openapi_client/models/tag.py | 1 + ...ue_object_all_of_query_object_parameter.py | 1 + ...rue_array_string_query_object_parameter.py | 1 + .../python-aiohttp/docs/AnotherFakeApi.md | 1 + .../python-aiohttp/docs/DefaultApi.md | 1 + .../petstore/python-aiohttp/docs/FakeApi.md | 19 ++++++ .../docs/FakeClassnameTags123Api.md | 1 + .../petstore/python-aiohttp/docs/PetApi.md | 9 +++ .../petstore/python-aiohttp/docs/StoreApi.md | 4 ++ .../petstore/python-aiohttp/docs/UserApi.md | 8 +++ .../models/additional_properties_class.py | 1 + .../models/all_of_with_single_ref.py | 1 + .../petstore_api/models/animal.py | 1 + .../petstore_api/models/any_of_color.py | 1 + .../petstore_api/models/any_of_pig.py | 1 + .../petstore_api/models/api_response.py | 1 + .../models/array_of_array_of_model.py | 1 + .../models/array_of_array_of_number_only.py | 1 + .../models/array_of_number_only.py | 1 + .../petstore_api/models/array_test.py | 1 + .../petstore_api/models/basque_pig.py | 1 + .../petstore_api/models/capitalization.py | 1 + .../python-aiohttp/petstore_api/models/cat.py | 1 + .../petstore_api/models/category.py | 1 + .../models/circular_reference_model.py | 3 + .../petstore_api/models/class_model.py | 1 + .../petstore_api/models/client.py | 1 + .../petstore_api/models/color.py | 1 + .../petstore_api/models/danish_pig.py | 1 + .../petstore_api/models/deprecated_object.py | 1 + .../python-aiohttp/petstore_api/models/dog.py | 1 + .../petstore_api/models/dummy_model.py | 3 + .../petstore_api/models/enum_arrays.py | 1 + .../petstore_api/models/enum_test.py | 1 + .../petstore_api/models/file.py | 1 + .../models/file_schema_test_class.py | 1 + .../petstore_api/models/first_ref.py | 3 + .../python-aiohttp/petstore_api/models/foo.py | 1 + .../models/foo_get_default_response.py | 1 + .../petstore_api/models/format_test.py | 1 + .../petstore_api/models/has_only_read_only.py | 1 + .../models/health_check_result.py | 1 + .../models/inner_dict_with_property.py | 1 + .../petstore_api/models/int_or_string.py | 1 + .../petstore_api/models/list.py | 1 + .../models/map_of_array_of_model.py | 1 + .../petstore_api/models/map_test.py | 1 + ...perties_and_additional_properties_class.py | 1 + .../petstore_api/models/model200_response.py | 1 + .../petstore_api/models/model_return.py | 1 + .../petstore_api/models/name.py | 1 + .../petstore_api/models/nullable_class.py | 1 + .../petstore_api/models/nullable_property.py | 1 + .../petstore_api/models/number_only.py | 1 + .../object_to_test_additional_properties.py | 1 + .../models/object_with_deprecated_fields.py | 1 + .../petstore_api/models/one_of_enum_string.py | 1 + .../petstore_api/models/order.py | 1 + .../petstore_api/models/outer_composite.py | 1 + .../models/outer_object_with_enum_property.py | 1 + .../petstore_api/models/parent.py | 1 + .../models/parent_with_optional_dict.py | 1 + .../python-aiohttp/petstore_api/models/pet.py | 1 + .../python-aiohttp/petstore_api/models/pig.py | 1 + .../models/property_name_collision.py | 1 + .../petstore_api/models/read_only_first.py | 1 + .../petstore_api/models/second_ref.py | 3 + .../models/self_reference_model.py | 3 + .../petstore_api/models/special_model_name.py | 1 + .../petstore_api/models/special_name.py | 1 + .../python-aiohttp/petstore_api/models/tag.py | 1 + .../petstore_api/models/user.py | 1 + .../petstore_api/models/with_nested_one_of.py | 1 + .../petstore/python/docs/AnotherFakeApi.md | 1 + .../client/petstore/python/docs/DefaultApi.md | 1 + .../client/petstore/python/docs/FakeApi.md | 19 ++++++ .../python/docs/FakeClassnameTags123Api.md | 1 + .../client/petstore/python/docs/PetApi.md | 9 +++ .../client/petstore/python/docs/StoreApi.md | 4 ++ .../client/petstore/python/docs/UserApi.md | 8 +++ .../models/additional_properties_class.py | 1 + .../models/all_of_with_single_ref.py | 1 + .../python/petstore_api/models/animal.py | 1 + .../petstore_api/models/any_of_color.py | 1 + .../python/petstore_api/models/any_of_pig.py | 1 + .../petstore_api/models/api_response.py | 1 + .../models/array_of_array_of_model.py | 1 + .../models/array_of_array_of_number_only.py | 1 + .../models/array_of_number_only.py | 1 + .../python/petstore_api/models/array_test.py | 1 + .../python/petstore_api/models/basque_pig.py | 1 + .../petstore_api/models/capitalization.py | 1 + .../python/petstore_api/models/cat.py | 1 + .../python/petstore_api/models/category.py | 1 + .../models/circular_reference_model.py | 3 + .../python/petstore_api/models/class_model.py | 1 + .../python/petstore_api/models/client.py | 1 + .../python/petstore_api/models/color.py | 1 + .../python/petstore_api/models/danish_pig.py | 1 + .../petstore_api/models/deprecated_object.py | 1 + .../python/petstore_api/models/dog.py | 1 + .../python/petstore_api/models/dummy_model.py | 3 + .../python/petstore_api/models/enum_arrays.py | 1 + .../python/petstore_api/models/enum_test.py | 1 + .../python/petstore_api/models/file.py | 1 + .../models/file_schema_test_class.py | 1 + .../python/petstore_api/models/first_ref.py | 3 + .../python/petstore_api/models/foo.py | 1 + .../models/foo_get_default_response.py | 1 + .../python/petstore_api/models/format_test.py | 1 + .../petstore_api/models/has_only_read_only.py | 1 + .../models/health_check_result.py | 1 + .../models/inner_dict_with_property.py | 1 + .../petstore_api/models/int_or_string.py | 1 + .../python/petstore_api/models/list.py | 1 + .../models/map_of_array_of_model.py | 1 + .../python/petstore_api/models/map_test.py | 1 + ...perties_and_additional_properties_class.py | 1 + .../petstore_api/models/model200_response.py | 1 + .../petstore_api/models/model_return.py | 1 + .../python/petstore_api/models/name.py | 1 + .../petstore_api/models/nullable_class.py | 1 + .../petstore_api/models/nullable_property.py | 1 + .../python/petstore_api/models/number_only.py | 1 + .../object_to_test_additional_properties.py | 1 + .../models/object_with_deprecated_fields.py | 1 + .../petstore_api/models/one_of_enum_string.py | 1 + .../python/petstore_api/models/order.py | 1 + .../petstore_api/models/outer_composite.py | 1 + .../models/outer_object_with_enum_property.py | 1 + .../python/petstore_api/models/parent.py | 1 + .../models/parent_with_optional_dict.py | 1 + .../python/petstore_api/models/pet.py | 1 + .../python/petstore_api/models/pig.py | 1 + .../models/property_name_collision.py | 1 + .../petstore_api/models/read_only_first.py | 1 + .../python/petstore_api/models/second_ref.py | 3 + .../models/self_reference_model.py | 3 + .../petstore_api/models/special_model_name.py | 1 + .../petstore_api/models/special_name.py | 1 + .../python/petstore_api/models/tag.py | 1 + .../python/petstore_api/models/user.py | 1 + .../petstore_api/models/with_nested_one_of.py | 1 + 160 files changed, 342 insertions(+), 8 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index a348b93397..56e9974788 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -413,6 +413,8 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege * @param datetimeImports datetime imports * @param modelImports model imports * @param exampleImports example imports + * @param postponedModelImports postponed model imports + * @param postponedExampleImports postponed example imports * @param classname class name * @return pydantic type * @@ -423,6 +425,8 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege Set datetimeImports, Set modelImports, Set exampleImports, + Set postponedModelImports, + Set postponedExampleImports, String classname) { if (cp == null) { // if codegen parameter (e.g. map/dict of undefined type) is null, default to string @@ -444,12 +448,12 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege } pydanticImports.add("conlist"); return String.format(Locale.ROOT, "conlist(%s%s)", - getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, classname), + getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, classname), constraints); } else if (cp.isMap) { typingImports.add("Dict"); return String.format(Locale.ROOT, "Dict[str, %s]", - getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, classname)); + getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, classname)); } else if (cp.isString) { if (cp.hasValidation) { List fieldCustomization = new ArrayList<>(); @@ -658,7 +662,7 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege CodegenMediaType cmt = contents.get(key); // TODO process the first one only at the moment if (cmt != null) - return getPydanticType(cmt.getSchema(), typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, classname); + return getPydanticType(cmt.getSchema(), typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, classname); } throw new RuntimeException("Error! Failed to process getPydanticType when getting the content: " + cp); } else { @@ -675,6 +679,8 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege * @param datetimeImports datetime imports * @param modelImports model imports * @param exampleImports example imports + * @param postponedModelImports postponed model imports + * @param postponedExampleImports postponed example imports * @param classname class name * @return pydantic type * @@ -685,6 +691,8 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege Set datetimeImports, Set modelImports, Set exampleImports, + Set postponedModelImports, + Set postponedExampleImports, String classname) { if (cp == null) { // if codegen property (e.g. map/dict of undefined type) is null, default to string @@ -725,11 +733,11 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege pydanticImports.add("conlist"); typingImports.add("List"); // for return type return String.format(Locale.ROOT, "conlist(%s%s)", - getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, classname), + getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, classname), constraints); } else if (cp.isMap) { typingImports.add("Dict"); - return String.format(Locale.ROOT, "Dict[str, %s]", getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, classname)); + return String.format(Locale.ROOT, "Dict[str, %s]", getPydanticType(cp.items, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, classname)); } else if (cp.isString) { if (cp.hasValidation) { List fieldCustomization = new ArrayList<>(); @@ -935,6 +943,9 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege } else { if (circularImports.containsKey(cp.dataType)) { if (circularImports.get(cp.dataType).contains(classname)) { + hasModelsToImport = true; + postponedModelImports.add(cp.dataType); + postponedExampleImports.add(cp.dataType); // cp.dataType import map of set contains this model (classname), don't import LOGGER.debug("Skipped importing {} in {} due to circular import.", cp.dataType, classname); } else { @@ -960,15 +971,17 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege TreeSet pydanticImports = new TreeSet<>(); TreeSet datetimeImports = new TreeSet<>(); TreeSet modelImports = new TreeSet<>(); + TreeSet postponedModelImports = new TreeSet<>(); OperationMap objectMap = objs.getOperations(); List operations = objectMap.getOperation(); for (CodegenOperation operation : operations) { TreeSet exampleImports = new TreeSet<>(); // import for each operation to be show in sample code + TreeSet postponedExampleImports = new TreeSet<>(); // import for each operation to be show in sample code List params = operation.allParams; for (CodegenParameter param : params) { - String typing = getPydanticType(param, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, null); + String typing = getPydanticType(param, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, null); List fields = new ArrayList<>(); String firstField = ""; @@ -1020,7 +1033,7 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege // update typing import for operation return type if (!StringUtils.isEmpty(operation.returnType)) { String typing = getPydanticType(operation.returnProperty, typingImports, - new TreeSet<>() /* skip pydantic import for return type */, datetimeImports, modelImports, exampleImports, null); + new TreeSet<>() /* skip pydantic import for return type */, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, null); } // add import for code samples @@ -1032,6 +1045,15 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege } operation.vendorExtensions.put("x-py-example-import", imports); } + + if (!postponedExampleImports.isEmpty()) { + List imports = new ArrayList<>(); + for (String exampleImport : postponedExampleImports) { + imports.add("from " + packageName + ".models." + underscore(exampleImport) + " import " + + exampleImport); + } + operation.vendorExtensions.put("x-py-example-import", imports); + } } List> newImports = new ArrayList<>(); @@ -1066,6 +1088,14 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege } } + if (!postponedModelImports.isEmpty()) { + for (String modelImport : postponedModelImports) { + Map item = new HashMap<>(); + item.put("import", "from " + packageName + ".models." + underscore(modelImport) + " import " + modelImport); + newImports.add(item); + } + } + // reset imports with newImports objs.setImports(newImports); return objs; @@ -1194,9 +1224,11 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege TreeSet pydanticImports = new TreeSet<>(); TreeSet datetimeImports = new TreeSet<>(); TreeSet modelImports = new TreeSet<>(); + TreeSet postponedModelImports = new TreeSet<>(); for (ModelMap m : objs.getModels()) { TreeSet exampleImports = new TreeSet<>(); + TreeSet postponedExampleImports = new TreeSet<>(); List readOnlyFields = new ArrayList<>(); hasModelsToImport = false; int property_count = 1; @@ -1249,7 +1281,7 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege //loop through properties/schemas to set up typing, pydantic for (CodegenProperty cp : codegenProperties) { - String typing = getPydanticType(cp, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, model.classname); + String typing = getPydanticType(cp, typingImports, pydanticImports, datetimeImports, modelImports, exampleImports, postponedModelImports, postponedExampleImports, model.classname); List fields = new ArrayList<>(); String firstField = ""; @@ -1362,6 +1394,20 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege model.getVendorExtensions().putIfAbsent("x-py-model-imports", modelsToImport); } + + if (!postponedModelImports.isEmpty()) { + Set modelsToImport = new TreeSet<>(); + for (String modelImport : postponedModelImports) { + if (modelImport.equals(model.classname)) { + // skip self import + continue; + } + modelsToImport.add("from " + packageName + ".models." + underscore(modelImport) + " import " + modelImport); + } + + model.getVendorExtensions().putIfAbsent("x-py-postponed-model-imports", modelsToImport); + } + } return objs; diff --git a/modules/openapi-generator/src/main/resources/python/api_doc_example.mustache b/modules/openapi-generator/src/main/resources/python/api_doc_example.mustache index d71d843650..15fbe33269 100644 --- a/modules/openapi-generator/src/main/resources/python/api_doc_example.mustache +++ b/modules/openapi-generator/src/main/resources/python/api_doc_example.mustache @@ -29,3 +29,10 @@ from pprint import pprint except Exception as e: print("Exception when calling {{classname}}->{{operationId}}: %s\n" % e) ``` + +{{#vendorExtensions.x-py-postponed-example-imports.size}} +{{#vendorExtensions.x-py-postponed-example-imports}} +{{{.}}} +{{/vendorExtensions.x-py-postponed-example-imports}} +{{classname}}.update_forward_refs() +{{/vendorExtensions.x-py-postponed-example-imports.size}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache index 4aaff74048..74a007fbc1 100644 --- a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache @@ -171,3 +171,10 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} def to_str(self) -> str: """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + +{{#vendorExtensions.x-py-postponed-model-imports.size}} +{{#vendorExtensions.x-py-postponed-model-imports}} +{{{.}}} +{{/vendorExtensions.x-py-postponed-model-imports}} +{{classname}}.update_forward_refs() +{{/vendorExtensions.x-py-postponed-model-imports.size}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/python/model_generic.mustache b/modules/openapi-generator/src/main/resources/python/model_generic.mustache index 0fa9768ba7..07a3f303d4 100644 --- a/modules/openapi-generator/src/main/resources/python/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_generic.mustache @@ -357,3 +357,10 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/isAdditionalPropertiesTrue}} return _obj {{/hasChildren}} + +{{#vendorExtensions.x-py-postponed-model-imports.size}} +{{#vendorExtensions.x-py-postponed-model-imports}} +{{{.}}} +{{/vendorExtensions.x-py-postponed-model-imports}} +{{classname}}.update_forward_refs() +{{/vendorExtensions.x-py-postponed-model-imports.size}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache index 3c371f5b15..c7afad4d17 100644 --- a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache @@ -197,3 +197,10 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} def to_str(self) -> str: """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + +{{#vendorExtensions.x-py-postponed-model-imports.size}} +{{#vendorExtensions.x-py-postponed-model-imports}} +{{{.}}} +{{/vendorExtensions.x-py-postponed-model-imports}} +{{classname}}.update_forward_refs() +{{/vendorExtensions.x-py-postponed-model-imports.size}} \ No newline at end of file diff --git a/samples/client/echo_api/python/docs/BodyApi.md b/samples/client/echo_api/python/docs/BodyApi.md index ec554d1432..553100ffc9 100644 --- a/samples/client/echo_api/python/docs/BodyApi.md +++ b/samples/client/echo_api/python/docs/BodyApi.md @@ -51,6 +51,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -113,6 +114,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -178,6 +180,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -243,6 +246,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -309,6 +313,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -375,6 +380,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -441,6 +447,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python/docs/FormApi.md b/samples/client/echo_api/python/docs/FormApi.md index eab4a7bce4..9d5eabf9cb 100644 --- a/samples/client/echo_api/python/docs/FormApi.md +++ b/samples/client/echo_api/python/docs/FormApi.md @@ -48,6 +48,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python/docs/HeaderApi.md b/samples/client/echo_api/python/docs/HeaderApi.md index f24090ec21..740eb14907 100644 --- a/samples/client/echo_api/python/docs/HeaderApi.md +++ b/samples/client/echo_api/python/docs/HeaderApi.md @@ -48,6 +48,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python/docs/PathApi.md b/samples/client/echo_api/python/docs/PathApi.md index 2c15c4f561..122a0c33c7 100644 --- a/samples/client/echo_api/python/docs/PathApi.md +++ b/samples/client/echo_api/python/docs/PathApi.md @@ -47,6 +47,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python/docs/QueryApi.md b/samples/client/echo_api/python/docs/QueryApi.md index d87748883d..11c486b738 100644 --- a/samples/client/echo_api/python/docs/QueryApi.md +++ b/samples/client/echo_api/python/docs/QueryApi.md @@ -54,6 +54,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -121,6 +122,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -190,6 +192,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -258,6 +261,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -323,6 +327,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -389,6 +394,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -455,6 +461,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -520,6 +527,7 @@ with openapi_client.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python/openapi_client/models/bird.py b/samples/client/echo_api/python/openapi_client/models/bird.py index 1b44354439..acffeedec3 100644 --- a/samples/client/echo_api/python/openapi_client/models/bird.py +++ b/samples/client/echo_api/python/openapi_client/models/bird.py @@ -71,3 +71,4 @@ class Bird(BaseModel): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/category.py b/samples/client/echo_api/python/openapi_client/models/category.py index 5d5c520504..45094656f8 100644 --- a/samples/client/echo_api/python/openapi_client/models/category.py +++ b/samples/client/echo_api/python/openapi_client/models/category.py @@ -71,3 +71,4 @@ class Category(BaseModel): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/data_query.py b/samples/client/echo_api/python/openapi_client/models/data_query.py index bdb542231f..aea05c99b3 100644 --- a/samples/client/echo_api/python/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python/openapi_client/models/data_query.py @@ -76,3 +76,4 @@ class DataQuery(Query): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/default_value.py b/samples/client/echo_api/python/openapi_client/models/default_value.py index 9039bbbc68..88f5efc4c5 100644 --- a/samples/client/echo_api/python/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python/openapi_client/models/default_value.py @@ -110,3 +110,4 @@ class DefaultValue(BaseModel): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py index 4a7a717f63..c1b08e97b0 100644 --- a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py @@ -73,3 +73,4 @@ class NumberPropertiesOnly(BaseModel): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/pet.py b/samples/client/echo_api/python/openapi_client/models/pet.py index 905002e6a1..75013ffa10 100644 --- a/samples/client/echo_api/python/openapi_client/models/pet.py +++ b/samples/client/echo_api/python/openapi_client/models/pet.py @@ -101,3 +101,4 @@ class Pet(BaseModel): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/query.py b/samples/client/echo_api/python/openapi_client/models/query.py index f24cd4b2af..041dfc46db 100644 --- a/samples/client/echo_api/python/openapi_client/models/query.py +++ b/samples/client/echo_api/python/openapi_client/models/query.py @@ -71,3 +71,4 @@ class Query(BaseModel): def from_dict(cls, obj: dict) -> Query: """Create an instance of Query from a dict""" + diff --git a/samples/client/echo_api/python/openapi_client/models/tag.py b/samples/client/echo_api/python/openapi_client/models/tag.py index b0a4598e06..389d96ee5e 100644 --- a/samples/client/echo_api/python/openapi_client/models/tag.py +++ b/samples/client/echo_api/python/openapi_client/models/tag.py @@ -71,3 +71,4 @@ class Tag(BaseModel): }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 11113ca0d7..88cd27fc4d 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -75,3 +75,4 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod }) return _obj + diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index f9d2a601f2..c79380bb3b 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -69,3 +69,4 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/AnotherFakeApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/AnotherFakeApi.md index 8c3c78b95f..95447def35 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/AnotherFakeApi.md @@ -47,6 +47,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/DefaultApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/DefaultApi.md index 661c446ebf..5585354840 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/DefaultApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/DefaultApi.md @@ -43,6 +43,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md index a98da401ea..2395f0a8f7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md @@ -60,6 +60,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -122,6 +123,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -185,6 +187,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -313,6 +316,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -379,6 +383,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -444,6 +449,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -508,6 +514,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -572,6 +579,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -637,6 +645,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -699,6 +708,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -762,6 +772,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -824,6 +835,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -891,6 +903,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -952,6 +965,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1041,6 +1055,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1134,6 +1149,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1202,6 +1218,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1266,6 +1283,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1335,6 +1353,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeClassnameTags123Api.md index 5ae7aaa0b4..3f833a270c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeClassnameTags123Api.md @@ -58,6 +58,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/PetApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/PetApi.md index a0b92ad45c..e681787469 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/PetApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/PetApi.md @@ -123,6 +123,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -195,6 +196,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -333,6 +335,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -470,6 +473,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -548,6 +552,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -684,6 +689,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -759,6 +765,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -837,6 +844,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -914,6 +922,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/StoreApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/StoreApi.md index ce5b266036..9d7a7b7817 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/StoreApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/StoreApi.md @@ -47,6 +47,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -123,6 +124,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -186,6 +188,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -254,6 +257,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/UserApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/UserApi.md index e33dcbe11b..0bd69e33d9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/UserApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/UserApi.md @@ -52,6 +52,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -116,6 +117,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -180,6 +182,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -243,6 +246,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -310,6 +314,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -378,6 +383,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -442,6 +448,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -504,6 +511,7 @@ async with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py index c2e07e7095..1fc1b37b1e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py @@ -70,3 +70,4 @@ class AdditionalPropertiesClass(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py index aeb365da90..b30bae9da3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py @@ -71,3 +71,4 @@ class AllOfWithSingleRef(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py index 9279e03984..3845df681a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py @@ -87,3 +87,4 @@ class Animal(BaseModel): json.dumps(obj) + ". Discriminator property name: " + cls.__discriminator_property_name + ", mapping: " + json.dumps(cls.__discriminator_value_class_map)) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py index 4b66a315d1..e329f83c65 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py @@ -152,3 +152,4 @@ class AnyOfColor(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py index 3e98a0089e..d87636037d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py @@ -131,3 +131,4 @@ class AnyOfPig(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/api_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/api_response.py index d42d3d8657..109b271f51 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/api_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/api_response.py @@ -72,3 +72,4 @@ class ApiResponse(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py index 98d81af135..88b619f0c9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py @@ -81,3 +81,4 @@ class ArrayOfArrayOfModel(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py index 3a392f17c2..40f06d16f3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py @@ -68,3 +68,4 @@ class ArrayOfArrayOfNumberOnly(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py index 96fa5c93a0..86ecf1452a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py @@ -68,3 +68,4 @@ class ArrayOfNumberOnly(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py index 4adcb06ff2..164b4b48e4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py @@ -85,3 +85,4 @@ class ArrayTest(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py index 9f2a647b3e..f603922c17 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py @@ -70,3 +70,4 @@ class BasquePig(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py index d849bb224f..147a3352d2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py @@ -78,3 +78,4 @@ class Capitalization(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py index 3cfd5c076d..4b3ea629ba 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py @@ -71,3 +71,4 @@ class Cat(Animal): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py index 95eeff4eec..a5725bbc09 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py @@ -70,3 +70,4 @@ class Category(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py index a2267f66d4..1f5d70317a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py @@ -73,3 +73,6 @@ class CircularReferenceModel(BaseModel): }) return _obj +from petstore_api.models.first_ref import FirstRef +CircularReferenceModel.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py index ed62d02c89..b0cbae8766 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py @@ -68,3 +68,4 @@ class ClassModel(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py index 25a00323c5..c191c85ca2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py @@ -68,3 +68,4 @@ class Client(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py index 06a756c16a..5047c4c138 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py @@ -167,3 +167,4 @@ class Color(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py index 0071d43781..92154cf42d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py @@ -70,3 +70,4 @@ class DanishPig(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py index 364d0b2fb2..7af8ca9f66 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py @@ -68,3 +68,4 @@ class DeprecatedObject(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py index 6441120951..a6bc969d8a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py @@ -71,3 +71,4 @@ class Dog(Animal): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py index 806332316d..11faf8a713 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py @@ -73,3 +73,6 @@ class DummyModel(BaseModel): }) return _obj +from petstore_api.models.self_reference_model import SelfReferenceModel +DummyModel.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py index 73d6b81c17..2504268a6e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py @@ -91,3 +91,4 @@ class EnumArrays(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py index f93051f436..224dfcc880 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py @@ -140,3 +140,4 @@ class EnumTest(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py index fb0c1b0375..eec2ba0215 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py @@ -68,3 +68,4 @@ class File(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py index 80f8965a59..ad7822c1fc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py @@ -81,3 +81,4 @@ class FileSchemaTestClass(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py index 14a1cf6f4f..60139701da 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py @@ -73,3 +73,6 @@ class FirstRef(BaseModel): }) return _obj +from petstore_api.models.second_ref import SecondRef +FirstRef.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py index 7f92613b7a..b71eda576b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py @@ -68,3 +68,4 @@ class Foo(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py index d51b918023..395fb5aacc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py @@ -72,3 +72,4 @@ class FooGetDefaultResponse(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py index e2e0e0c035..0692c177f1 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py @@ -140,3 +140,4 @@ class FormatTest(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py index d966338a75..d4c4e15654 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py @@ -72,3 +72,4 @@ class HasOnlyReadOnly(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py index df22bd73b5..7d37151f6c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py @@ -73,3 +73,4 @@ class HealthCheckResult(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py index bdafe05358..903911cdc5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py @@ -68,3 +68,4 @@ class InnerDictWithProperty(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py index 558f6b5b3f..c2e261a939 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py @@ -144,3 +144,4 @@ class IntOrString(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list.py index 07630b0932..ca8964ebba 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list.py @@ -68,3 +68,4 @@ class List(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py index ad14d2d98d..5149506f57 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py @@ -85,3 +85,4 @@ class MapOfArrayOfModel(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py index 8951300228..e70777bbd7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py @@ -84,3 +84,4 @@ class MapTest(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py index c381b9ab52..8e4325a55a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -85,3 +85,4 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py index d5443ea6a1..f0cbfc410e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py @@ -70,3 +70,4 @@ class Model200Response(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py index 0f7e4bbe06..39d09c1988 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py @@ -68,3 +68,4 @@ class ModelReturn(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py index b13fdb2e50..f4add6bf8b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py @@ -76,3 +76,4 @@ class Name(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py index 0235d20c8e..d1ca0e060c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py @@ -147,3 +147,4 @@ class NullableClass(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py index f8cc9a8aa0..b50d8e54b3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py @@ -85,3 +85,4 @@ class NullableProperty(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py index e7eaf5ef06..01bad0f002 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py @@ -68,3 +68,4 @@ class NumberOnly(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py index 2166e776bf..e906aecd90 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py @@ -68,3 +68,4 @@ class ObjectToTestAdditionalProperties(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py index e2ae308b3e..afc4be1584 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py @@ -78,3 +78,4 @@ class ObjectWithDeprecatedFields(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py index 43a35efbaa..44a95be19e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py @@ -138,3 +138,4 @@ class OneOfEnumString(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py index 6b88135404..1175343018 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py @@ -88,3 +88,4 @@ class Order(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py index 5846744e3b..bea4baa297 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py @@ -72,3 +72,4 @@ class OuterComposite(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py index a08adf4f3a..1db19d3185 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py @@ -77,3 +77,4 @@ class OuterObjectWithEnumProperty(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py index f8fff21bf2..ea5faa7ca5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py @@ -81,3 +81,4 @@ class Parent(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py index faf2217505..8c917ea9bb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py @@ -81,3 +81,4 @@ class ParentWithOptionalDict(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py index 2861409982..18258bbdd8 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py @@ -100,3 +100,4 @@ class Pet(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py index c31f7144ec..e183d613c9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py @@ -141,3 +141,4 @@ class Pig(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py index 7b41c5a078..a65090f0de 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py @@ -72,3 +72,4 @@ class PropertyNameCollision(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py index d6c71f77e8..df5cf59ad3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py @@ -71,3 +71,4 @@ class ReadOnlyFirst(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py index 2e5442dcc5..39665902e9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py @@ -73,3 +73,6 @@ class SecondRef(BaseModel): }) return _obj +from petstore_api.models.circular_reference_model import CircularReferenceModel +SecondRef.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py index 5e40902ead..8f487942e6 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py @@ -73,3 +73,6 @@ class SelfReferenceModel(BaseModel): }) return _obj +from petstore_api.models.dummy_model import DummyModel +SelfReferenceModel.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py index 5f7a78250b..5aa142ac23 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py @@ -68,3 +68,4 @@ class SpecialModelName(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py index a72b537dcd..a05ed69477 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py @@ -86,3 +86,4 @@ class SpecialName(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py index 8d53ed2096..4399ef325d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py @@ -70,3 +70,4 @@ class Tag(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py index 8e58d9ae49..ddb4f95e16 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py @@ -82,3 +82,4 @@ class User(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py index d552617efa..072f5aa519 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py @@ -80,3 +80,4 @@ class WithNestedOneOf(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python/docs/AnotherFakeApi.md b/samples/openapi3/client/petstore/python/docs/AnotherFakeApi.md index 273ee21549..d3103c7d36 100755 --- a/samples/openapi3/client/petstore/python/docs/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/AnotherFakeApi.md @@ -47,6 +47,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python/docs/DefaultApi.md b/samples/openapi3/client/petstore/python/docs/DefaultApi.md index 24212469e3..a5c2b671f3 100755 --- a/samples/openapi3/client/petstore/python/docs/DefaultApi.md +++ b/samples/openapi3/client/petstore/python/docs/DefaultApi.md @@ -43,6 +43,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. diff --git a/samples/openapi3/client/petstore/python/docs/FakeApi.md b/samples/openapi3/client/petstore/python/docs/FakeApi.md index 5f5f9e7ebc..d39749d664 100755 --- a/samples/openapi3/client/petstore/python/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/FakeApi.md @@ -60,6 +60,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -122,6 +123,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -185,6 +187,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -313,6 +316,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -379,6 +383,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -444,6 +449,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -508,6 +514,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -572,6 +579,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -637,6 +645,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -699,6 +708,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -762,6 +772,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -824,6 +835,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -891,6 +903,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -952,6 +965,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1041,6 +1055,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1134,6 +1149,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1202,6 +1218,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1266,6 +1283,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -1335,6 +1353,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md index aa0487d44d..0319aac41c 100755 --- a/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md @@ -58,6 +58,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python/docs/PetApi.md b/samples/openapi3/client/petstore/python/docs/PetApi.md index 224c555dab..8a0202f375 100755 --- a/samples/openapi3/client/petstore/python/docs/PetApi.md +++ b/samples/openapi3/client/petstore/python/docs/PetApi.md @@ -123,6 +123,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -195,6 +196,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -333,6 +335,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -470,6 +473,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -548,6 +552,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -684,6 +689,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -759,6 +765,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -837,6 +844,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -914,6 +922,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python/docs/StoreApi.md b/samples/openapi3/client/petstore/python/docs/StoreApi.md index 0b99ab7f26..9a4c0ec8c0 100755 --- a/samples/openapi3/client/petstore/python/docs/StoreApi.md +++ b/samples/openapi3/client/petstore/python/docs/StoreApi.md @@ -47,6 +47,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -123,6 +124,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -186,6 +188,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -254,6 +257,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python/docs/UserApi.md b/samples/openapi3/client/petstore/python/docs/UserApi.md index c75e6ec496..810e75e127 100755 --- a/samples/openapi3/client/petstore/python/docs/UserApi.md +++ b/samples/openapi3/client/petstore/python/docs/UserApi.md @@ -52,6 +52,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -116,6 +117,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -180,6 +182,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -243,6 +246,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -310,6 +314,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -378,6 +383,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes @@ -442,6 +448,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters This endpoint does not need any parameter. @@ -504,6 +511,7 @@ with petstore_api.ApiClient(configuration) as api_client: ``` + ### Parameters Name | Type | Description | Notes diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py index 4389a2f9ff..97fbdb4b21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py @@ -82,3 +82,4 @@ class AdditionalPropertiesClass(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py index 811f81be2a..a563b89ab2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py @@ -83,3 +83,4 @@ class AllOfWithSingleRef(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py index 186c6ad04d..fd2f85ac51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py @@ -94,3 +94,4 @@ class Animal(BaseModel): json.dumps(obj) + ". Discriminator property name: " + cls.__discriminator_property_name + ", mapping: " + json.dumps(cls.__discriminator_value_class_map)) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py index 4b66a315d1..e329f83c65 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py @@ -152,3 +152,4 @@ class AnyOfColor(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py index 3e98a0089e..d87636037d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py @@ -131,3 +131,4 @@ class AnyOfPig(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/api_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/api_response.py index f410ebbb48..7e4d94262e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/api_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/api_response.py @@ -84,3 +84,4 @@ class ApiResponse(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py index 9dd6a0bc8f..0ba86653d5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py @@ -93,3 +93,4 @@ class ArrayOfArrayOfModel(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py index e05f4b2637..dfe4ac5b31 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py @@ -80,3 +80,4 @@ class ArrayOfArrayOfNumberOnly(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py index cd83179f39..4b60e5cbdf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py @@ -80,3 +80,4 @@ class ArrayOfNumberOnly(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py index 9a07810414..892d1fdff5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py @@ -97,3 +97,4 @@ class ArrayTest(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py index e889edc4ff..05cc61be50 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py @@ -82,3 +82,4 @@ class BasquePig(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py index fe69b1f0f1..24e592c09f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py @@ -90,3 +90,4 @@ class Capitalization(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py index adf56fe649..24e42255ea 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py @@ -83,3 +83,4 @@ class Cat(Animal): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/category.py b/samples/openapi3/client/petstore/python/petstore_api/models/category.py index f46ab43c11..2dfe9fc495 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/category.py @@ -82,3 +82,4 @@ class Category(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py index 647590a3cf..c5ec9ca36e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py @@ -85,3 +85,6 @@ class CircularReferenceModel(BaseModel): return _obj +from petstore_api.models.first_ref import FirstRef +CircularReferenceModel.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py index ee9defcac8..4a1c31bf2b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py @@ -80,3 +80,4 @@ class ClassModel(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/client.py b/samples/openapi3/client/petstore/python/petstore_api/models/client.py index 42e672ed48..3f967d8740 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/client.py @@ -80,3 +80,4 @@ class Client(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/color.py b/samples/openapi3/client/petstore/python/petstore_api/models/color.py index 06a756c16a..5047c4c138 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/color.py @@ -167,3 +167,4 @@ class Color(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py index 81dcfaa47a..eec7d58ef1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py @@ -82,3 +82,4 @@ class DanishPig(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py index d95f02a688..17796e0164 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py @@ -80,3 +80,4 @@ class DeprecatedObject(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py index 5d55c469e3..c880e5086f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py @@ -83,3 +83,4 @@ class Dog(Animal): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py index 40aa5456a8..02e72fdeb0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py @@ -85,3 +85,6 @@ class DummyModel(BaseModel): return _obj +from petstore_api.models.self_reference_model import SelfReferenceModel +DummyModel.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py index 06e7d007f3..d53e2afa68 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py @@ -103,3 +103,4 @@ class EnumArrays(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py index 3a07c22505..3aa414d3dc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py @@ -152,3 +152,4 @@ class EnumTest(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file.py b/samples/openapi3/client/petstore/python/petstore_api/models/file.py index 51b5229b82..b309fbc891 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file.py @@ -80,3 +80,4 @@ class File(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py index 7a4c8fb356..b0cff92e44 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py @@ -93,3 +93,4 @@ class FileSchemaTestClass(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py index bf34c82e60..d71f6f5525 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py @@ -85,3 +85,6 @@ class FirstRef(BaseModel): return _obj +from petstore_api.models.second_ref import SecondRef +FirstRef.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py index 4638e6b043..eb42fc582a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py @@ -80,3 +80,4 @@ class Foo(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py index e2f972c177..d2c72be714 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py @@ -84,3 +84,4 @@ class FooGetDefaultResponse(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py index b331159188..bdb03ccf53 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py @@ -152,3 +152,4 @@ class FormatTest(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py index e5f0ea3765..253cc30780 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py @@ -84,3 +84,4 @@ class HasOnlyReadOnly(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py index 5179eb30f5..8d053ca892 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py @@ -85,3 +85,4 @@ class HealthCheckResult(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py index a560f57f7c..ba01187a1b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py @@ -80,3 +80,4 @@ class InnerDictWithProperty(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py index 558f6b5b3f..c2e261a939 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py @@ -144,3 +144,4 @@ class IntOrString(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/list.py b/samples/openapi3/client/petstore/python/petstore_api/models/list.py index a97112a8d0..176d5519ad 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/list.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/list.py @@ -80,3 +80,4 @@ class List(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py index d46fa49e56..413c0af6e3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py @@ -97,3 +97,4 @@ class MapOfArrayOfModel(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py index a1f5970a4a..01936ce240 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py @@ -96,3 +96,4 @@ class MapTest(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py index 8ea1cfbdf4..7e373c20cb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -97,3 +97,4 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py index c4e39940e9..de49168fed 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py @@ -82,3 +82,4 @@ class Model200Response(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py index 7781d9bad1..03a7164230 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py @@ -80,3 +80,4 @@ class ModelReturn(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/name.py b/samples/openapi3/client/petstore/python/petstore_api/models/name.py index aa6943e9db..bb9c33ec0a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/name.py @@ -88,3 +88,4 @@ class Name(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py index 5b4366c6ac..cfd086598f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py @@ -147,3 +147,4 @@ class NullableClass(BaseModel): }) return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py index e7c2e0d8ee..cd361eab95 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py @@ -97,3 +97,4 @@ class NullableProperty(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py index 5570cd9fb2..d27bc73ba7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py @@ -80,3 +80,4 @@ class NumberOnly(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py index 6a985aea7c..7e2a2ef2f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py @@ -80,3 +80,4 @@ class ObjectToTestAdditionalProperties(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py index 30f19678a2..7c3050b289 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py @@ -90,3 +90,4 @@ class ObjectWithDeprecatedFields(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py index 43a35efbaa..44a95be19e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py @@ -138,3 +138,4 @@ class OneOfEnumString(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/order.py b/samples/openapi3/client/petstore/python/petstore_api/models/order.py index b08fa6e018..29bdf8a4b0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/order.py @@ -100,3 +100,4 @@ class Order(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py index 43f0340dc9..e5faf713e7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py @@ -84,3 +84,4 @@ class OuterComposite(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py index 2efc5dc57f..d12595f7a8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py @@ -89,3 +89,4 @@ class OuterObjectWithEnumProperty(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py index 0d9390748c..c37be41d3d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py @@ -93,3 +93,4 @@ class Parent(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py index 16cba1e8f3..741e54f3f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py @@ -93,3 +93,4 @@ class ParentWithOptionalDict(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py index 29f0ed2d9d..ada3d0ae54 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py @@ -112,3 +112,4 @@ class Pet(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py index 68bede1d61..9609047eab 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py @@ -156,3 +156,4 @@ class Pig(BaseModel): """Returns the string representation of the actual instance""" return pprint.pformat(self.dict()) + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py index 2f11b3f31e..b69a4059eb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py @@ -84,3 +84,4 @@ class PropertyNameCollision(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py index 02d9dd8ea5..41410e91b4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py @@ -83,3 +83,4 @@ class ReadOnlyFirst(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py index b957674259..5f78ed0fea 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py @@ -85,3 +85,6 @@ class SecondRef(BaseModel): return _obj +from petstore_api.models.circular_reference_model import CircularReferenceModel +SecondRef.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py index 7d45857f3a..c86329507b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py @@ -85,3 +85,6 @@ class SelfReferenceModel(BaseModel): return _obj +from petstore_api.models.dummy_model import DummyModel +SelfReferenceModel.update_forward_refs() + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py index e0eb070d95..4173738bb5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py @@ -80,3 +80,4 @@ class SpecialModelName(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py index 3705f3032e..11f439c12c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py @@ -98,3 +98,4 @@ class SpecialName(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py index f6cf832ffa..38099f2d07 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py @@ -82,3 +82,4 @@ class Tag(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/user.py b/samples/openapi3/client/petstore/python/petstore_api/models/user.py index 6be069e656..3abf6ec228 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/user.py @@ -94,3 +94,4 @@ class User(BaseModel): return _obj + diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py index 04efa88e68..91e65ba672 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py @@ -92,3 +92,4 @@ class WithNestedOneOf(BaseModel): return _obj +