From d497c3d087b85ecebf8839a732fc572ae794fc45 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 6 Mar 2023 21:22:43 +0800 Subject: [PATCH] [python-nextgen] Better docstring/documentation (#14880) * better docstring/documentation in python nextgen client * update instruction in test files --- .../main/resources/python-nextgen/api_client.mustache | 4 ---- .../resources/python-nextgen/configuration.mustache | 6 +----- .../resources/python-nextgen/model_anyof.mustache | 7 +++---- .../main/resources/python-nextgen/model_enum.mustache | 8 +++----- .../resources/python-nextgen/model_generic.mustache | 8 +++----- .../resources/python-nextgen/model_oneof.mustache | 6 ++---- .../resources/python-nextgen/partial_header.mustache | 8 +++++--- .../main/resources/python-nextgen/signing.mustache | 5 ----- .../python-nextgen/openapi_client/__init__.py | 4 +++- .../python-nextgen/openapi_client/api/body_api.py | 4 +++- .../python-nextgen/openapi_client/api/form_api.py | 4 +++- .../python-nextgen/openapi_client/api/header_api.py | 4 +++- .../python-nextgen/openapi_client/api/path_api.py | 4 +++- .../python-nextgen/openapi_client/api/query_api.py | 4 +++- .../python-nextgen/openapi_client/api_client.py | 8 +++----- .../python-nextgen/openapi_client/configuration.py | 10 ++++------ .../python-nextgen/openapi_client/exceptions.py | 4 +++- .../python-nextgen/openapi_client/models/__init__.py | 4 +++- .../python-nextgen/openapi_client/models/bird.py | 10 +++++----- .../python-nextgen/openapi_client/models/category.py | 10 +++++----- .../openapi_client/models/data_query.py | 10 +++++----- .../openapi_client/models/data_query_all_of.py | 10 +++++----- .../openapi_client/models/default_value.py | 10 +++++----- .../python-nextgen/openapi_client/models/pet.py | 10 +++++----- .../python-nextgen/openapi_client/models/query.py | 10 +++++----- .../openapi_client/models/string_enum_ref.py | 11 +++++------ .../python-nextgen/openapi_client/models/tag.py | 10 +++++----- ...plode_true_object_all_of_query_object_parameter.py | 10 +++++----- ...xplode_true_array_string_query_object_parameter.py | 10 +++++----- .../echo_api/python-nextgen/openapi_client/rest.py | 4 +++- samples/client/echo_api/python-nextgen/setup.py | 4 +++- .../python-nextgen-aiohttp/petstore_api/__init__.py | 4 +++- .../petstore_api/api/another_fake_api.py | 4 +++- .../petstore_api/api/default_api.py | 4 +++- .../petstore_api/api/fake_api.py | 4 +++- .../petstore_api/api/fake_classname_tags123_api.py | 4 +++- .../petstore_api/api/pet_api.py | 4 +++- .../petstore_api/api/store_api.py | 4 +++- .../petstore_api/api/user_api.py | 4 +++- .../python-nextgen-aiohttp/petstore_api/api_client.py | 8 +++----- .../petstore_api/configuration.py | 10 ++++------ .../python-nextgen-aiohttp/petstore_api/exceptions.py | 4 +++- .../petstore_api/models/__init__.py | 4 +++- .../models/additional_properties_class.py | 10 +++++----- .../petstore_api/models/all_of_with_single_ref.py | 10 +++++----- .../petstore_api/models/animal.py | 10 +++++----- .../petstore_api/models/any_of_color.py | 11 ++++++----- .../petstore_api/models/any_of_pig.py | 11 ++++++----- .../petstore_api/models/api_response.py | 10 +++++----- .../models/array_of_array_of_number_only.py | 10 +++++----- .../petstore_api/models/array_of_number_only.py | 10 +++++----- .../petstore_api/models/array_test.py | 10 +++++----- .../petstore_api/models/basque_pig.py | 10 +++++----- .../petstore_api/models/capitalization.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/models/cat.py | 10 +++++----- .../petstore_api/models/cat_all_of.py | 10 +++++----- .../petstore_api/models/category.py | 10 +++++----- .../petstore_api/models/class_model.py | 10 +++++----- .../petstore_api/models/client.py | 10 +++++----- .../petstore_api/models/color.py | 10 +++++----- .../petstore_api/models/danish_pig.py | 10 +++++----- .../petstore_api/models/deprecated_object.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/models/dog.py | 10 +++++----- .../petstore_api/models/dog_all_of.py | 10 +++++----- .../petstore_api/models/dummy_model.py | 10 +++++----- .../petstore_api/models/enum_arrays.py | 10 +++++----- .../petstore_api/models/enum_class.py | 11 +++++------ .../petstore_api/models/enum_test.py | 10 +++++----- .../petstore_api/models/file.py | 10 +++++----- .../petstore_api/models/file_schema_test_class.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/models/foo.py | 10 +++++----- .../petstore_api/models/foo_get_default_response.py | 10 +++++----- .../petstore_api/models/format_test.py | 10 +++++----- .../petstore_api/models/has_only_read_only.py | 10 +++++----- .../petstore_api/models/health_check_result.py | 10 +++++----- .../petstore_api/models/list.py | 10 +++++----- .../petstore_api/models/map_test.py | 10 +++++----- ...ixed_properties_and_additional_properties_class.py | 10 +++++----- .../petstore_api/models/model200_response.py | 10 +++++----- .../petstore_api/models/model_return.py | 10 +++++----- .../petstore_api/models/name.py | 10 +++++----- .../petstore_api/models/nullable_class.py | 10 +++++----- .../petstore_api/models/number_only.py | 10 +++++----- .../models/object_with_deprecated_fields.py | 10 +++++----- .../petstore_api/models/order.py | 10 +++++----- .../petstore_api/models/outer_composite.py | 10 +++++----- .../petstore_api/models/outer_enum.py | 11 +++++------ .../petstore_api/models/outer_enum_default_value.py | 11 +++++------ .../petstore_api/models/outer_enum_integer.py | 11 +++++------ .../models/outer_enum_integer_default_value.py | 11 +++++------ .../models/outer_object_with_enum_property.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/models/pet.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/models/pig.py | 10 +++++----- .../petstore_api/models/read_only_first.py | 10 +++++----- .../petstore_api/models/self_reference_model.py | 10 +++++----- .../petstore_api/models/single_ref_type.py | 11 +++++------ .../petstore_api/models/special_character_enum.py | 11 +++++------ .../petstore_api/models/special_model_name.py | 10 +++++----- .../petstore_api/models/special_name.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/models/tag.py | 10 +++++----- .../petstore_api/models/user.py | 10 +++++----- .../petstore_api/models/with_nested_one_of.py | 10 +++++----- .../python-nextgen-aiohttp/petstore_api/rest.py | 4 +++- .../python-nextgen-aiohttp/petstore_api/signing.py | 9 +++------ .../client/petstore/python-nextgen-aiohttp/setup.py | 4 +++- .../petstore/python-nextgen/petstore_api/__init__.py | 4 +++- .../petstore_api/api/another_fake_api.py | 4 +++- .../python-nextgen/petstore_api/api/default_api.py | 4 +++- .../python-nextgen/petstore_api/api/fake_api.py | 4 +++- .../petstore_api/api/fake_classname_tags123_api.py | 4 +++- .../python-nextgen/petstore_api/api/pet_api.py | 4 +++- .../python-nextgen/petstore_api/api/store_api.py | 4 +++- .../python-nextgen/petstore_api/api/user_api.py | 4 +++- .../python-nextgen/petstore_api/api_client.py | 8 +++----- .../python-nextgen/petstore_api/configuration.py | 10 ++++------ .../python-nextgen/petstore_api/exceptions.py | 4 +++- .../python-nextgen/petstore_api/models/__init__.py | 4 +++- .../models/additional_properties_class.py | 10 +++++----- .../petstore_api/models/all_of_with_single_ref.py | 10 +++++----- .../python-nextgen/petstore_api/models/animal.py | 10 +++++----- .../petstore_api/models/any_of_color.py | 11 ++++++----- .../python-nextgen/petstore_api/models/any_of_pig.py | 11 ++++++----- .../petstore_api/models/api_response.py | 10 +++++----- .../models/array_of_array_of_number_only.py | 10 +++++----- .../petstore_api/models/array_of_number_only.py | 10 +++++----- .../python-nextgen/petstore_api/models/array_test.py | 10 +++++----- .../python-nextgen/petstore_api/models/basque_pig.py | 10 +++++----- .../petstore_api/models/capitalization.py | 10 +++++----- .../python-nextgen/petstore_api/models/cat.py | 10 +++++----- .../python-nextgen/petstore_api/models/cat_all_of.py | 10 +++++----- .../python-nextgen/petstore_api/models/category.py | 10 +++++----- .../python-nextgen/petstore_api/models/class_model.py | 10 +++++----- .../python-nextgen/petstore_api/models/client.py | 10 +++++----- .../python-nextgen/petstore_api/models/color.py | 10 +++++----- .../python-nextgen/petstore_api/models/danish_pig.py | 10 +++++----- .../petstore_api/models/deprecated_object.py | 10 +++++----- .../python-nextgen/petstore_api/models/dog.py | 10 +++++----- .../python-nextgen/petstore_api/models/dog_all_of.py | 10 +++++----- .../python-nextgen/petstore_api/models/dummy_model.py | 10 +++++----- .../python-nextgen/petstore_api/models/enum_arrays.py | 10 +++++----- .../python-nextgen/petstore_api/models/enum_class.py | 11 +++++------ .../python-nextgen/petstore_api/models/enum_test.py | 10 +++++----- .../python-nextgen/petstore_api/models/file.py | 10 +++++----- .../petstore_api/models/file_schema_test_class.py | 10 +++++----- .../python-nextgen/petstore_api/models/foo.py | 10 +++++----- .../petstore_api/models/foo_get_default_response.py | 10 +++++----- .../python-nextgen/petstore_api/models/format_test.py | 10 +++++----- .../petstore_api/models/has_only_read_only.py | 10 +++++----- .../petstore_api/models/health_check_result.py | 10 +++++----- .../python-nextgen/petstore_api/models/list.py | 10 +++++----- .../python-nextgen/petstore_api/models/map_test.py | 10 +++++----- ...ixed_properties_and_additional_properties_class.py | 10 +++++----- .../petstore_api/models/model200_response.py | 10 +++++----- .../petstore_api/models/model_return.py | 10 +++++----- .../python-nextgen/petstore_api/models/name.py | 10 +++++----- .../petstore_api/models/nullable_class.py | 10 +++++----- .../python-nextgen/petstore_api/models/number_only.py | 10 +++++----- .../models/object_with_deprecated_fields.py | 10 +++++----- .../python-nextgen/petstore_api/models/order.py | 10 +++++----- .../petstore_api/models/outer_composite.py | 10 +++++----- .../python-nextgen/petstore_api/models/outer_enum.py | 11 +++++------ .../petstore_api/models/outer_enum_default_value.py | 11 +++++------ .../petstore_api/models/outer_enum_integer.py | 11 +++++------ .../models/outer_enum_integer_default_value.py | 11 +++++------ .../models/outer_object_with_enum_property.py | 10 +++++----- .../python-nextgen/petstore_api/models/pet.py | 10 +++++----- .../python-nextgen/petstore_api/models/pig.py | 10 +++++----- .../petstore_api/models/read_only_first.py | 10 +++++----- .../petstore_api/models/self_reference_model.py | 10 +++++----- .../petstore_api/models/single_ref_type.py | 11 +++++------ .../petstore_api/models/special_character_enum.py | 11 +++++------ .../petstore_api/models/special_model_name.py | 10 +++++----- .../petstore_api/models/special_name.py | 10 +++++----- .../python-nextgen/petstore_api/models/tag.py | 10 +++++----- .../python-nextgen/petstore_api/models/user.py | 10 +++++----- .../petstore_api/models/with_nested_one_of.py | 10 +++++----- .../petstore/python-nextgen/petstore_api/rest.py | 4 +++- .../petstore/python-nextgen/petstore_api/signing.py | 9 +++------ .../openapi3/client/petstore/python-nextgen/setup.py | 4 +++- .../petstore/python-nextgen/tests/test_api_client.py | 4 ++-- .../python-nextgen/tests/test_api_exception.py | 4 ++-- .../python-nextgen/tests/test_api_validation.py | 4 ++-- .../python-nextgen/tests/test_configuration.py | 4 ++-- .../python-nextgen/tests/test_deserialization.py | 4 ++-- .../petstore/python-nextgen/tests/test_map_test.py | 4 ++-- .../petstore/python-nextgen/tests/test_pet_api.py | 4 ++-- .../petstore/python-nextgen/tests/test_store_api.py | 4 ++-- 187 files changed, 811 insertions(+), 790 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache index 624c5ccb09c..fb7320b3317 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache @@ -31,10 +31,6 @@ class ApiClient(object): the methods and models for each application are generated from the OpenAPI templates. - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. :param header_value: a header value to pass when making calls to diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache index b6fab6d7219..ab50e67ea61 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache @@ -15,7 +15,6 @@ import urllib3 import http.client as httplib from {{packageName}}.exceptions import ApiValueError - JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', 'minimum', 'exclusiveMinimum', 'maxLength', @@ -23,10 +22,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { } class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. + """This class contains various settings of the API client. :param host: Base url. :param api_key: Dict to store API key(s). diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/model_anyof.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/model_anyof.mustache index 8c926f284ce..f4687163d26 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/model_anyof.mustache @@ -15,11 +15,10 @@ from pydantic import StrictStr, Field {{#lambda.uppercase}}{{{classname}}}{{/lambda.uppercase}}_ANY_OF_SCHEMAS = [{{#anyOf}}"{{.}}"{{^-last}}, {{/-last}}{{/anyOf}}] class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. """ + {{{description}}}{{^description}}{{{classname}}}{{/description}} + """ + {{#composedSchemas.anyOf}} # data type: {{{dataType}}} {{vendorExtensions.x-py-name}}: {{{vendorExtensions.x-py-typing}}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/model_enum.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/model_enum.mustache index e5b96967451..0e892dcc5bb 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/model_enum.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/model_enum.mustache @@ -8,21 +8,19 @@ from aenum import Enum, no_arg class {{classname}}({{vendorExtensions.x-py-enum-type}}, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + {{{description}}}{{^description}}{{{classname}}}{{/description}} """ """ allowed enum values """ - {{#allowableValues}} {{#enumVars}} {{{name}}} = {{{value}}} {{/enumVars}} {{#defaultValue}} + # @classmethod def _missing_value_(cls, value): diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/model_generic.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/model_generic.mustache index 6c2b3432cfd..a503f6c6676 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/model_generic.mustache @@ -17,10 +17,8 @@ import {{{modelPackage}}} {{/vendorExtensions.x-py-model-imports}} class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + {{{description}}}{{^description}}{{{classname}}}{{/description}} """ {{#vars}} {{name}}: {{{vendorExtensions.x-py-typing}}} @@ -255,4 +253,4 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/isAdditionalPropertiesTrue}} return _obj - {{/hasChildren}} \ No newline at end of file + {{/hasChildren}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/model_oneof.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/model_oneof.mustache index 7e1b110e2b0..b65f784d1cc 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/model_oneof.mustache @@ -15,10 +15,8 @@ from pydantic import StrictStr, Field {{#lambda.uppercase}}{{{classname}}}{{/lambda.uppercase}}_ONE_OF_SCHEMAS = [{{#oneOf}}"{{.}}"{{^-last}}, {{/-last}}{{/oneOf}}] class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + {{{description}}}{{^description}}{{{classname}}}{{/description}} """ {{#composedSchemas.oneOf}} # data type: {{{dataType}}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/partial_header.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/partial_header.mustache index dc3c8f3d8c8..d952d423503 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/partial_header.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/partial_header.mustache @@ -1,17 +1,19 @@ """ {{#appName}} {{{.}}} -{{/appName}} +{{/appName}} {{#appDescription}} {{{.}}} # noqa: E501 -{{/appDescription}} +{{/appDescription}} {{#version}} The version of the OpenAPI document: {{{.}}} {{/version}} {{#infoEmail}} Contact: {{{.}}} {{/infoEmail}} - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/signing.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/signing.mustache index 24889edbd6d..8dca7e2d1ff 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/signing.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/signing.mustache @@ -64,11 +64,6 @@ class HttpSigningConfiguration(object): and optionally the body of the HTTP request, then signing the hash value using a private key. The 'Authorization' header is added to outbound HTTP requests. - NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param key_id: A string value specifying the identifier of the cryptographic key, when signing HTTP requests. :param signing_scheme: A string value specifying the signature scheme, when diff --git a/samples/client/echo_api/python-nextgen/openapi_client/__init__.py b/samples/client/echo_api/python-nextgen/openapi_client/__init__.py index 347fdc2bf4e..e9e75706830 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/__init__.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/__init__.py @@ -9,7 +9,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py index f9da2fd048f..371e24d7302 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py index 812ddd73aee..c1061ca2253 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py index 2b16c49995f..9eaaaae02f5 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py index 13e1cea9b6d..34d1b7c2abb 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py index db829799766..fd624a242e0 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api_client.py b/samples/client/echo_api/python-nextgen/openapi_client/api_client.py index 0eb5185bc9f..ee78378e9ce 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api_client.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api_client.py @@ -6,7 +6,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ from __future__ import absolute_import @@ -37,10 +39,6 @@ class ApiClient(object): the methods and models for each application are generated from the OpenAPI templates. - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. :param header_value: a header value to pass when making calls to diff --git a/samples/client/echo_api/python-nextgen/openapi_client/configuration.py b/samples/client/echo_api/python-nextgen/openapi_client/configuration.py index 059776291f5..629814b7054 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/configuration.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/configuration.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,7 +24,6 @@ import urllib3 import http.client as httplib from openapi_client.exceptions import ApiValueError - JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', 'minimum', 'exclusiveMinimum', 'maxLength', @@ -30,10 +31,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { } class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. + """This class contains various settings of the API client. :param host: Base url. :param api_key: Dict to store API key(s). diff --git a/samples/client/echo_api/python-nextgen/openapi_client/exceptions.py b/samples/client/echo_api/python-nextgen/openapi_client/exceptions.py index 7b5a4e7446b..8851d062b9c 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/exceptions.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/exceptions.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py b/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py index 2fa4419a3ab..efec638ad0b 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py @@ -8,7 +8,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/bird.py b/samples/client/echo_api/python-nextgen/openapi_client/models/bird.py index a1700cddc00..2f8814af624 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/bird.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/bird.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class Bird(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Bird """ size: Optional[StrictStr] = None color: Optional[StrictStr] = None diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/category.py b/samples/client/echo_api/python-nextgen/openapi_client/models/category.py index 7092d0bdc24..20e8ef180c2 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/category.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/category.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class Category(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Category """ id: Optional[StrictInt] = None name: Optional[StrictStr] = None diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/data_query.py b/samples/client/echo_api/python-nextgen/openapi_client/models/data_query.py index f086e5fb828..500a087fe75 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/data_query.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -23,10 +25,8 @@ from pydantic import BaseModel, Field, StrictStr from openapi_client.models.query import Query class DataQuery(Query): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DataQuery """ suffix: Optional[StrictStr] = Field(None, description="test suffix") text: Optional[StrictStr] = Field(None, description="Some text containing white spaces") diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/data_query_all_of.py b/samples/client/echo_api/python-nextgen/openapi_client/models/data_query_all_of.py index 4db37807afd..b0fcf04d3f9 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/data_query_all_of.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/data_query_all_of.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class DataQueryAllOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DataQueryAllOf """ suffix: Optional[StrictStr] = Field(None, description="test suffix") text: Optional[StrictStr] = Field(None, description="Some text containing white spaces") diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/default_value.py b/samples/client/echo_api/python-nextgen/openapi_client/models/default_value.py index 6ba3e69d2b9..92ecd2aba30 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/default_value.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -23,10 +25,8 @@ from pydantic import BaseModel, StrictInt, StrictStr, conlist, validator from openapi_client.models.string_enum_ref import StringEnumRef class DefaultValue(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + to test the default value of properties """ array_string_enum_ref_default: Optional[conlist(StringEnumRef)] = None array_string_enum_default: Optional[conlist(StrictStr)] = None diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/pet.py b/samples/client/echo_api/python-nextgen/openapi_client/models/pet.py index dffafa94de7..00eb3d7be1f 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/pet.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/pet.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -24,10 +26,8 @@ from openapi_client.models.category import Category from openapi_client.models.tag import Tag class Pet(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Pet """ id: Optional[StrictInt] = None name: StrictStr = ... diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/query.py b/samples/client/echo_api/python-nextgen/openapi_client/models/query.py index a62d59ce9a1..d52e87c6f50 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/query.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/query.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import List, Optional from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist, validator class Query(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Query """ id: Optional[StrictInt] = Field(None, description="Query") outcomes: Optional[conlist(StrictStr)] = None diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/string_enum_ref.py b/samples/client/echo_api/python-nextgen/openapi_client/models/string_enum_ref.py index 27741fc9573..e48c86fb0b3 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/string_enum_ref.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/string_enum_ref.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,16 +23,13 @@ from aenum import Enum, no_arg class StringEnumRef(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + StringEnumRef """ """ allowed enum values """ - SUCCESS = 'success' FAILURE = 'failure' UNCLASSIFIED = 'unclassified' diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/tag.py b/samples/client/echo_api/python-nextgen/openapi_client/models/tag.py index 8c187b78386..430b70f4519 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/tag.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/tag.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class Tag(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Tag """ id: Optional[StrictInt] = None name: Optional[StrictStr] = None diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 2a6f3271b26..e43c6fc5a81 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter """ size: Optional[StrictStr] = None color: Optional[StrictStr] = None diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 955e3f61f95..f39267b5ac5 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import List, Optional from pydantic import BaseModel, StrictStr, conlist class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter """ values: Optional[conlist(StrictStr)] = None __properties = ["values"] diff --git a/samples/client/echo_api/python-nextgen/openapi_client/rest.py b/samples/client/echo_api/python-nextgen/openapi_client/rest.py index 10adb46f83e..b705cbcb849 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/rest.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/rest.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/client/echo_api/python-nextgen/setup.py b/samples/client/echo_api/python-nextgen/setup.py index 6e6629a0178..004666ab677 100644 --- a/samples/client/echo_api/python-nextgen/setup.py +++ b/samples/client/echo_api/python-nextgen/setup.py @@ -7,7 +7,9 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py index 2b6fe534d7b..4b74838606e 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py @@ -8,7 +8,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py index 07acb105845..b199686440b 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py index 4a3ef582a87..ed4f6708219 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py index 6d8084aa5e8..a705d5af6e7 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py index b3764536e1d..3e7d3df88d5 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py index cf76764956f..9be3176520f 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py index 1a68a5fd667..01fcb3a1a2b 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py index 7a5e957f01b..3d4eab42ccc 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py index fb0ecb5301c..464928ee442 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py @@ -5,7 +5,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ from __future__ import absolute_import @@ -36,10 +38,6 @@ class ApiClient(object): the methods and models for each application are generated from the OpenAPI templates. - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. :param header_value: a header value to pass when making calls to diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py index 12e9a7ef799..c468ea8296a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,7 +22,6 @@ import urllib3 import http.client as httplib from petstore_api.exceptions import ApiValueError - JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', 'minimum', 'exclusiveMinimum', 'maxLength', @@ -28,10 +29,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { } class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. + """This class contains various settings of the API client. :param host: Base url. :param api_key: Dict to store API key(s). diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/exceptions.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/exceptions.py index b81fd7505ff..cb957db48b9 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/exceptions.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/exceptions.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py index fe6f65f77ba..c1bd7823cfb 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py @@ -7,7 +7,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/additional_properties_class.py index 77d3e3ed178..34cead3a8a3 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/additional_properties_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Dict, Optional from pydantic import BaseModel, StrictStr class AdditionalPropertiesClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + AdditionalPropertiesClass """ map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/all_of_with_single_ref.py index 876a78a8f96..a68465d4aac 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/all_of_with_single_ref.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Any, Optional from pydantic import BaseModel, Field, StrictStr class AllOfWithSingleRef(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + AllOfWithSingleRef """ username: Optional[StrictStr] = None single_ref_type: Optional[Any] = Field(None, alias="SingleRefType") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/animal.py index 582668b4f5f..5bdd2d93816 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/animal.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class Animal(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Animal """ class_name: StrictStr = Field(..., alias="className") color: Optional[StrictStr] = 'red' diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_color.py index 2a44d37581b..61dffbb4c50 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_color.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -24,11 +26,10 @@ from pydantic import StrictStr, Field ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"] class AnyOfColor(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. """ + Any of RGB array, RGBA array, or hex string. + """ + # data type: List[int] anyof_schema_1_validator: Optional[conlist(conint(strict=True, le=255, ge=0), max_items=3, min_items=3)] = Field(None, description="RGB three element array with values 0-255.") # data type: List[int] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_pig.py index d96f44bfdf8..e9e97b7d404 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/any_of_pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -26,11 +28,10 @@ from pydantic import StrictStr, Field ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"] class AnyOfPig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. """ + AnyOfPig + """ + # data type: BasquePig anyof_schema_1_validator: Optional[BasquePig] = None # data type: DanishPig diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/api_response.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/api_response.py index 8b6ca41d617..26f3025fb3a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/api_response.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/api_response.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class ApiResponse(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ApiResponse """ code: Optional[StrictInt] = None type: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_array_of_number_only.py index a023c9c0d0c..4593b477f59 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_array_of_number_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import List, Optional from pydantic import BaseModel, Field, conlist class ArrayOfArrayOfNumberOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ArrayOfArrayOfNumberOnly """ array_array_number: Optional[conlist(conlist(float))] = Field(None, alias="ArrayArrayNumber") __properties = ["ArrayArrayNumber"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_number_only.py index ff80adc5878..9a03e3150aa 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_of_number_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import List, Optional from pydantic import BaseModel, Field, conlist class ArrayOfNumberOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ArrayOfNumberOnly """ array_number: Optional[conlist(float)] = Field(None, alias="ArrayNumber") __properties = ["ArrayNumber"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_test.py index c526a25201a..021c38893c6 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/array_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictInt, StrictStr, conlist from petstore_api.models.read_only_first import ReadOnlyFirst class ArrayTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ArrayTest """ array_of_string: Optional[conlist(StrictStr, max_items=3, min_items=0)] = None array_array_of_integer: Optional[conlist(conlist(StrictInt))] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/basque_pig.py index 18c8b241522..7a9bc1624e2 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/basque_pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ import json from pydantic import BaseModel, Field, StrictStr class BasquePig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + BasquePig """ class_name: StrictStr = Field(..., alias="className") color: StrictStr = ... diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/capitalization.py index 800d22c2360..64518b99447 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/capitalization.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class Capitalization(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Capitalization """ small_camel: Optional[StrictStr] = Field(None, alias="smallCamel") capital_camel: Optional[StrictStr] = Field(None, alias="CapitalCamel") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat.py index c9070f52b9b..0f1ece68548 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictBool from petstore_api.models.animal import Animal class Cat(Animal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Cat """ declawed: Optional[StrictBool] = None __properties = ["className", "color", "declawed"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat_all_of.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat_all_of.py index f6de765293b..7fd50e58975 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat_all_of.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/cat_all_of.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictBool class CatAllOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + CatAllOf """ declawed: Optional[StrictBool] = None __properties = ["declawed"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/category.py index 226caf6c360..e738609efd5 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/category.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class Category(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Category """ id: Optional[StrictInt] = None name: StrictStr = ... diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/class_model.py index 5f40800b9c0..04cd03eb71f 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/class_model.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class ClassModel(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing model with \"_class\" property """ var_class: Optional[StrictStr] = Field(None, alias="_class") __properties = ["_class"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/client.py index cc651168676..793b26fab96 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/client.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class Client(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Client """ client: Optional[StrictStr] = None __properties = ["client"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/color.py index 45d2d0d8f43..2cc4abc9757 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/color.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -24,10 +26,8 @@ from pydantic import StrictStr, Field COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"] class Color(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + RGB array, RGBA array, or hex string. """ # data type: List[int] oneof_schema_1_validator: Optional[conlist(conint(strict=True, le=255, ge=0), max_items=3, min_items=3)] = Field(None, description="RGB three element array with values 0-255.") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/danish_pig.py index 8dd221a3d3c..1e79f3db26e 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/danish_pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ import json from pydantic import BaseModel, Field, StrictInt, StrictStr class DanishPig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DanishPig """ class_name: StrictStr = Field(..., alias="className") size: StrictInt = ... diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/deprecated_object.py index 2d1ad0d9b7c..1b17a9aec47 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/deprecated_object.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class DeprecatedObject(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DeprecatedObject """ name: Optional[StrictStr] = None __properties = ["name"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog.py index 11cc128ea9c..03b803d8788 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictStr from petstore_api.models.animal import Animal class Dog(Animal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Dog """ breed: Optional[StrictStr] = None __properties = ["className", "color", "breed"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog_all_of.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog_all_of.py index 8befb96f847..9fa8cea2d48 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog_all_of.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dog_all_of.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class DogAllOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DogAllOf """ breed: Optional[StrictStr] = None __properties = ["breed"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dummy_model.py index b91cc8103b6..47cc18f1a12 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/dummy_model.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class DummyModel(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DummyModel """ category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_arrays.py index 1421b202998..ce596ea3491 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_arrays.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import List, Optional from pydantic import BaseModel, StrictStr, conlist, validator class EnumArrays(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + EnumArrays """ just_symbol: Optional[StrictStr] = None array_enum: Optional[conlist(StrictStr)] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_class.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_class.py index 9fd2fcc13cd..8f013917f4c 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_class.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class EnumClass(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + EnumClass """ """ allowed enum values """ - ABC = '_abc' MINUS_EFG = '-efg' LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS = '(xyz)' diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_test.py index c7cb02c5e52..e610ed2c1a0 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/enum_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -25,10 +27,8 @@ from petstore_api.models.outer_enum_integer import OuterEnumInteger from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue class EnumTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + EnumTest """ enum_string: Optional[StrictStr] = None enum_string_required: StrictStr = ... diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file.py index 547ac02231c..aae806f9515 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class File(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Must be named `File` for test. """ source_uri: Optional[StrictStr] = Field(None, alias="sourceURI", description="Test capitalization") __properties = ["sourceURI"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file_schema_test_class.py index 0c9641aa66b..86c9b1bd46f 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/file_schema_test_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, conlist from petstore_api.models.file import File class FileSchemaTestClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + FileSchemaTestClass """ file: Optional[File] = None files: Optional[conlist(File)] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo.py index fdd55d3b587..c85ac8cec6c 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class Foo(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Foo """ bar: Optional[StrictStr] = 'bar' __properties = ["bar"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo_get_default_response.py index 824cb819f96..1a8502a9eb6 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/foo_get_default_response.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel from petstore_api.models.foo import Foo class FooGetDefaultResponse(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + FooGetDefaultResponse """ string: Optional[Foo] = None __properties = ["string"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/format_test.py index 2d71fcfca2a..3090369756a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/format_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBytes, StrictInt, StrictStr, condecimal, confloat, conint, constr, validator class FormatTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + FormatTest """ integer: Optional[conint(strict=True, le=100, ge=10)] = None int32: Optional[conint(strict=True, le=200, ge=20)] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/has_only_read_only.py index a894bea69c5..47345cc0a89 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/has_only_read_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class HasOnlyReadOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + HasOnlyReadOnly """ bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/health_check_result.py index 4894db223db..78ca4ed2852 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/health_check_result.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class HealthCheckResult(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ nullable_message: Optional[StrictStr] = Field(None, alias="NullableMessage") __properties = ["NullableMessage"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/list.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/list.py index 5e57dd7284a..e0a3f4b55e4 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/list.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/list.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class List(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + List """ var_123_list: Optional[StrictStr] = Field(None, alias="123-list") __properties = ["123-list"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/map_test.py index 0f163673c83..14e866474e5 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/map_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Dict, Optional from pydantic import BaseModel, StrictBool, StrictStr, validator class MapTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + MapTest """ map_map_of_string: Optional[Dict[str, Dict[str, StrictStr]]] = None map_of_enum_string: Optional[Dict[str, StrictStr]] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py index 63cecf94a3c..01f82a8d827 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictStr from petstore_api.models.animal import Animal class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + MixedPropertiesAndAdditionalPropertiesClass """ uuid: Optional[StrictStr] = None date_time: Optional[datetime] = Field(None, alias="dateTime") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model200_response.py index 9e63ffc0f65..55ddbc2a050 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model200_response.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt, StrictStr class Model200Response(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing model name starting with number """ name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(None, alias="class") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model_return.py index a7906692c6c..527a4f5b47e 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/model_return.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt class ModelReturn(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing reserved words """ var_return: Optional[StrictInt] = Field(None, alias="return") __properties = ["return"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/name.py index 27f190d6fc3..2bd141055bb 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/name.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt, StrictStr class Name(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing model name same as property name """ name: StrictInt = ... snake_case: Optional[StrictInt] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/nullable_class.py index edf0ad22723..dcc98c94545 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/nullable_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Any, Dict, List, Optional from pydantic import BaseModel, StrictBool, StrictInt, StrictStr, conlist class NullableClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + NullableClass """ required_integer_prop: Optional[StrictInt] = ... integer_prop: Optional[StrictInt] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/number_only.py index c3a7dbaedde..c4a400a846c 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/number_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field class NumberOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + NumberOnly """ just_number: Optional[float] = Field(None, alias="JustNumber") __properties = ["JustNumber"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/object_with_deprecated_fields.py index fd38ee7af4a..d056ce8778a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/object_with_deprecated_fields.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictStr, conlist from petstore_api.models.deprecated_object import DeprecatedObject class ObjectWithDeprecatedFields(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ObjectWithDeprecatedFields """ uuid: Optional[StrictStr] = None id: Optional[float] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/order.py index 7605ddaf569..cb8cb389940 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/order.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, validator class Order(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Order """ id: Optional[StrictInt] = None pet_id: Optional[StrictInt] = Field(None, alias="petId") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_composite.py index ee896ed54ab..7fce7797fee 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_composite.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictBool, StrictStr class OuterComposite(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterComposite """ my_number: Optional[float] = None my_string: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum.py index 179e822d35d..befbdfdaa67 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnum(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnum """ """ allowed enum values """ - PLACED = 'placed' APPROVED = 'approved' DELIVERED = 'delivered' diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_default_value.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_default_value.py index 4a93cbda580..b8937b43c42 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_default_value.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnumDefaultValue(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnumDefaultValue """ """ allowed enum values """ - PLACED = 'placed' APPROVED = 'approved' DELIVERED = 'delivered' diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer.py index 4a4347e3106..72aa99814d4 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnumInteger(int, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnumInteger """ """ allowed enum values """ - NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer_default_value.py index b0e86076d16..09a945f73c3 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_enum_integer_default_value.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnumIntegerDefaultValue(int, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnumIntegerDefaultValue """ """ allowed enum values """ - NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_object_with_enum_property.py index c80429a190b..f41c127a780 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/outer_object_with_enum_property.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -23,10 +25,8 @@ from petstore_api.models.outer_enum import OuterEnum from petstore_api.models.outer_enum_integer import OuterEnumInteger class OuterObjectWithEnumProperty(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterObjectWithEnumProperty """ str_value: Optional[OuterEnum] = None value: OuterEnumInteger = ... diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pet.py index bdff5742127..9967660b383 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pet.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -23,10 +25,8 @@ from petstore_api.models.category import Category from petstore_api.models.tag import Tag class Pet(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Pet """ id: Optional[StrictInt] = None category: Optional[Category] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pig.py index 77abb2d6703..baa32ba0c4a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -26,10 +28,8 @@ from pydantic import StrictStr, Field PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"] class Pig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Pig """ # data type: BasquePig oneof_schema_1_validator: Optional[BasquePig] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/read_only_first.py index 4f8ca3b6eca..ac16280844b 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/read_only_first.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class ReadOnlyFirst(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ReadOnlyFirst """ bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/self_reference_model.py index 39692b911ea..b8fa0dd875f 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/self_reference_model.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt class SelfReferenceModel(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SelfReferenceModel """ size: Optional[StrictInt] = None nested: Optional[DummyModel] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/single_ref_type.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/single_ref_type.py index 67ae5e41be3..e5879e62968 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/single_ref_type.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/single_ref_type.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class SingleRefType(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SingleRefType """ """ allowed enum values """ - ADMIN = 'admin' USER = 'user' diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_character_enum.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_character_enum.py index 374ac242de6..8ecf8ac3d69 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_character_enum.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_character_enum.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class SpecialCharacterEnum(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SpecialCharacterEnum """ """ allowed enum values """ - ENUM_456 = '456' ENUM_123ABC = '123abc' UNDERSCORE = '_' diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_model_name.py index f5f83a5f419..bc9f7b4cdaa 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_model_name.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt class SpecialModelName(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SpecialModelName """ special_property_name: Optional[StrictInt] = Field(None, alias="$special[property.name]") __properties = ["$special[property.name]"] diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_name.py index 42d107844e2..372f43fe052 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/special_name.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictInt, StrictStr, validator from petstore_api.models.category import Category class SpecialName(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SpecialName """ var_property: Optional[StrictInt] = Field(None, alias="property") var_async: Optional[Category] = Field(None, alias="async") diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/tag.py index 310b8429843..80c683f5d95 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/tag.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class Tag(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Tag """ id: Optional[StrictInt] = None name: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/user.py index 65fd56849d1..77c6b277f01 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/user.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt, StrictStr class User(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + User """ id: Optional[StrictInt] = None username: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/with_nested_one_of.py index 1675a10bbfc..6690f8dd734 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/with_nested_one_of.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictInt from petstore_api.models.pig import Pig class WithNestedOneOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + WithNestedOneOf """ size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/rest.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/rest.py index c128a2588f4..eee373266b6 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/rest.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/signing.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/signing.py index 5060f6edbcd..cc1a0c9d6f7 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/signing.py @@ -4,7 +4,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -72,11 +74,6 @@ class HttpSigningConfiguration(object): and optionally the body of the HTTP request, then signing the hash value using a private key. The 'Authorization' header is added to outbound HTTP requests. - NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param key_id: A string value specifying the identifier of the cryptographic key, when signing HTTP requests. :param signing_scheme: A string value specifying the signature scheme, when diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py index 881691d6f74..9d2c0b75b55 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py index 2b6fe534d7b..4b74838606e 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py @@ -8,7 +8,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py index 60809cd8225..e64b41e45ce 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py index e6e6c36aeeb..0fae685b825 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py index 591605fca58..27d18a0e091 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py index f2c7f023834..c596e1b5287 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py index 560ce557f35..217108146f3 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py index 26063f3cc5c..8a9239355c4 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py index 87a63b7e019..1c3d3907326 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py index 96652c49087..3aad97eacca 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py @@ -5,7 +5,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ from __future__ import absolute_import @@ -36,10 +38,6 @@ class ApiClient(object): the methods and models for each application are generated from the OpenAPI templates. - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. :param header_value: a header value to pass when making calls to diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py index 5f667ed5f1c..c6081bbaff2 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,7 +23,6 @@ import urllib3 import http.client as httplib from petstore_api.exceptions import ApiValueError - JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', 'minimum', 'exclusiveMinimum', 'maxLength', @@ -29,10 +30,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { } class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. + """This class contains various settings of the API client. :param host: Base url. :param api_key: Dict to store API key(s). diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/exceptions.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/exceptions.py index b81fd7505ff..cb957db48b9 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/exceptions.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/exceptions.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py index fe6f65f77ba..c1bd7823cfb 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py @@ -7,7 +7,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/additional_properties_class.py index e73e6ca7022..e99d1d384d5 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/additional_properties_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Dict, Optional from pydantic import BaseModel, StrictStr class AdditionalPropertiesClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + AdditionalPropertiesClass """ map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/all_of_with_single_ref.py index d46e7528735..9b0dca364e5 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/all_of_with_single_ref.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Any, Optional from pydantic import BaseModel, Field, StrictStr class AllOfWithSingleRef(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + AllOfWithSingleRef """ username: Optional[StrictStr] = None single_ref_type: Optional[Any] = Field(None, alias="SingleRefType") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/animal.py index e5885a40c20..c37cccbf446 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/animal.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class Animal(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Animal """ class_name: StrictStr = Field(..., alias="className") color: Optional[StrictStr] = 'red' diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_color.py index 2a44d37581b..61dffbb4c50 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_color.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -24,11 +26,10 @@ from pydantic import StrictStr, Field ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"] class AnyOfColor(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. """ + Any of RGB array, RGBA array, or hex string. + """ + # data type: List[int] anyof_schema_1_validator: Optional[conlist(conint(strict=True, le=255, ge=0), max_items=3, min_items=3)] = Field(None, description="RGB three element array with values 0-255.") # data type: List[int] diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_pig.py index d96f44bfdf8..e9e97b7d404 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/any_of_pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -26,11 +28,10 @@ from pydantic import StrictStr, Field ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"] class AnyOfPig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. """ + AnyOfPig + """ + # data type: BasquePig anyof_schema_1_validator: Optional[BasquePig] = None # data type: DanishPig diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/api_response.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/api_response.py index ad9080c88ed..da810c92086 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/api_response.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/api_response.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class ApiResponse(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ApiResponse """ code: Optional[StrictInt] = None type: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_array_of_number_only.py index 6ad248d5613..981ec9cebd9 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_array_of_number_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import List, Optional from pydantic import BaseModel, Field, StrictFloat, conlist class ArrayOfArrayOfNumberOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ArrayOfArrayOfNumberOnly """ array_array_number: Optional[conlist(conlist(StrictFloat))] = Field(None, alias="ArrayArrayNumber") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_number_only.py index b0bade0c265..89a4169e085 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_of_number_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import List, Optional from pydantic import BaseModel, Field, StrictFloat, conlist class ArrayOfNumberOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ArrayOfNumberOnly """ array_number: Optional[conlist(StrictFloat)] = Field(None, alias="ArrayNumber") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_test.py index 23024b0959c..9fe1c047ecb 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/array_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictInt, StrictStr, conlist from petstore_api.models.read_only_first import ReadOnlyFirst class ArrayTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ArrayTest """ array_of_string: Optional[conlist(StrictStr, max_items=3, min_items=0)] = None array_array_of_integer: Optional[conlist(conlist(StrictInt))] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/basque_pig.py index 2dfbf9c68e8..48ac4d818b7 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/basque_pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ import json from pydantic import BaseModel, Field, StrictStr class BasquePig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + BasquePig """ class_name: StrictStr = Field(..., alias="className") color: StrictStr = ... diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/capitalization.py index edf62140d5f..92695072b18 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/capitalization.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class Capitalization(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Capitalization """ small_camel: Optional[StrictStr] = Field(None, alias="smallCamel") capital_camel: Optional[StrictStr] = Field(None, alias="CapitalCamel") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat.py index 54c92e534d6..f2aca668519 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictBool from petstore_api.models.animal import Animal class Cat(Animal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Cat """ declawed: Optional[StrictBool] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat_all_of.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat_all_of.py index 17029865e8b..349fcc17b58 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat_all_of.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/cat_all_of.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictBool class CatAllOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + CatAllOf """ declawed: Optional[StrictBool] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/category.py index d2f04fbf284..65579839f32 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/category.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class Category(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Category """ id: Optional[StrictInt] = None name: StrictStr = ... diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/class_model.py index 6a10ec1d707..b20fe9ca213 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/class_model.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class ClassModel(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing model with \"_class\" property """ var_class: Optional[StrictStr] = Field(None, alias="_class") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/client.py index 811d6be903c..a2d08564732 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/client.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class Client(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Client """ client: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/color.py index 45d2d0d8f43..2cc4abc9757 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/color.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -24,10 +26,8 @@ from pydantic import StrictStr, Field COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"] class Color(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + RGB array, RGBA array, or hex string. """ # data type: List[int] oneof_schema_1_validator: Optional[conlist(conint(strict=True, le=255, ge=0), max_items=3, min_items=3)] = Field(None, description="RGB three element array with values 0-255.") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/danish_pig.py index 0f9aa3c03c6..93e6105b2b2 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/danish_pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ import json from pydantic import BaseModel, Field, StrictInt, StrictStr class DanishPig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DanishPig """ class_name: StrictStr = Field(..., alias="className") size: StrictInt = ... diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/deprecated_object.py index 40e4919b342..870fec8e859 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/deprecated_object.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class DeprecatedObject(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DeprecatedObject """ name: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog.py index 9465c10bfdc..eb6510a7a17 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictStr from petstore_api.models.animal import Animal class Dog(Animal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Dog """ breed: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog_all_of.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog_all_of.py index 526dd6c3578..50b2b59ac0f 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog_all_of.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dog_all_of.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class DogAllOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DogAllOf """ breed: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dummy_model.py index ef11b61a2ea..d0db2bdc188 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/dummy_model.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class DummyModel(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + DummyModel """ category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_arrays.py index b1754281dee..0c096aa0fc8 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_arrays.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import List, Optional from pydantic import BaseModel, StrictStr, conlist, validator class EnumArrays(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + EnumArrays """ just_symbol: Optional[StrictStr] = None array_enum: Optional[conlist(StrictStr)] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_class.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_class.py index 9fd2fcc13cd..8f013917f4c 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_class.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class EnumClass(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + EnumClass """ """ allowed enum values """ - ABC = '_abc' MINUS_EFG = '-efg' LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS = '(xyz)' diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_test.py index ab30c140963..8a562bd0941 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/enum_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -25,10 +27,8 @@ from petstore_api.models.outer_enum_integer import OuterEnumInteger from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue class EnumTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + EnumTest """ enum_string: Optional[StrictStr] = None enum_string_required: StrictStr = ... diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file.py index 6217ee78824..182d9cd0fc0 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class File(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Must be named `File` for test. """ source_uri: Optional[StrictStr] = Field(None, alias="sourceURI", description="Test capitalization") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file_schema_test_class.py index 7e8f5b1cc34..f822f4599b3 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/file_schema_test_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, conlist from petstore_api.models.file import File class FileSchemaTestClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + FileSchemaTestClass """ file: Optional[File] = None files: Optional[conlist(File)] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo.py index bcb183fae04..7a29b7f5728 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class Foo(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Foo """ bar: Optional[StrictStr] = 'bar' additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo_get_default_response.py index 0cb3f6286e1..99b2dca4723 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/foo_get_default_response.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel from petstore_api.models.foo import Foo class FooGetDefaultResponse(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + FooGetDefaultResponse """ string: Optional[Foo] = None additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/format_test.py index 30a49901824..1aab1462bd8 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/format_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBytes, StrictInt, StrictStr, condecimal, confloat, conint, constr, validator class FormatTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + FormatTest """ integer: Optional[conint(strict=True, le=100, ge=10)] = None int32: Optional[conint(strict=True, le=200, ge=20)] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/has_only_read_only.py index 9a236e34bf1..6207f7f2ece 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/has_only_read_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class HasOnlyReadOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + HasOnlyReadOnly """ bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/health_check_result.py index d6d2aca0baa..df9fe934a8d 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/health_check_result.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class HealthCheckResult(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ nullable_message: Optional[StrictStr] = Field(None, alias="NullableMessage") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/list.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/list.py index bd0b49bc447..27daff87ea4 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/list.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/list.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictStr class List(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + List """ var_123_list: Optional[StrictStr] = Field(None, alias="123-list") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/map_test.py index 679a29dc053..9d2d840b1f3 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/map_test.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Dict, Optional from pydantic import BaseModel, StrictBool, StrictStr, validator class MapTest(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + MapTest """ map_map_of_string: Optional[Dict[str, Dict[str, StrictStr]]] = None map_of_enum_string: Optional[Dict[str, StrictStr]] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/mixed_properties_and_additional_properties_class.py index 633dbf1da8d..b3b259b688f 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictStr from petstore_api.models.animal import Animal class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + MixedPropertiesAndAdditionalPropertiesClass """ uuid: Optional[StrictStr] = None date_time: Optional[datetime] = Field(None, alias="dateTime") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model200_response.py index c6f91f79c3f..30425febafa 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model200_response.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt, StrictStr class Model200Response(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing model name starting with number """ name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(None, alias="class") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model_return.py index 53ffd8c2617..e26375be4f7 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/model_return.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt class ModelReturn(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing reserved words """ var_return: Optional[StrictInt] = Field(None, alias="return") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/name.py index 0c48837381d..08ad6361c5e 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/name.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt, StrictStr class Name(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Model for testing model name same as property name """ name: StrictInt = ... snake_case: Optional[StrictInt] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/nullable_class.py index d3e41b7fa00..5ead496e689 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/nullable_class.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Any, Dict, List, Optional from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr, conlist class NullableClass(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + NullableClass """ required_integer_prop: Optional[StrictInt] = ... integer_prop: Optional[StrictInt] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/number_only.py index 563edbe9c86..65809405f19 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/number_only.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictFloat class NumberOnly(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + NumberOnly """ just_number: Optional[StrictFloat] = Field(None, alias="JustNumber") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/object_with_deprecated_fields.py index 7f4fef2a658..7904c259858 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/object_with_deprecated_fields.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictFloat, StrictStr, conlist from petstore_api.models.deprecated_object import DeprecatedObject class ObjectWithDeprecatedFields(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ObjectWithDeprecatedFields """ uuid: Optional[StrictStr] = None id: Optional[StrictFloat] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/order.py index ff917f3ff06..a6866f134eb 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/order.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, validator class Order(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Order """ id: Optional[StrictInt] = None pet_id: Optional[StrictInt] = Field(None, alias="petId") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_composite.py index 609e6edc4f7..855fb1a585e 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_composite.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictBool, StrictFloat, StrictStr class OuterComposite(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterComposite """ my_number: Optional[StrictFloat] = None my_string: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum.py index 179e822d35d..befbdfdaa67 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnum(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnum """ """ allowed enum values """ - PLACED = 'placed' APPROVED = 'approved' DELIVERED = 'delivered' diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_default_value.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_default_value.py index 4a93cbda580..b8937b43c42 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_default_value.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnumDefaultValue(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnumDefaultValue """ """ allowed enum values """ - PLACED = 'placed' APPROVED = 'approved' DELIVERED = 'delivered' diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer.py index 4a4347e3106..72aa99814d4 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnumInteger(int, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnumInteger """ """ allowed enum values """ - NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer_default_value.py index b0e86076d16..09a945f73c3 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_enum_integer_default_value.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class OuterEnumIntegerDefaultValue(int, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterEnumIntegerDefaultValue """ """ allowed enum values """ - NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_object_with_enum_property.py index 049fa5026e7..28a7bd69b9d 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/outer_object_with_enum_property.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -23,10 +25,8 @@ from petstore_api.models.outer_enum import OuterEnum from petstore_api.models.outer_enum_integer import OuterEnumInteger class OuterObjectWithEnumProperty(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + OuterObjectWithEnumProperty """ str_value: Optional[OuterEnum] = None value: OuterEnumInteger = ... diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pet.py index de8df07a07f..a23db1e79b4 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pet.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -23,10 +25,8 @@ from petstore_api.models.category import Category from petstore_api.models.tag import Tag class Pet(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Pet """ id: Optional[StrictInt] = None category: Optional[Category] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pig.py index 0799371faa4..66cebdd798c 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/pig.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -26,10 +28,8 @@ from pydantic import StrictStr, Field PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"] class Pig(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Pig """ # data type: BasquePig oneof_schema_1_validator: Optional[BasquePig] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/read_only_first.py index 5323927c4c3..73a9c98aec4 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/read_only_first.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictStr class ReadOnlyFirst(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + ReadOnlyFirst """ bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/self_reference_model.py index c97efa222a4..faca1f2f565 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/self_reference_model.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt class SelfReferenceModel(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SelfReferenceModel """ size: Optional[StrictInt] = None nested: Optional[DummyModel] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/single_ref_type.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/single_ref_type.py index 67ae5e41be3..e5879e62968 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/single_ref_type.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/single_ref_type.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class SingleRefType(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SingleRefType """ """ allowed enum values """ - ADMIN = 'admin' USER = 'user' diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_character_enum.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_character_enum.py index 374ac242de6..8ecf8ac3d69 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_character_enum.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_character_enum.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -20,16 +22,13 @@ from aenum import Enum, no_arg class SpecialCharacterEnum(str, Enum): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SpecialCharacterEnum """ """ allowed enum values """ - ENUM_456 = '456' ENUM_123ABC = '123abc' UNDERSCORE = '_' diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_model_name.py index aeb308dd45b..0f7f93facf7 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_model_name.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt class SpecialModelName(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SpecialModelName """ special_property_name: Optional[StrictInt] = Field(None, alias="$special[property.name]") additional_properties: Dict[str, Any] = {} diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_name.py index bd3b377e886..58e7a590478 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/special_name.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, Field, StrictInt, StrictStr, validator from petstore_api.models.category import Category class SpecialName(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + SpecialName """ var_property: Optional[StrictInt] = Field(None, alias="property") var_async: Optional[Category] = Field(None, alias="async") diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/tag.py index b3af7e9e49c..4b01f942e82 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/tag.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, StrictInt, StrictStr class Tag(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + Tag """ id: Optional[StrictInt] = None name: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/user.py index 6426d6c8aee..c52f49d337a 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/user.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -21,10 +23,8 @@ from typing import Optional from pydantic import BaseModel, Field, StrictInt, StrictStr class User(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + User """ id: Optional[StrictInt] = None username: Optional[StrictStr] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/with_nested_one_of.py index 0e80a8a9020..52a535dcef2 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/with_nested_one_of.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -22,10 +24,8 @@ from pydantic import BaseModel, StrictInt from petstore_api.models.pig import Pig class WithNestedOneOf(BaseModel): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. + """ + WithNestedOneOf """ size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py index c2c0630f61f..c12ef1c6504 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/signing.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/signing.py index 5060f6edbcd..cc1a0c9d6f7 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/signing.py @@ -4,7 +4,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ @@ -72,11 +74,6 @@ class HttpSigningConfiguration(object): and optionally the body of the HTTP request, then signing the hash value using a private key. The 'Authorization' header is added to outbound HTTP requests. - NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. - :param key_id: A string value specifying the identifier of the cryptographic key, when signing HTTP requests. :param signing_scheme: A string value specifying the signature scheme, when diff --git a/samples/openapi3/client/petstore/python-nextgen/setup.py b/samples/openapi3/client/petstore/python-nextgen/setup.py index cfffce8e317..e1bff332d2b 100755 --- a/samples/openapi3/client/petstore/python-nextgen/setup.py +++ b/samples/openapi3/client/petstore/python-nextgen/setup.py @@ -6,7 +6,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 - Generated by: https://openapi-generator.tech + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. """ diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_api_client.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_api_client.py index 2a9bbc69510..318545d6e8f 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_api_client.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_api_client.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd OpenAPIetstore-python -$ nosetests -v +$ pytest """ import os diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_api_exception.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_api_exception.py index d517910174c..73915b0d5fc 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_api_exception.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_api_exception.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd petstore_api-python -$ nosetests -v +$ pytest """ import os diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_api_validation.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_api_validation.py index b42e6e50179..dc7da96329c 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_api_validation.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_api_validation.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd petstore_api-python -$ nosetests -v +$ pytest """ import os diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_configuration.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_configuration.py index 21ab0219e01..df5f4f3b106 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_configuration.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_configuration.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd petstore_api-python -$ nosetests -v +$ pytest """ from __future__ import absolute_import diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_deserialization.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_deserialization.py index 213e7000f63..c5fb6866382 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_deserialization.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_deserialization.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd OpenAPIPetstore-python -$ nosetests -v +$ pytest """ from collections import namedtuple import json diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_map_test.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_map_test.py index 4b2c6d5069e..8c0cb48f432 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_map_test.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_map_test.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd petstore_api-python -$ nosetests -v +$ pytest """ import os diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_pet_api.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_pet_api.py index 60302f0a776..073e5e5c6f2 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_pet_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_pet_api.py @@ -6,9 +6,9 @@ Run the tests. $ docker pull swaggerapi/petstore $ docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore -$ pip install nose (optional) +$ pip install -U pytest $ cd petstore_api-python -$ nosetests -v +$ pytest """ import os diff --git a/samples/openapi3/client/petstore/python-nextgen/tests/test_store_api.py b/samples/openapi3/client/petstore/python-nextgen/tests/test_store_api.py index 1817477aba6..178e44fd1fe 100644 --- a/samples/openapi3/client/petstore/python-nextgen/tests/test_store_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/tests/test_store_api.py @@ -4,9 +4,9 @@ """ Run the tests. -$ pip install nose (optional) +$ pip install -U pytest $ cd OpenAP/Petstore-python -$ nosetests -v +$ pytest """ import os