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 a348b93397a..56e9974788e 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 d71d8436509..15fbe332696 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 4aaff740489..74a007fbc19 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 0fa9768ba7b..07a3f303d4f 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 3c371f5b15f..c7afad4d172 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 ec554d1432f..553100ffc92 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 eab4a7bce45..9d5eabf9cbf 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 f24090ec21d..740eb149074 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 2c15c4f5612..122a0c33c71 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 d87748883d5..11c486b7382 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 1b443544391..acffeedec31 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 5d5c5205046..45094656f80 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 bdb542231f1..aea05c99b3e 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 9039bbbc68a..88f5efc4c55 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 4a7a717f637..c1b08e97b06 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 905002e6a14..75013ffa10b 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 f24cd4b2af3..041dfc46dbb 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 b0a4598e068..389d96ee5e0 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 11113ca0d70..88cd27fc4da 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 f9d2a601f24..c79380bb3bd 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 8c3c78b95ff..95447def35e 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 661c446ebf0..55853548401 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 a98da401eab..2395f0a8f7f 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 5ae7aaa0b40..3f833a270cd 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 a0b92ad45c1..e6817874690 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 ce5b2660369..9d7a7b78170 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 e33dcbe11b9..0bd69e33d90 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 c2e07e7095a..1fc1b37b1e7 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 aeb365da90b..b30bae9da3e 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 9279e039841..3845df681a8 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 4b66a315d1d..e329f83c65c 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 3e98a0089e2..d87636037d6 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 d42d3d86576..109b271f51f 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 98d81af1350..88b619f0c93 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 3a392f17c20..40f06d16f3c 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 96fa5c93a0d..86ecf1452a5 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 4adcb06ff2d..164b4b48e4e 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 9f2a647b3e2..f603922c170 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 d849bb224f8..147a3352d21 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 3cfd5c076d9..4b3ea629bae 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 95eeff4eecd..a5725bbc096 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 a2267f66d48..1f5d70317a5 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 ed62d02c898..b0cbae8766a 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 25a00323c5d..c191c85ca2a 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 06a756c16a8..5047c4c138d 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 0071d437816..92154cf42d1 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 364d0b2fb2f..7af8ca9f66d 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 6441120951e..a6bc969d8af 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 806332316df..11faf8a713f 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 73d6b81c171..2504268a6e1 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 f93051f4365..224dfcc8808 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 fb0c1b03752..eec2ba02152 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 80f8965a595..ad7822c1fc4 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 14a1cf6f4f3..60139701daa 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 7f92613b7a9..b71eda576b8 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 d51b9180234..395fb5aacc5 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 e2e0e0c0359..0692c177f13 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 d966338a757..d4c4e156548 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 df22bd73b5e..7d37151f6c3 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 bdafe053581..903911cdc53 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 558f6b5b3f5..c2e261a939e 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 07630b0932c..ca8964ebba1 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 ad14d2d98d1..5149506f579 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 89513002284..e70777bbd78 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 c381b9ab526..8e4325a55a3 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 d5443ea6a15..f0cbfc410ef 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 0f7e4bbe06a..39d09c19882 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 b13fdb2e507..f4add6bf8b5 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 0235d20c8e5..d1ca0e060c1 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 f8cc9a8aa01..b50d8e54b3c 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 e7eaf5ef060..01bad0f0022 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 2166e776bfb..e906aecd909 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 e2ae308b3e0..afc4be15844 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 43a35efbaa1..44a95be19ec 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 6b88135404e..1175343018e 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 5846744e3bd..bea4baa297e 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 a08adf4f3ae..1db19d31859 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 f8fff21bf2d..ea5faa7ca5c 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 faf22175056..8c917ea9bb2 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 28614099822..18258bbdd8d 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 c31f7144ec1..e183d613c9f 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 7b41c5a078e..a65090f0de8 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 d6c71f77e83..df5cf59ad32 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 2e5442dcc57..39665902e92 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 5e40902ead5..8f487942e64 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 5f7a78250bd..5aa142ac23f 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 a72b537dcdb..a05ed694770 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 8d53ed20969..4399ef325d0 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 8e58d9ae491..ddb4f95e166 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 d552617efaa..072f5aa5193 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 273ee215490..d3103c7d369 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 24212469e33..a5c2b671f34 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 5f5f9e7ebcd..d39749d664e 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 aa0487d44d0..0319aac41cf 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 224c555dab1..8a0202f3753 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 0b99ab7f26d..9a4c0ec8c00 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 c75e6ec4962..810e75e1271 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 4389a2f9ffe..97fbdb4b218 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 811f81be2ab..a563b89ab2d 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 186c6ad04d0..fd2f85ac510 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 4b66a315d1d..e329f83c65c 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 3e98a0089e2..d87636037d6 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 f410ebbb483..7e4d94262e1 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 9dd6a0bc8f6..0ba86653d5c 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 e05f4b26375..dfe4ac5b319 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 cd83179f39d..4b60e5cbdf1 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 9a07810414a..892d1fdff54 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 e889edc4ff6..05cc61be506 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 fe69b1f0f11..24e592c09fc 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 adf56fe649d..24e42255ea9 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 f46ab43c119..2dfe9fc4958 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 647590a3cfb..c5ec9ca36e9 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 ee9defcac8b..4a1c31bf2b0 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 42e672ed484..3f967d87405 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 06a756c16a8..5047c4c138d 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 81dcfaa47a1..eec7d58ef17 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 d95f02a6880..17796e01640 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 5d55c469e33..c880e5086f6 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 40aa5456a81..02e72fdeb04 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 06e7d007f37..d53e2afa688 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 3a07c22505f..3aa414d3dc4 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 51b5229b823..b309fbc891c 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 7a4c8fb3560..b0cff92e44c 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 bf34c82e60d..d71f6f55251 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 4638e6b0437..eb42fc582ae 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 e2f972c1773..d2c72be7140 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 b3311591880..bdb03ccf53c 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 e5f0ea3765c..253cc307809 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 5179eb30f56..8d053ca8928 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 a560f57f7c2..ba01187a1bf 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 558f6b5b3f5..c2e261a939e 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 a97112a8d03..176d5519ad2 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 d46fa49e568..413c0af6e3e 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 a1f5970a4a2..01936ce2403 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 8ea1cfbdf4e..7e373c20cba 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 c4e39940e9f..de49168fed2 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 7781d9bad18..03a7164230d 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 aa6943e9db1..bb9c33ec0a1 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 5b4366c6ac5..cfd086598f3 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 e7c2e0d8ee1..cd361eab95f 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 5570cd9fb2d..d27bc73ba76 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 6a985aea7cf..7e2a2ef2f6b 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 30f19678a22..7c3050b289a 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 43a35efbaa1..44a95be19ec 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 b08fa6e018d..29bdf8a4b02 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 43f0340dc9e..e5faf713e72 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 2efc5dc57f2..d12595f7a80 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 0d9390748c4..c37be41d3d4 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 16cba1e8f3f..741e54f3f24 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 29f0ed2d9db..ada3d0ae54e 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 68bede1d619..9609047eaba 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 2f11b3f31e9..b69a4059eb1 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 02d9dd8ea59..41410e91b41 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 b9576742598..5f78ed0feaf 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 7d45857f3a9..c86329507b5 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 e0eb070d952..4173738bb5e 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 3705f3032e1..11f439c12cc 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 f6cf832ffad..38099f2d070 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 6be069e6563..3abf6ec2289 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 04efa88e686..91e65ba6728 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 +