From 2ed3d8cc86d9a2ca7ec56fbd2dc93437d203c268 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 12 May 2018 09:54:19 +0800 Subject: [PATCH] Update python test (#426) * update python test folders * update python template * update python samples * fix python comment too long * update ruby test case --- .../src/main/resources/python/api.mustache | 3 +- .../main/resources/python/api_client.mustache | 3 +- .../resources/python/configuration.mustache | 2 +- .../src/main/resources/python/model.mustache | 3 +- .../petstore_api/api/another_fake_api.py | 3 +- .../petstore_api/api/fake_api.py | 3 +- .../api/fake_classname_tags_123_api.py | 3 +- .../petstore_api/api/pet_api.py | 3 +- .../petstore_api/api/store_api.py | 3 +- .../petstore_api/api/user_api.py | 3 +- .../python-asyncio/petstore_api/api_client.py | 3 +- .../petstore_api/configuration.py | 2 +- .../models/additional_properties_class.py | 3 +- .../petstore_api/models/animal.py | 3 +- .../petstore_api/models/animal_farm.py | 3 +- .../petstore_api/models/api_response.py | 3 +- .../models/array_of_array_of_number_only.py | 3 +- .../models/array_of_number_only.py | 3 +- .../petstore_api/models/array_test.py | 3 +- .../petstore_api/models/capitalization.py | 3 +- .../python-asyncio/petstore_api/models/cat.py | 3 +- .../petstore_api/models/category.py | 3 +- .../petstore_api/models/class_model.py | 3 +- .../petstore_api/models/client.py | 3 +- .../python-asyncio/petstore_api/models/dog.py | 3 +- .../petstore_api/models/enum_arrays.py | 3 +- .../petstore_api/models/enum_class.py | 3 +- .../petstore_api/models/enum_test.py | 3 +- .../petstore_api/models/format_test.py | 3 +- .../petstore_api/models/has_only_read_only.py | 3 +- .../petstore_api/models/list.py | 3 +- .../petstore_api/models/map_test.py | 3 +- ...perties_and_additional_properties_class.py | 3 +- .../petstore_api/models/model200_response.py | 3 +- .../petstore_api/models/model_200_response.py | 138 ------------------ .../petstore_api/models/model_return.py | 3 +- .../petstore_api/models/name.py | 3 +- .../petstore_api/models/number_only.py | 3 +- .../petstore_api/models/order.py | 3 +- .../petstore_api/models/outer_boolean.py | 84 ----------- .../petstore_api/models/outer_composite.py | 3 +- .../petstore_api/models/outer_enum.py | 3 +- .../petstore_api/models/outer_number.py | 84 ----------- .../petstore_api/models/outer_string.py | 84 ----------- .../python-asyncio/petstore_api/models/pet.py | 3 +- .../petstore_api/models/read_only_first.py | 3 +- .../petstore_api/models/special_model_name.py | 3 +- .../python-asyncio/petstore_api/models/tag.py | 3 +- .../petstore_api/models/user.py | 3 +- .../client/petstore/python-asyncio/pom.xml | 2 +- .../test/test_additional_properties_class.py | 5 +- .../python-asyncio/test/test_animal.py | 5 +- .../python-asyncio/test/test_animal_farm.py | 5 +- .../test/test_another_fake_api.py | 5 +- .../python-asyncio/test/test_api_response.py | 5 +- .../test_array_of_array_of_number_only.py | 5 +- .../test/test_array_of_number_only.py | 5 +- .../python-asyncio/test/test_array_test.py | 5 +- .../test/test_capitalization.py | 5 +- .../petstore/python-asyncio/test/test_cat.py | 5 +- .../python-asyncio/test/test_category.py | 5 +- .../python-asyncio/test/test_class_model.py | 5 +- .../python-asyncio/test/test_client.py | 5 +- .../petstore/python-asyncio/test/test_dog.py | 5 +- .../python-asyncio/test/test_enum_arrays.py | 5 +- .../python-asyncio/test/test_enum_class.py | 5 +- .../python-asyncio/test/test_enum_test.py | 5 +- .../python-asyncio/test/test_fake_api.py | 11 +- .../test/test_fake_classname_tags_123_api.py | 5 +- .../python-asyncio/test/test_format_test.py | 5 +- .../test/test_has_only_read_only.py | 5 +- .../petstore/python-asyncio/test/test_list.py | 5 +- .../python-asyncio/test/test_map_test.py | 5 +- ...perties_and_additional_properties_class.py | 5 +- .../test/test_model200_response.py | 5 +- .../test/test_model_200_response.py | 40 ----- .../python-asyncio/test/test_model_return.py | 5 +- .../petstore/python-asyncio/test/test_name.py | 5 +- .../python-asyncio/test/test_number_only.py | 5 +- .../python-asyncio/test/test_order.py | 5 +- .../python-asyncio/test/test_outer_boolean.py | 40 ----- .../test/test_outer_composite.py | 5 +- .../python-asyncio/test/test_outer_enum.py | 5 +- .../python-asyncio/test/test_outer_number.py | 40 ----- .../python-asyncio/test/test_outer_string.py | 40 ----- .../petstore/python-asyncio/test/test_pet.py | 5 +- .../python-asyncio/test/test_pet_api.py | 5 +- .../test/test_read_only_first.py | 5 +- .../test/test_special_model_name.py | 5 +- .../python-asyncio/test/test_store_api.py | 5 +- .../petstore/python-asyncio/test/test_tag.py | 5 +- .../petstore/python-asyncio/test/test_user.py | 5 +- .../python-asyncio/test/test_user_api.py | 5 +- .../python-asyncio/tests/test_pet_api.py | 2 +- .../petstore_api/api/another_fake_api.py | 3 +- .../petstore_api/api/fake_api.py | 3 +- .../api/fake_classname_tags_123_api.py | 3 +- .../petstore_api/api/pet_api.py | 3 +- .../petstore_api/api/store_api.py | 3 +- .../petstore_api/api/user_api.py | 3 +- .../python-tornado/petstore_api/api_client.py | 3 +- .../petstore_api/configuration.py | 2 +- .../models/additional_properties_class.py | 3 +- .../petstore_api/models/animal.py | 3 +- .../petstore_api/models/animal_farm.py | 3 +- .../petstore_api/models/api_response.py | 3 +- .../models/array_of_array_of_number_only.py | 3 +- .../models/array_of_number_only.py | 3 +- .../petstore_api/models/array_test.py | 3 +- .../petstore_api/models/capitalization.py | 3 +- .../python-tornado/petstore_api/models/cat.py | 3 +- .../petstore_api/models/category.py | 3 +- .../petstore_api/models/class_model.py | 3 +- .../petstore_api/models/client.py | 3 +- .../python-tornado/petstore_api/models/dog.py | 3 +- .../petstore_api/models/enum_arrays.py | 3 +- .../petstore_api/models/enum_class.py | 3 +- .../petstore_api/models/enum_test.py | 3 +- .../petstore_api/models/format_test.py | 3 +- .../petstore_api/models/has_only_read_only.py | 3 +- .../petstore_api/models/list.py | 3 +- .../petstore_api/models/map_test.py | 3 +- ...perties_and_additional_properties_class.py | 3 +- .../petstore_api/models/model200_response.py | 3 +- .../petstore_api/models/model_200_response.py | 138 ------------------ .../petstore_api/models/model_return.py | 3 +- .../petstore_api/models/name.py | 3 +- .../petstore_api/models/number_only.py | 3 +- .../petstore_api/models/order.py | 3 +- .../petstore_api/models/outer_boolean.py | 84 ----------- .../petstore_api/models/outer_composite.py | 3 +- .../petstore_api/models/outer_enum.py | 3 +- .../petstore_api/models/outer_number.py | 84 ----------- .../petstore_api/models/outer_string.py | 84 ----------- .../python-tornado/petstore_api/models/pet.py | 3 +- .../petstore_api/models/read_only_first.py | 3 +- .../petstore_api/models/special_model_name.py | 3 +- .../python-tornado/petstore_api/models/tag.py | 3 +- .../petstore_api/models/user.py | 3 +- .../client/petstore/python-tornado/pom.xml | 2 +- .../test/test_additional_properties_class.py | 5 +- .../python-tornado/test/test_animal.py | 5 +- .../python-tornado/test/test_animal_farm.py | 5 +- .../test/test_another_fake_api.py | 5 +- .../python-tornado/test/test_api_response.py | 5 +- .../test_array_of_array_of_number_only.py | 5 +- .../test/test_array_of_number_only.py | 5 +- .../python-tornado/test/test_array_test.py | 5 +- .../test/test_capitalization.py | 5 +- .../petstore/python-tornado/test/test_cat.py | 5 +- .../python-tornado/test/test_category.py | 5 +- .../python-tornado/test/test_class_model.py | 5 +- .../python-tornado/test/test_client.py | 5 +- .../petstore/python-tornado/test/test_dog.py | 5 +- .../python-tornado/test/test_enum_arrays.py | 5 +- .../python-tornado/test/test_enum_class.py | 5 +- .../python-tornado/test/test_enum_test.py | 5 +- .../python-tornado/test/test_fake_api.py | 11 +- .../test/test_fake_classname_tags_123_api.py | 5 +- .../python-tornado/test/test_format_test.py | 5 +- .../test/test_has_only_read_only.py | 5 +- .../petstore/python-tornado/test/test_list.py | 5 +- .../python-tornado/test/test_map_test.py | 5 +- ...perties_and_additional_properties_class.py | 5 +- .../test/test_model200_response.py | 5 +- .../test/test_model_200_response.py | 40 ----- .../python-tornado/test/test_model_return.py | 5 +- .../petstore/python-tornado/test/test_name.py | 5 +- .../python-tornado/test/test_number_only.py | 5 +- .../python-tornado/test/test_order.py | 5 +- .../python-tornado/test/test_outer_boolean.py | 40 ----- .../test/test_outer_composite.py | 5 +- .../python-tornado/test/test_outer_enum.py | 5 +- .../python-tornado/test/test_outer_number.py | 40 ----- .../python-tornado/test/test_outer_string.py | 40 ----- .../petstore/python-tornado/test/test_pet.py | 5 +- .../python-tornado/test/test_pet_api.py | 5 +- .../test/test_read_only_first.py | 5 +- .../test/test_special_model_name.py | 5 +- .../python-tornado/test/test_store_api.py | 5 +- .../petstore/python-tornado/test/test_tag.py | 5 +- .../petstore/python-tornado/test/test_user.py | 5 +- .../python-tornado/test/test_user_api.py | 5 +- .../python-tornado/tests/test_pet_api.py | 2 +- .../petstore_api/api/another_fake_api.py | 3 +- .../python/petstore_api/api/fake_api.py | 3 +- .../api/fake_classname_tags_123_api.py | 3 +- .../python/petstore_api/api/pet_api.py | 3 +- .../python/petstore_api/api/store_api.py | 3 +- .../python/petstore_api/api/user_api.py | 3 +- .../python/petstore_api/api_client.py | 3 +- .../python/petstore_api/configuration.py | 2 +- .../models/additional_properties_class.py | 3 +- .../python/petstore_api/models/animal.py | 3 +- .../python/petstore_api/models/animal_farm.py | 3 +- .../petstore_api/models/api_response.py | 3 +- .../models/array_of_array_of_number_only.py | 3 +- .../models/array_of_number_only.py | 3 +- .../python/petstore_api/models/array_test.py | 3 +- .../petstore_api/models/capitalization.py | 3 +- .../python/petstore_api/models/cat.py | 3 +- .../python/petstore_api/models/category.py | 3 +- .../python/petstore_api/models/class_model.py | 3 +- .../python/petstore_api/models/client.py | 3 +- .../python/petstore_api/models/dog.py | 3 +- .../python/petstore_api/models/enum_arrays.py | 3 +- .../python/petstore_api/models/enum_class.py | 3 +- .../python/petstore_api/models/enum_test.py | 3 +- .../python/petstore_api/models/format_test.py | 3 +- .../petstore_api/models/has_only_read_only.py | 3 +- .../python/petstore_api/models/list.py | 3 +- .../python/petstore_api/models/map_test.py | 3 +- ...perties_and_additional_properties_class.py | 3 +- .../petstore_api/models/model200_response.py | 3 +- .../petstore_api/models/model_200_response.py | 138 ------------------ .../petstore_api/models/model_return.py | 3 +- .../python/petstore_api/models/name.py | 3 +- .../python/petstore_api/models/number_only.py | 3 +- .../python/petstore_api/models/order.py | 3 +- .../petstore_api/models/outer_boolean.py | 84 ----------- .../petstore_api/models/outer_composite.py | 3 +- .../python/petstore_api/models/outer_enum.py | 3 +- .../petstore_api/models/outer_number.py | 84 ----------- .../petstore_api/models/outer_string.py | 84 ----------- .../python/petstore_api/models/pet.py | 3 +- .../petstore_api/models/read_only_first.py | 3 +- .../petstore_api/models/special_model_name.py | 3 +- .../python/petstore_api/models/tag.py | 3 +- .../python/petstore_api/models/user.py | 3 +- samples/client/petstore/python/pom.xml | 4 +- .../test/test_additional_properties_class.py | 5 +- .../petstore/python/test/test_animal.py | 5 +- .../petstore/python/test/test_animal_farm.py | 5 +- .../python/test/test_another_fake_api.py | 5 +- .../petstore/python/test/test_api_response.py | 5 +- .../test_array_of_array_of_number_only.py | 5 +- .../python/test/test_array_of_number_only.py | 5 +- .../petstore/python/test/test_array_test.py | 5 +- .../python/test/test_capitalization.py | 5 +- .../client/petstore/python/test/test_cat.py | 5 +- .../petstore/python/test/test_category.py | 5 +- .../petstore/python/test/test_class_model.py | 5 +- .../petstore/python/test/test_client.py | 5 +- .../client/petstore/python/test/test_dog.py | 5 +- .../petstore/python/test/test_enum_arrays.py | 5 +- .../petstore/python/test/test_enum_class.py | 5 +- .../petstore/python/test/test_enum_test.py | 5 +- .../petstore/python/test/test_fake_api.py | 11 +- .../test/test_fake_classname_tags_123_api.py | 5 +- .../petstore/python/test/test_format_test.py | 5 +- .../python/test/test_has_only_read_only.py | 5 +- .../client/petstore/python/test/test_list.py | 5 +- .../petstore/python/test/test_map_test.py | 5 +- ...perties_and_additional_properties_class.py | 5 +- .../python/test/test_model200_response.py | 5 +- .../python/test/test_model_200_response.py | 40 ----- .../petstore/python/test/test_model_return.py | 5 +- .../client/petstore/python/test/test_name.py | 5 +- .../petstore/python/test/test_number_only.py | 5 +- .../client/petstore/python/test/test_order.py | 5 +- .../python/test/test_outer_boolean.py | 40 ----- .../python/test/test_outer_composite.py | 5 +- .../petstore/python/test/test_outer_enum.py | 5 +- .../petstore/python/test/test_outer_number.py | 40 ----- .../petstore/python/test/test_outer_string.py | 40 ----- .../client/petstore/python/test/test_pet.py | 5 +- .../petstore/python/test/test_pet_api.py | 5 +- .../python/test/test_read_only_first.py | 5 +- .../python/test/test_special_model_name.py | 5 +- .../petstore/python/test/test_store_api.py | 5 +- .../client/petstore/python/test/test_tag.py | 5 +- .../client/petstore/python/test/test_user.py | 5 +- .../petstore/python/test/test_user_api.py | 5 +- .../petstore/python/tests/test_api_client.py | 2 +- .../python/tests/test_deserialization.py | 2 +- .../petstore/python/tests/test_pet_api.py | 6 +- .../petstore/python/tests/test_store_api.py | 2 +- samples/client/petstore/ruby/Gemfile.lock | 3 - samples/client/petstore/ruby/spec/pet_spec.rb | 2 +- 279 files changed, 515 insertions(+), 2144 deletions(-) delete mode 100644 samples/client/petstore/python-asyncio/petstore_api/models/model_200_response.py delete mode 100644 samples/client/petstore/python-asyncio/petstore_api/models/outer_boolean.py delete mode 100644 samples/client/petstore/python-asyncio/petstore_api/models/outer_number.py delete mode 100644 samples/client/petstore/python-asyncio/petstore_api/models/outer_string.py delete mode 100644 samples/client/petstore/python-asyncio/test/test_model_200_response.py delete mode 100644 samples/client/petstore/python-asyncio/test/test_outer_boolean.py delete mode 100644 samples/client/petstore/python-asyncio/test/test_outer_number.py delete mode 100644 samples/client/petstore/python-asyncio/test/test_outer_string.py delete mode 100644 samples/client/petstore/python-tornado/petstore_api/models/model_200_response.py delete mode 100644 samples/client/petstore/python-tornado/petstore_api/models/outer_boolean.py delete mode 100644 samples/client/petstore/python-tornado/petstore_api/models/outer_number.py delete mode 100644 samples/client/petstore/python-tornado/petstore_api/models/outer_string.py delete mode 100644 samples/client/petstore/python-tornado/test/test_model_200_response.py delete mode 100644 samples/client/petstore/python-tornado/test/test_outer_boolean.py delete mode 100644 samples/client/petstore/python-tornado/test/test_outer_number.py delete mode 100644 samples/client/petstore/python-tornado/test/test_outer_string.py delete mode 100644 samples/client/petstore/python/petstore_api/models/model_200_response.py delete mode 100644 samples/client/petstore/python/petstore_api/models/outer_boolean.py delete mode 100644 samples/client/petstore/python/petstore_api/models/outer_number.py delete mode 100644 samples/client/petstore/python/petstore_api/models/outer_string.py delete mode 100644 samples/client/petstore/python/test/test_model_200_response.py delete mode 100644 samples/client/petstore/python/test/test_outer_boolean.py delete mode 100644 samples/client/petstore/python/test/test_outer_number.py delete mode 100644 samples/client/petstore/python/test/test_outer_string.py diff --git a/modules/openapi-generator/src/main/resources/python/api.mustache b/modules/openapi-generator/src/main/resources/python/api.mustache index ebafd266e9b..60ec9ff0a42 100644 --- a/modules/openapi-generator/src/main/resources/python/api.mustache +++ b/modules/openapi-generator/src/main/resources/python/api.mustache @@ -14,7 +14,8 @@ from {{packageName}}.api_client import ApiClient {{#operations}} class {{classname}}(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/modules/openapi-generator/src/main/resources/python/api_client.mustache b/modules/openapi-generator/src/main/resources/python/api_client.mustache index bd72c767698..b0442298283 100644 --- a/modules/openapi-generator/src/main/resources/python/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python/api_client.mustache @@ -30,7 +30,8 @@ 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 (https://openapi-generator.tech). + 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 diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index 72702d8d1f1..398c1d3dab7 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -29,7 +29,7 @@ class TypeWithDefault(type): class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. diff --git a/modules/openapi-generator/src/main/resources/python/model.mustache b/modules/openapi-generator/src/main/resources/python/model.mustache index 3d69ce83b1a..a2f899eeea0 100644 --- a/modules/openapi-generator/src/main/resources/python/model.mustache +++ b/modules/openapi-generator/src/main/resources/python/model.mustache @@ -15,7 +15,8 @@ import six {{#models}} {{#model}} class {{classname}}(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """{{#allowableValues}} diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/another_fake_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/another_fake_api.py index 578d0a3c602..3f1efdf68bd 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/another_fake_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/another_fake_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class AnotherFakeApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py index 31d0b987b12..be7767d8b65 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class FakeApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/fake_classname_tags_123_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/fake_classname_tags_123_api.py index 7ed837ba7cb..1f4d95a148a 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/fake_classname_tags_123_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/fake_classname_tags_123_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class FakeClassnameTags123Api(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/pet_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/pet_api.py index ecddb054d3b..5b62a0b12a5 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/pet_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/pet_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class PetApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/store_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/store_api.py index ae2099b6656..235a7b49a35 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/store_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/store_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class StoreApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/user_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/user_api.py index af116065a8d..1b016f2999c 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/user_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/user_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class UserApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/api_client.py b/samples/client/petstore/python-asyncio/petstore_api/api_client.py index ca7fe697909..cff6604b98b 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api_client.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api_client.py @@ -35,7 +35,8 @@ 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 (https://openapi-generator.tech). + 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 diff --git a/samples/client/petstore/python-asyncio/petstore_api/configuration.py b/samples/client/petstore/python-asyncio/petstore_api/configuration.py index fe59628880e..67928abe376 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/configuration.py +++ b/samples/client/petstore/python-asyncio/petstore_api/configuration.py @@ -37,7 +37,7 @@ class TypeWithDefault(type): class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/additional_properties_class.py b/samples/client/petstore/python-asyncio/petstore_api/models/additional_properties_class.py index 9522f052a43..dc4648ae1c7 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/additional_properties_class.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/additional_properties_class.py @@ -17,7 +17,8 @@ import six class AdditionalPropertiesClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/animal.py b/samples/client/petstore/python-asyncio/petstore_api/models/animal.py index f36776cba40..4a076802654 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/animal.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/animal.py @@ -17,7 +17,8 @@ import six class Animal(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py b/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py index 8df0675df27..238d580ba52 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class AnimalFarm(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/api_response.py b/samples/client/petstore/python-asyncio/petstore_api/models/api_response.py index f06d01c690b..e6298303049 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/api_response.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/api_response.py @@ -17,7 +17,8 @@ import six class ApiResponse(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/array_of_array_of_number_only.py b/samples/client/petstore/python-asyncio/petstore_api/models/array_of_array_of_number_only.py index 00f6fa0f672..fde218a4661 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/array_of_array_of_number_only.py @@ -17,7 +17,8 @@ import six class ArrayOfArrayOfNumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/array_of_number_only.py b/samples/client/petstore/python-asyncio/petstore_api/models/array_of_number_only.py index 4c8fef5fbdb..8999e563c4a 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/array_of_number_only.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/array_of_number_only.py @@ -17,7 +17,8 @@ import six class ArrayOfNumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/array_test.py b/samples/client/petstore/python-asyncio/petstore_api/models/array_test.py index 9f2c4d7ebfd..04a871e8f74 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/array_test.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/array_test.py @@ -19,7 +19,8 @@ from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501 class ArrayTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/capitalization.py b/samples/client/petstore/python-asyncio/petstore_api/models/capitalization.py index 3f4b86e89d0..923f5c4aae8 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/capitalization.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/capitalization.py @@ -17,7 +17,8 @@ import six class Capitalization(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/cat.py b/samples/client/petstore/python-asyncio/petstore_api/models/cat.py index b61abd53616..808409c2266 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/cat.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/cat.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class Cat(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/category.py b/samples/client/petstore/python-asyncio/petstore_api/models/category.py index 8a6068cd012..9fbd44a7b34 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/category.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/category.py @@ -17,7 +17,8 @@ import six class Category(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/class_model.py b/samples/client/petstore/python-asyncio/petstore_api/models/class_model.py index b0c6c7c4ee0..e207ba41ec9 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/class_model.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/class_model.py @@ -17,7 +17,8 @@ import six class ClassModel(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/client.py b/samples/client/petstore/python-asyncio/petstore_api/models/client.py index bdcf3d52d85..e742468e776 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/client.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/client.py @@ -17,7 +17,8 @@ import six class Client(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/dog.py b/samples/client/petstore/python-asyncio/petstore_api/models/dog.py index 221eaffc775..f7fa73c9d4c 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/dog.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/dog.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class Dog(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/enum_arrays.py b/samples/client/petstore/python-asyncio/petstore_api/models/enum_arrays.py index 93f43630a82..df4363c356c 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/enum_arrays.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/enum_arrays.py @@ -17,7 +17,8 @@ import six class EnumArrays(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/enum_class.py b/samples/client/petstore/python-asyncio/petstore_api/models/enum_class.py index 85641c85a92..182197d8aa6 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/enum_class.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/enum_class.py @@ -17,7 +17,8 @@ import six class EnumClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/enum_test.py b/samples/client/petstore/python-asyncio/petstore_api/models/enum_test.py index 520e3230564..cfe0ebcb84a 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/enum_test.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/enum_test.py @@ -19,7 +19,8 @@ from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501 class EnumTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/format_test.py b/samples/client/petstore/python-asyncio/petstore_api/models/format_test.py index 9fd5d8cdfab..68c8953ee19 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/format_test.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/format_test.py @@ -17,7 +17,8 @@ import six class FormatTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/has_only_read_only.py b/samples/client/petstore/python-asyncio/petstore_api/models/has_only_read_only.py index 098d851dd14..41db3ff7195 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/has_only_read_only.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/has_only_read_only.py @@ -17,7 +17,8 @@ import six class HasOnlyReadOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/list.py b/samples/client/petstore/python-asyncio/petstore_api/models/list.py index ebd6194c363..08e12ad5310 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/list.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/list.py @@ -17,7 +17,8 @@ import six class List(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/map_test.py b/samples/client/petstore/python-asyncio/petstore_api/models/map_test.py index 15d1eb90ff3..02ff04f9839 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/map_test.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/map_test.py @@ -17,7 +17,8 @@ import six class MapTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python-asyncio/petstore_api/models/mixed_properties_and_additional_properties_class.py index 24b9809ffc5..a38141493f8 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class MixedPropertiesAndAdditionalPropertiesClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/model200_response.py b/samples/client/petstore/python-asyncio/petstore_api/models/model200_response.py index f4451d15a2e..ec778cdcb74 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/model200_response.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/model200_response.py @@ -17,7 +17,8 @@ import six class Model200Response(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/model_200_response.py b/samples/client/petstore/python-asyncio/petstore_api/models/model_200_response.py deleted file mode 100644 index 60f9c96a676..00000000000 --- a/samples/client/petstore/python-asyncio/petstore_api/models/model_200_response.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Model200Response(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'int', - '_class': 'str' - } - - attribute_map = { - 'name': 'name', - '_class': 'class' - } - - def __init__(self, name=None, _class=None): # noqa: E501 - """Model200Response - a model defined in Swagger""" # noqa: E501 - - self._name = None - self.__class = None - self.discriminator = None - - if name is not None: - self.name = name - if _class is not None: - self._class = _class - - @property - def name(self): - """Gets the name of this Model200Response. # noqa: E501 - - - :return: The name of this Model200Response. # noqa: E501 - :rtype: int - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this Model200Response. - - - :param name: The name of this Model200Response. # noqa: E501 - :type: int - """ - - self._name = name - - @property - def _class(self): - """Gets the _class of this Model200Response. # noqa: E501 - - - :return: The _class of this Model200Response. # noqa: E501 - :rtype: str - """ - return self.__class - - @_class.setter - def _class(self, _class): - """Sets the _class of this Model200Response. - - - :param _class: The _class of this Model200Response. # noqa: E501 - :type: str - """ - - self.__class = _class - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Model200Response): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/model_return.py b/samples/client/petstore/python-asyncio/petstore_api/models/model_return.py index f2b29b99c0a..3862245ef71 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/model_return.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/model_return.py @@ -17,7 +17,8 @@ import six class ModelReturn(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/name.py b/samples/client/petstore/python-asyncio/petstore_api/models/name.py index 3e6237d213a..b2e97e596a4 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/name.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/name.py @@ -17,7 +17,8 @@ import six class Name(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/number_only.py b/samples/client/petstore/python-asyncio/petstore_api/models/number_only.py index 1878b4c4960..ab39ee8195d 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/number_only.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/number_only.py @@ -17,7 +17,8 @@ import six class NumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/order.py b/samples/client/petstore/python-asyncio/petstore_api/models/order.py index ede3f1068a6..697d84447cd 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/order.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/order.py @@ -17,7 +17,8 @@ import six class Order(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/outer_boolean.py b/samples/client/petstore/python-asyncio/petstore_api/models/outer_boolean.py deleted file mode 100644 index 9b3aebd3608..00000000000 --- a/samples/client/petstore/python-asyncio/petstore_api/models/outer_boolean.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterBoolean(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterBoolean - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterBoolean): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/outer_composite.py b/samples/client/petstore/python-asyncio/petstore_api/models/outer_composite.py index a0b7b5e4dae..b22b16c6fdc 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/outer_composite.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/outer_composite.py @@ -17,7 +17,8 @@ import six class OuterComposite(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/outer_enum.py b/samples/client/petstore/python-asyncio/petstore_api/models/outer_enum.py index d26eaaa337e..10d6be19a4c 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/outer_enum.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/outer_enum.py @@ -17,7 +17,8 @@ import six class OuterEnum(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/outer_number.py b/samples/client/petstore/python-asyncio/petstore_api/models/outer_number.py deleted file mode 100644 index a35587be65e..00000000000 --- a/samples/client/petstore/python-asyncio/petstore_api/models/outer_number.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterNumber(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterNumber - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterNumber): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/outer_string.py b/samples/client/petstore/python-asyncio/petstore_api/models/outer_string.py deleted file mode 100644 index 736edacd1bc..00000000000 --- a/samples/client/petstore/python-asyncio/petstore_api/models/outer_string.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterString(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterString - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterString): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/pet.py b/samples/client/petstore/python-asyncio/petstore_api/models/pet.py index a1857f4f527..27891437778 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/pet.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/pet.py @@ -20,7 +20,8 @@ from petstore_api.models.tag import Tag # noqa: F401,E501 class Pet(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/read_only_first.py b/samples/client/petstore/python-asyncio/petstore_api/models/read_only_first.py index ca84207f201..2b257be18de 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/read_only_first.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/read_only_first.py @@ -17,7 +17,8 @@ import six class ReadOnlyFirst(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/special_model_name.py b/samples/client/petstore/python-asyncio/petstore_api/models/special_model_name.py index 0d0326476ae..fa59b887471 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/special_model_name.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/special_model_name.py @@ -17,7 +17,8 @@ import six class SpecialModelName(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/tag.py b/samples/client/petstore/python-asyncio/petstore_api/models/tag.py index 9b17ed19909..8fcc8a84866 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/tag.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/tag.py @@ -17,7 +17,8 @@ import six class Tag(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/user.py b/samples/client/petstore/python-asyncio/petstore_api/models/user.py index 5bae3055300..9736c47c1f8 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/models/user.py +++ b/samples/client/petstore/python-asyncio/petstore_api/models/user.py @@ -17,7 +17,8 @@ import six class User(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-asyncio/pom.xml b/samples/client/petstore/python-asyncio/pom.xml index b370bd02469..6907f8a2a3e 100644 --- a/samples/client/petstore/python-asyncio/pom.xml +++ b/samples/client/petstore/python-asyncio/pom.xml @@ -1,6 +1,6 @@ 4.0.0 - io.swagger + org.openapitools PythonAsyncioClientTests pom 1.0-SNAPSHOT diff --git a/samples/client/petstore/python-asyncio/test/test_additional_properties_class.py b/samples/client/petstore/python-asyncio/test/test_additional_properties_class.py index 77ccb73b028..fc9df3bbb50 100644 --- a/samples/client/petstore/python-asyncio/test/test_additional_properties_class.py +++ b/samples/client/petstore/python-asyncio/test/test_additional_properties_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_animal.py b/samples/client/petstore/python-asyncio/test/test_animal.py index eb5f7cb930e..179f1fbd0e5 100644 --- a/samples/client/petstore/python-asyncio/test/test_animal.py +++ b/samples/client/petstore/python-asyncio/test/test_animal.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_animal_farm.py b/samples/client/petstore/python-asyncio/test/test_animal_farm.py index 8f79946fa73..5c2c55fbd0f 100644 --- a/samples/client/petstore/python-asyncio/test/test_animal_farm.py +++ b/samples/client/petstore/python-asyncio/test/test_animal_farm.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_another_fake_api.py b/samples/client/petstore/python-asyncio/test/test_another_fake_api.py index c294aa90359..4b80dc4eda5 100644 --- a/samples/client/petstore/python-asyncio/test/test_another_fake_api.py +++ b/samples/client/petstore/python-asyncio/test/test_another_fake_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_api_response.py b/samples/client/petstore/python-asyncio/test/test_api_response.py index 97ed978a5f6..5031b458a0d 100644 --- a/samples/client/petstore/python-asyncio/test/test_api_response.py +++ b/samples/client/petstore/python-asyncio/test/test_api_response.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_array_of_array_of_number_only.py b/samples/client/petstore/python-asyncio/test/test_array_of_array_of_number_only.py index b617ed2cd3e..a0223304542 100644 --- a/samples/client/petstore/python-asyncio/test/test_array_of_array_of_number_only.py +++ b/samples/client/petstore/python-asyncio/test/test_array_of_array_of_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_array_of_number_only.py b/samples/client/petstore/python-asyncio/test/test_array_of_number_only.py index 7439364c7b1..1a928bf7d2e 100644 --- a/samples/client/petstore/python-asyncio/test/test_array_of_number_only.py +++ b/samples/client/petstore/python-asyncio/test/test_array_of_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_array_test.py b/samples/client/petstore/python-asyncio/test/test_array_test.py index d7feb2ac8f4..c56b77b77ee 100644 --- a/samples/client/petstore/python-asyncio/test/test_array_test.py +++ b/samples/client/petstore/python-asyncio/test/test_array_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_capitalization.py b/samples/client/petstore/python-asyncio/test/test_capitalization.py index 4ac874e817c..2ae7725b3f0 100644 --- a/samples/client/petstore/python-asyncio/test/test_capitalization.py +++ b/samples/client/petstore/python-asyncio/test/test_capitalization.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_cat.py b/samples/client/petstore/python-asyncio/test/test_cat.py index 370f1081383..5ebd7908d2d 100644 --- a/samples/client/petstore/python-asyncio/test/test_cat.py +++ b/samples/client/petstore/python-asyncio/test/test_cat.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_category.py b/samples/client/petstore/python-asyncio/test/test_category.py index 7a9e40a1f65..6a592521281 100644 --- a/samples/client/petstore/python-asyncio/test/test_category.py +++ b/samples/client/petstore/python-asyncio/test/test_category.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_class_model.py b/samples/client/petstore/python-asyncio/test/test_class_model.py index a42127abf50..12b7fb99402 100644 --- a/samples/client/petstore/python-asyncio/test/test_class_model.py +++ b/samples/client/petstore/python-asyncio/test/test_class_model.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_client.py b/samples/client/petstore/python-asyncio/test/test_client.py index 81df726dbfc..9e18c4310d9 100644 --- a/samples/client/petstore/python-asyncio/test/test_client.py +++ b/samples/client/petstore/python-asyncio/test/test_client.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_dog.py b/samples/client/petstore/python-asyncio/test/test_dog.py index ae13869b99f..dc151f998dd 100644 --- a/samples/client/petstore/python-asyncio/test/test_dog.py +++ b/samples/client/petstore/python-asyncio/test/test_dog.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_enum_arrays.py b/samples/client/petstore/python-asyncio/test/test_enum_arrays.py index 144e48883e5..be572508ef2 100644 --- a/samples/client/petstore/python-asyncio/test/test_enum_arrays.py +++ b/samples/client/petstore/python-asyncio/test/test_enum_arrays.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_enum_class.py b/samples/client/petstore/python-asyncio/test/test_enum_class.py index a47581d2820..57eb14558a7 100644 --- a/samples/client/petstore/python-asyncio/test/test_enum_class.py +++ b/samples/client/petstore/python-asyncio/test/test_enum_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_enum_test.py b/samples/client/petstore/python-asyncio/test/test_enum_test.py index 7487efe9fa1..ecd43afc709 100644 --- a/samples/client/petstore/python-asyncio/test/test_enum_test.py +++ b/samples/client/petstore/python-asyncio/test/test_enum_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_fake_api.py b/samples/client/petstore/python-asyncio/test/test_fake_api.py index 00473d4a13b..fc2cbef35f1 100644 --- a/samples/client/petstore/python-asyncio/test/test_fake_api.py +++ b/samples/client/petstore/python-asyncio/test/test_fake_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ @@ -53,6 +52,12 @@ class TestFakeApi(unittest.TestCase): """ pass + def test_test_body_with_query_params(self): + """Test case for test_body_with_query_params + + """ + pass + def test_test_client_model(self): """Test case for test_client_model diff --git a/samples/client/petstore/python-asyncio/test/test_fake_classname_tags_123_api.py b/samples/client/petstore/python-asyncio/test/test_fake_classname_tags_123_api.py index 8f40062a929..87cac0b9ef8 100644 --- a/samples/client/petstore/python-asyncio/test/test_fake_classname_tags_123_api.py +++ b/samples/client/petstore/python-asyncio/test/test_fake_classname_tags_123_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_format_test.py b/samples/client/petstore/python-asyncio/test/test_format_test.py index 59809b9f442..46707c77b70 100644 --- a/samples/client/petstore/python-asyncio/test/test_format_test.py +++ b/samples/client/petstore/python-asyncio/test/test_format_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_has_only_read_only.py b/samples/client/petstore/python-asyncio/test/test_has_only_read_only.py index 26d14aef1f8..2dc052a328a 100644 --- a/samples/client/petstore/python-asyncio/test/test_has_only_read_only.py +++ b/samples/client/petstore/python-asyncio/test/test_has_only_read_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_list.py b/samples/client/petstore/python-asyncio/test/test_list.py index c2cca419f37..a538a6b1ad3 100644 --- a/samples/client/petstore/python-asyncio/test/test_list.py +++ b/samples/client/petstore/python-asyncio/test/test_list.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_map_test.py b/samples/client/petstore/python-asyncio/test/test_map_test.py index 155797d9b2d..0ba6481903e 100644 --- a/samples/client/petstore/python-asyncio/test/test_map_test.py +++ b/samples/client/petstore/python-asyncio/test/test_map_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python-asyncio/test/test_mixed_properties_and_additional_properties_class.py index 12a56764080..8893bdaf44e 100644 --- a/samples/client/petstore/python-asyncio/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python-asyncio/test/test_mixed_properties_and_additional_properties_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_model200_response.py b/samples/client/petstore/python-asyncio/test/test_model200_response.py index 0a6576d2952..fab761f4edb 100644 --- a/samples/client/petstore/python-asyncio/test/test_model200_response.py +++ b/samples/client/petstore/python-asyncio/test/test_model200_response.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_model_200_response.py b/samples/client/petstore/python-asyncio/test/test_model_200_response.py deleted file mode 100644 index f577dd42144..00000000000 --- a/samples/client/petstore/python-asyncio/test/test_model_200_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.model_200_response import Model200Response # noqa: E501 -from petstore_api.rest import ApiException - - -class TestModel200Response(unittest.TestCase): - """Model200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testModel200Response(self): - """Test Model200Response""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.model_200_response.Model200Response() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-asyncio/test/test_model_return.py b/samples/client/petstore/python-asyncio/test/test_model_return.py index 64cf27f63ab..ae3f15ee6b8 100644 --- a/samples/client/petstore/python-asyncio/test/test_model_return.py +++ b/samples/client/petstore/python-asyncio/test/test_model_return.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_name.py b/samples/client/petstore/python-asyncio/test/test_name.py index beba143f39c..d6c72563991 100644 --- a/samples/client/petstore/python-asyncio/test/test_name.py +++ b/samples/client/petstore/python-asyncio/test/test_name.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_number_only.py b/samples/client/petstore/python-asyncio/test/test_number_only.py index f2600c79526..7f6df65c805 100644 --- a/samples/client/petstore/python-asyncio/test/test_number_only.py +++ b/samples/client/petstore/python-asyncio/test/test_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_order.py b/samples/client/petstore/python-asyncio/test/test_order.py index ed4f8c7d161..3e7d517d5c7 100644 --- a/samples/client/petstore/python-asyncio/test/test_order.py +++ b/samples/client/petstore/python-asyncio/test/test_order.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_outer_boolean.py b/samples/client/petstore/python-asyncio/test/test_outer_boolean.py deleted file mode 100644 index 4a7e446693e..00000000000 --- a/samples/client/petstore/python-asyncio/test/test_outer_boolean.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_boolean import OuterBoolean # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterBoolean(unittest.TestCase): - """OuterBoolean unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterBoolean(self): - """Test OuterBoolean""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_boolean.OuterBoolean() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-asyncio/test/test_outer_composite.py b/samples/client/petstore/python-asyncio/test/test_outer_composite.py index e444e695fe8..dcb078cd216 100644 --- a/samples/client/petstore/python-asyncio/test/test_outer_composite.py +++ b/samples/client/petstore/python-asyncio/test/test_outer_composite.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_outer_enum.py b/samples/client/petstore/python-asyncio/test/test_outer_enum.py index e3fb15e1b6b..472e36e1682 100644 --- a/samples/client/petstore/python-asyncio/test/test_outer_enum.py +++ b/samples/client/petstore/python-asyncio/test/test_outer_enum.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_outer_number.py b/samples/client/petstore/python-asyncio/test/test_outer_number.py deleted file mode 100644 index da5d3ceee61..00000000000 --- a/samples/client/petstore/python-asyncio/test/test_outer_number.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_number import OuterNumber # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterNumber(unittest.TestCase): - """OuterNumber unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterNumber(self): - """Test OuterNumber""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_number.OuterNumber() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-asyncio/test/test_outer_string.py b/samples/client/petstore/python-asyncio/test/test_outer_string.py deleted file mode 100644 index 02b4967e3b9..00000000000 --- a/samples/client/petstore/python-asyncio/test/test_outer_string.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_string import OuterString # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterString(unittest.TestCase): - """OuterString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterString(self): - """Test OuterString""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_string.OuterString() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-asyncio/test/test_pet.py b/samples/client/petstore/python-asyncio/test/test_pet.py index d8df24f92b1..bc5cc30fac0 100644 --- a/samples/client/petstore/python-asyncio/test/test_pet.py +++ b/samples/client/petstore/python-asyncio/test/test_pet.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_pet_api.py b/samples/client/petstore/python-asyncio/test/test_pet_api.py index 1e2dd1c42b6..ffd3e25c4c6 100644 --- a/samples/client/petstore/python-asyncio/test/test_pet_api.py +++ b/samples/client/petstore/python-asyncio/test/test_pet_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_read_only_first.py b/samples/client/petstore/python-asyncio/test/test_read_only_first.py index 94bf3d127de..2b647b83fc8 100644 --- a/samples/client/petstore/python-asyncio/test/test_read_only_first.py +++ b/samples/client/petstore/python-asyncio/test/test_read_only_first.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_special_model_name.py b/samples/client/petstore/python-asyncio/test/test_special_model_name.py index 002f660cc26..4edfec164f7 100644 --- a/samples/client/petstore/python-asyncio/test/test_special_model_name.py +++ b/samples/client/petstore/python-asyncio/test/test_special_model_name.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_store_api.py b/samples/client/petstore/python-asyncio/test/test_store_api.py index 537c1bc03f1..37bf771d13a 100644 --- a/samples/client/petstore/python-asyncio/test/test_store_api.py +++ b/samples/client/petstore/python-asyncio/test/test_store_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_tag.py b/samples/client/petstore/python-asyncio/test/test_tag.py index e9bc1d471d1..2c3c5157e71 100644 --- a/samples/client/petstore/python-asyncio/test/test_tag.py +++ b/samples/client/petstore/python-asyncio/test/test_tag.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_user.py b/samples/client/petstore/python-asyncio/test/test_user.py index 3575746c00f..ad9386b6908 100644 --- a/samples/client/petstore/python-asyncio/test/test_user.py +++ b/samples/client/petstore/python-asyncio/test/test_user.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/test/test_user_api.py b/samples/client/petstore/python-asyncio/test/test_user_api.py index 4ebd90f95e2..6e8aed4f18c 100644 --- a/samples/client/petstore/python-asyncio/test/test_user_api.py +++ b/samples/client/petstore/python-asyncio/test/test_user_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-asyncio/tests/test_pet_api.py b/samples/client/petstore/python-asyncio/tests/test_pet_api.py index b11762d3357..32a336a4ac7 100644 --- a/samples/client/petstore/python-asyncio/tests/test_pet_api.py +++ b/samples/client/petstore/python-asyncio/tests/test_pet_api.py @@ -53,7 +53,7 @@ class TestPetApiTests(unittest.TestCase): self.category.name = "dog" self.tag = petstore_api.Tag() self.tag.id = id_gen() - self.tag.name = "swagger-codegen-python-pet-tag" + self.tag.name = "openapi-generator-python-pet-tag" self.pet = petstore_api.Pet(name="hello kity", photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"]) self.pet.id = id_gen() self.pet.status = "sold" diff --git a/samples/client/petstore/python-tornado/petstore_api/api/another_fake_api.py b/samples/client/petstore/python-tornado/petstore_api/api/another_fake_api.py index 578d0a3c602..3f1efdf68bd 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/another_fake_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/another_fake_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class AnotherFakeApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py b/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py index 31d0b987b12..be7767d8b65 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class FakeApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/api/fake_classname_tags_123_api.py b/samples/client/petstore/python-tornado/petstore_api/api/fake_classname_tags_123_api.py index 7ed837ba7cb..1f4d95a148a 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/fake_classname_tags_123_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/fake_classname_tags_123_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class FakeClassnameTags123Api(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/api/pet_api.py b/samples/client/petstore/python-tornado/petstore_api/api/pet_api.py index ecddb054d3b..5b62a0b12a5 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/pet_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/pet_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class PetApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/api/store_api.py b/samples/client/petstore/python-tornado/petstore_api/api/store_api.py index ae2099b6656..235a7b49a35 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/store_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/store_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class StoreApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/api/user_api.py b/samples/client/petstore/python-tornado/petstore_api/api/user_api.py index af116065a8d..1b016f2999c 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/user_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/user_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class UserApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/api_client.py b/samples/client/petstore/python-tornado/petstore_api/api_client.py index d3e38b1e5f5..a98c0247a0c 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api_client.py +++ b/samples/client/petstore/python-tornado/petstore_api/api_client.py @@ -36,7 +36,8 @@ 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 (https://openapi-generator.tech). + 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 diff --git a/samples/client/petstore/python-tornado/petstore_api/configuration.py b/samples/client/petstore/python-tornado/petstore_api/configuration.py index fe59628880e..67928abe376 100644 --- a/samples/client/petstore/python-tornado/petstore_api/configuration.py +++ b/samples/client/petstore/python-tornado/petstore_api/configuration.py @@ -37,7 +37,7 @@ class TypeWithDefault(type): class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. diff --git a/samples/client/petstore/python-tornado/petstore_api/models/additional_properties_class.py b/samples/client/petstore/python-tornado/petstore_api/models/additional_properties_class.py index 9522f052a43..dc4648ae1c7 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/additional_properties_class.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/additional_properties_class.py @@ -17,7 +17,8 @@ import six class AdditionalPropertiesClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/animal.py b/samples/client/petstore/python-tornado/petstore_api/models/animal.py index f36776cba40..4a076802654 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/animal.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/animal.py @@ -17,7 +17,8 @@ import six class Animal(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py b/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py index 8df0675df27..238d580ba52 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class AnimalFarm(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/api_response.py b/samples/client/petstore/python-tornado/petstore_api/models/api_response.py index f06d01c690b..e6298303049 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/api_response.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/api_response.py @@ -17,7 +17,8 @@ import six class ApiResponse(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/array_of_array_of_number_only.py b/samples/client/petstore/python-tornado/petstore_api/models/array_of_array_of_number_only.py index 00f6fa0f672..fde218a4661 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/array_of_array_of_number_only.py @@ -17,7 +17,8 @@ import six class ArrayOfArrayOfNumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/array_of_number_only.py b/samples/client/petstore/python-tornado/petstore_api/models/array_of_number_only.py index 4c8fef5fbdb..8999e563c4a 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/array_of_number_only.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/array_of_number_only.py @@ -17,7 +17,8 @@ import six class ArrayOfNumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/array_test.py b/samples/client/petstore/python-tornado/petstore_api/models/array_test.py index 9f2c4d7ebfd..04a871e8f74 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/array_test.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/array_test.py @@ -19,7 +19,8 @@ from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501 class ArrayTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/capitalization.py b/samples/client/petstore/python-tornado/petstore_api/models/capitalization.py index 3f4b86e89d0..923f5c4aae8 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/capitalization.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/capitalization.py @@ -17,7 +17,8 @@ import six class Capitalization(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/cat.py b/samples/client/petstore/python-tornado/petstore_api/models/cat.py index b61abd53616..808409c2266 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/cat.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/cat.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class Cat(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/category.py b/samples/client/petstore/python-tornado/petstore_api/models/category.py index 8a6068cd012..9fbd44a7b34 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/category.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/category.py @@ -17,7 +17,8 @@ import six class Category(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/class_model.py b/samples/client/petstore/python-tornado/petstore_api/models/class_model.py index b0c6c7c4ee0..e207ba41ec9 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/class_model.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/class_model.py @@ -17,7 +17,8 @@ import six class ClassModel(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/client.py b/samples/client/petstore/python-tornado/petstore_api/models/client.py index bdcf3d52d85..e742468e776 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/client.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/client.py @@ -17,7 +17,8 @@ import six class Client(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/dog.py b/samples/client/petstore/python-tornado/petstore_api/models/dog.py index 221eaffc775..f7fa73c9d4c 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/dog.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/dog.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class Dog(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/enum_arrays.py b/samples/client/petstore/python-tornado/petstore_api/models/enum_arrays.py index 93f43630a82..df4363c356c 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/enum_arrays.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/enum_arrays.py @@ -17,7 +17,8 @@ import six class EnumArrays(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/enum_class.py b/samples/client/petstore/python-tornado/petstore_api/models/enum_class.py index 85641c85a92..182197d8aa6 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/enum_class.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/enum_class.py @@ -17,7 +17,8 @@ import six class EnumClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/enum_test.py b/samples/client/petstore/python-tornado/petstore_api/models/enum_test.py index 520e3230564..cfe0ebcb84a 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/enum_test.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/enum_test.py @@ -19,7 +19,8 @@ from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501 class EnumTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/format_test.py b/samples/client/petstore/python-tornado/petstore_api/models/format_test.py index 9fd5d8cdfab..68c8953ee19 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/format_test.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/format_test.py @@ -17,7 +17,8 @@ import six class FormatTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/has_only_read_only.py b/samples/client/petstore/python-tornado/petstore_api/models/has_only_read_only.py index 098d851dd14..41db3ff7195 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/has_only_read_only.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/has_only_read_only.py @@ -17,7 +17,8 @@ import six class HasOnlyReadOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/list.py b/samples/client/petstore/python-tornado/petstore_api/models/list.py index ebd6194c363..08e12ad5310 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/list.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/list.py @@ -17,7 +17,8 @@ import six class List(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/map_test.py b/samples/client/petstore/python-tornado/petstore_api/models/map_test.py index 15d1eb90ff3..02ff04f9839 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/map_test.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/map_test.py @@ -17,7 +17,8 @@ import six class MapTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python-tornado/petstore_api/models/mixed_properties_and_additional_properties_class.py index 24b9809ffc5..a38141493f8 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class MixedPropertiesAndAdditionalPropertiesClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/model200_response.py b/samples/client/petstore/python-tornado/petstore_api/models/model200_response.py index f4451d15a2e..ec778cdcb74 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/model200_response.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/model200_response.py @@ -17,7 +17,8 @@ import six class Model200Response(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/model_200_response.py b/samples/client/petstore/python-tornado/petstore_api/models/model_200_response.py deleted file mode 100644 index 60f9c96a676..00000000000 --- a/samples/client/petstore/python-tornado/petstore_api/models/model_200_response.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Model200Response(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'int', - '_class': 'str' - } - - attribute_map = { - 'name': 'name', - '_class': 'class' - } - - def __init__(self, name=None, _class=None): # noqa: E501 - """Model200Response - a model defined in Swagger""" # noqa: E501 - - self._name = None - self.__class = None - self.discriminator = None - - if name is not None: - self.name = name - if _class is not None: - self._class = _class - - @property - def name(self): - """Gets the name of this Model200Response. # noqa: E501 - - - :return: The name of this Model200Response. # noqa: E501 - :rtype: int - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this Model200Response. - - - :param name: The name of this Model200Response. # noqa: E501 - :type: int - """ - - self._name = name - - @property - def _class(self): - """Gets the _class of this Model200Response. # noqa: E501 - - - :return: The _class of this Model200Response. # noqa: E501 - :rtype: str - """ - return self.__class - - @_class.setter - def _class(self, _class): - """Sets the _class of this Model200Response. - - - :param _class: The _class of this Model200Response. # noqa: E501 - :type: str - """ - - self.__class = _class - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Model200Response): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-tornado/petstore_api/models/model_return.py b/samples/client/petstore/python-tornado/petstore_api/models/model_return.py index f2b29b99c0a..3862245ef71 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/model_return.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/model_return.py @@ -17,7 +17,8 @@ import six class ModelReturn(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/name.py b/samples/client/petstore/python-tornado/petstore_api/models/name.py index 3e6237d213a..b2e97e596a4 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/name.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/name.py @@ -17,7 +17,8 @@ import six class Name(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/number_only.py b/samples/client/petstore/python-tornado/petstore_api/models/number_only.py index 1878b4c4960..ab39ee8195d 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/number_only.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/number_only.py @@ -17,7 +17,8 @@ import six class NumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/order.py b/samples/client/petstore/python-tornado/petstore_api/models/order.py index ede3f1068a6..697d84447cd 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/order.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/order.py @@ -17,7 +17,8 @@ import six class Order(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/outer_boolean.py b/samples/client/petstore/python-tornado/petstore_api/models/outer_boolean.py deleted file mode 100644 index 9b3aebd3608..00000000000 --- a/samples/client/petstore/python-tornado/petstore_api/models/outer_boolean.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterBoolean(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterBoolean - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterBoolean): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-tornado/petstore_api/models/outer_composite.py b/samples/client/petstore/python-tornado/petstore_api/models/outer_composite.py index a0b7b5e4dae..b22b16c6fdc 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/outer_composite.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/outer_composite.py @@ -17,7 +17,8 @@ import six class OuterComposite(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/outer_enum.py b/samples/client/petstore/python-tornado/petstore_api/models/outer_enum.py index d26eaaa337e..10d6be19a4c 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/outer_enum.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/outer_enum.py @@ -17,7 +17,8 @@ import six class OuterEnum(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/outer_number.py b/samples/client/petstore/python-tornado/petstore_api/models/outer_number.py deleted file mode 100644 index a35587be65e..00000000000 --- a/samples/client/petstore/python-tornado/petstore_api/models/outer_number.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterNumber(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterNumber - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterNumber): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-tornado/petstore_api/models/outer_string.py b/samples/client/petstore/python-tornado/petstore_api/models/outer_string.py deleted file mode 100644 index 736edacd1bc..00000000000 --- a/samples/client/petstore/python-tornado/petstore_api/models/outer_string.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterString(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterString - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterString): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python-tornado/petstore_api/models/pet.py b/samples/client/petstore/python-tornado/petstore_api/models/pet.py index a1857f4f527..27891437778 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/pet.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/pet.py @@ -20,7 +20,8 @@ from petstore_api.models.tag import Tag # noqa: F401,E501 class Pet(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/read_only_first.py b/samples/client/petstore/python-tornado/petstore_api/models/read_only_first.py index ca84207f201..2b257be18de 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/read_only_first.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/read_only_first.py @@ -17,7 +17,8 @@ import six class ReadOnlyFirst(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/special_model_name.py b/samples/client/petstore/python-tornado/petstore_api/models/special_model_name.py index 0d0326476ae..fa59b887471 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/special_model_name.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/special_model_name.py @@ -17,7 +17,8 @@ import six class SpecialModelName(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/tag.py b/samples/client/petstore/python-tornado/petstore_api/models/tag.py index 9b17ed19909..8fcc8a84866 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/tag.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/tag.py @@ -17,7 +17,8 @@ import six class Tag(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/petstore_api/models/user.py b/samples/client/petstore/python-tornado/petstore_api/models/user.py index 5bae3055300..9736c47c1f8 100644 --- a/samples/client/petstore/python-tornado/petstore_api/models/user.py +++ b/samples/client/petstore/python-tornado/petstore_api/models/user.py @@ -17,7 +17,8 @@ import six class User(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python-tornado/pom.xml b/samples/client/petstore/python-tornado/pom.xml index 57ceaeaa8dc..821e12dfe8d 100644 --- a/samples/client/petstore/python-tornado/pom.xml +++ b/samples/client/petstore/python-tornado/pom.xml @@ -1,6 +1,6 @@ 4.0.0 - io.swagger + org.openapitools PythonTornadoClientTests pom 1.0-SNAPSHOT diff --git a/samples/client/petstore/python-tornado/test/test_additional_properties_class.py b/samples/client/petstore/python-tornado/test/test_additional_properties_class.py index 77ccb73b028..fc9df3bbb50 100644 --- a/samples/client/petstore/python-tornado/test/test_additional_properties_class.py +++ b/samples/client/petstore/python-tornado/test/test_additional_properties_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_animal.py b/samples/client/petstore/python-tornado/test/test_animal.py index eb5f7cb930e..179f1fbd0e5 100644 --- a/samples/client/petstore/python-tornado/test/test_animal.py +++ b/samples/client/petstore/python-tornado/test/test_animal.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_animal_farm.py b/samples/client/petstore/python-tornado/test/test_animal_farm.py index 8f79946fa73..5c2c55fbd0f 100644 --- a/samples/client/petstore/python-tornado/test/test_animal_farm.py +++ b/samples/client/petstore/python-tornado/test/test_animal_farm.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_another_fake_api.py b/samples/client/petstore/python-tornado/test/test_another_fake_api.py index c294aa90359..4b80dc4eda5 100644 --- a/samples/client/petstore/python-tornado/test/test_another_fake_api.py +++ b/samples/client/petstore/python-tornado/test/test_another_fake_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_api_response.py b/samples/client/petstore/python-tornado/test/test_api_response.py index 97ed978a5f6..5031b458a0d 100644 --- a/samples/client/petstore/python-tornado/test/test_api_response.py +++ b/samples/client/petstore/python-tornado/test/test_api_response.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_array_of_array_of_number_only.py b/samples/client/petstore/python-tornado/test/test_array_of_array_of_number_only.py index b617ed2cd3e..a0223304542 100644 --- a/samples/client/petstore/python-tornado/test/test_array_of_array_of_number_only.py +++ b/samples/client/petstore/python-tornado/test/test_array_of_array_of_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_array_of_number_only.py b/samples/client/petstore/python-tornado/test/test_array_of_number_only.py index 7439364c7b1..1a928bf7d2e 100644 --- a/samples/client/petstore/python-tornado/test/test_array_of_number_only.py +++ b/samples/client/petstore/python-tornado/test/test_array_of_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_array_test.py b/samples/client/petstore/python-tornado/test/test_array_test.py index d7feb2ac8f4..c56b77b77ee 100644 --- a/samples/client/petstore/python-tornado/test/test_array_test.py +++ b/samples/client/petstore/python-tornado/test/test_array_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_capitalization.py b/samples/client/petstore/python-tornado/test/test_capitalization.py index 4ac874e817c..2ae7725b3f0 100644 --- a/samples/client/petstore/python-tornado/test/test_capitalization.py +++ b/samples/client/petstore/python-tornado/test/test_capitalization.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_cat.py b/samples/client/petstore/python-tornado/test/test_cat.py index 370f1081383..5ebd7908d2d 100644 --- a/samples/client/petstore/python-tornado/test/test_cat.py +++ b/samples/client/petstore/python-tornado/test/test_cat.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_category.py b/samples/client/petstore/python-tornado/test/test_category.py index 7a9e40a1f65..6a592521281 100644 --- a/samples/client/petstore/python-tornado/test/test_category.py +++ b/samples/client/petstore/python-tornado/test/test_category.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_class_model.py b/samples/client/petstore/python-tornado/test/test_class_model.py index a42127abf50..12b7fb99402 100644 --- a/samples/client/petstore/python-tornado/test/test_class_model.py +++ b/samples/client/petstore/python-tornado/test/test_class_model.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_client.py b/samples/client/petstore/python-tornado/test/test_client.py index 81df726dbfc..9e18c4310d9 100644 --- a/samples/client/petstore/python-tornado/test/test_client.py +++ b/samples/client/petstore/python-tornado/test/test_client.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_dog.py b/samples/client/petstore/python-tornado/test/test_dog.py index ae13869b99f..dc151f998dd 100644 --- a/samples/client/petstore/python-tornado/test/test_dog.py +++ b/samples/client/petstore/python-tornado/test/test_dog.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_enum_arrays.py b/samples/client/petstore/python-tornado/test/test_enum_arrays.py index 144e48883e5..be572508ef2 100644 --- a/samples/client/petstore/python-tornado/test/test_enum_arrays.py +++ b/samples/client/petstore/python-tornado/test/test_enum_arrays.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_enum_class.py b/samples/client/petstore/python-tornado/test/test_enum_class.py index a47581d2820..57eb14558a7 100644 --- a/samples/client/petstore/python-tornado/test/test_enum_class.py +++ b/samples/client/petstore/python-tornado/test/test_enum_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_enum_test.py b/samples/client/petstore/python-tornado/test/test_enum_test.py index 7487efe9fa1..ecd43afc709 100644 --- a/samples/client/petstore/python-tornado/test/test_enum_test.py +++ b/samples/client/petstore/python-tornado/test/test_enum_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_fake_api.py b/samples/client/petstore/python-tornado/test/test_fake_api.py index 00473d4a13b..fc2cbef35f1 100644 --- a/samples/client/petstore/python-tornado/test/test_fake_api.py +++ b/samples/client/petstore/python-tornado/test/test_fake_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ @@ -53,6 +52,12 @@ class TestFakeApi(unittest.TestCase): """ pass + def test_test_body_with_query_params(self): + """Test case for test_body_with_query_params + + """ + pass + def test_test_client_model(self): """Test case for test_client_model diff --git a/samples/client/petstore/python-tornado/test/test_fake_classname_tags_123_api.py b/samples/client/petstore/python-tornado/test/test_fake_classname_tags_123_api.py index 8f40062a929..87cac0b9ef8 100644 --- a/samples/client/petstore/python-tornado/test/test_fake_classname_tags_123_api.py +++ b/samples/client/petstore/python-tornado/test/test_fake_classname_tags_123_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_format_test.py b/samples/client/petstore/python-tornado/test/test_format_test.py index 59809b9f442..46707c77b70 100644 --- a/samples/client/petstore/python-tornado/test/test_format_test.py +++ b/samples/client/petstore/python-tornado/test/test_format_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_has_only_read_only.py b/samples/client/petstore/python-tornado/test/test_has_only_read_only.py index 26d14aef1f8..2dc052a328a 100644 --- a/samples/client/petstore/python-tornado/test/test_has_only_read_only.py +++ b/samples/client/petstore/python-tornado/test/test_has_only_read_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_list.py b/samples/client/petstore/python-tornado/test/test_list.py index c2cca419f37..a538a6b1ad3 100644 --- a/samples/client/petstore/python-tornado/test/test_list.py +++ b/samples/client/petstore/python-tornado/test/test_list.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_map_test.py b/samples/client/petstore/python-tornado/test/test_map_test.py index 155797d9b2d..0ba6481903e 100644 --- a/samples/client/petstore/python-tornado/test/test_map_test.py +++ b/samples/client/petstore/python-tornado/test/test_map_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python-tornado/test/test_mixed_properties_and_additional_properties_class.py index 12a56764080..8893bdaf44e 100644 --- a/samples/client/petstore/python-tornado/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python-tornado/test/test_mixed_properties_and_additional_properties_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_model200_response.py b/samples/client/petstore/python-tornado/test/test_model200_response.py index 0a6576d2952..fab761f4edb 100644 --- a/samples/client/petstore/python-tornado/test/test_model200_response.py +++ b/samples/client/petstore/python-tornado/test/test_model200_response.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_model_200_response.py b/samples/client/petstore/python-tornado/test/test_model_200_response.py deleted file mode 100644 index f577dd42144..00000000000 --- a/samples/client/petstore/python-tornado/test/test_model_200_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.model_200_response import Model200Response # noqa: E501 -from petstore_api.rest import ApiException - - -class TestModel200Response(unittest.TestCase): - """Model200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testModel200Response(self): - """Test Model200Response""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.model_200_response.Model200Response() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-tornado/test/test_model_return.py b/samples/client/petstore/python-tornado/test/test_model_return.py index 64cf27f63ab..ae3f15ee6b8 100644 --- a/samples/client/petstore/python-tornado/test/test_model_return.py +++ b/samples/client/petstore/python-tornado/test/test_model_return.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_name.py b/samples/client/petstore/python-tornado/test/test_name.py index beba143f39c..d6c72563991 100644 --- a/samples/client/petstore/python-tornado/test/test_name.py +++ b/samples/client/petstore/python-tornado/test/test_name.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_number_only.py b/samples/client/petstore/python-tornado/test/test_number_only.py index f2600c79526..7f6df65c805 100644 --- a/samples/client/petstore/python-tornado/test/test_number_only.py +++ b/samples/client/petstore/python-tornado/test/test_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_order.py b/samples/client/petstore/python-tornado/test/test_order.py index ed4f8c7d161..3e7d517d5c7 100644 --- a/samples/client/petstore/python-tornado/test/test_order.py +++ b/samples/client/petstore/python-tornado/test/test_order.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_outer_boolean.py b/samples/client/petstore/python-tornado/test/test_outer_boolean.py deleted file mode 100644 index 4a7e446693e..00000000000 --- a/samples/client/petstore/python-tornado/test/test_outer_boolean.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_boolean import OuterBoolean # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterBoolean(unittest.TestCase): - """OuterBoolean unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterBoolean(self): - """Test OuterBoolean""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_boolean.OuterBoolean() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-tornado/test/test_outer_composite.py b/samples/client/petstore/python-tornado/test/test_outer_composite.py index e444e695fe8..dcb078cd216 100644 --- a/samples/client/petstore/python-tornado/test/test_outer_composite.py +++ b/samples/client/petstore/python-tornado/test/test_outer_composite.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_outer_enum.py b/samples/client/petstore/python-tornado/test/test_outer_enum.py index e3fb15e1b6b..472e36e1682 100644 --- a/samples/client/petstore/python-tornado/test/test_outer_enum.py +++ b/samples/client/petstore/python-tornado/test/test_outer_enum.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_outer_number.py b/samples/client/petstore/python-tornado/test/test_outer_number.py deleted file mode 100644 index da5d3ceee61..00000000000 --- a/samples/client/petstore/python-tornado/test/test_outer_number.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_number import OuterNumber # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterNumber(unittest.TestCase): - """OuterNumber unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterNumber(self): - """Test OuterNumber""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_number.OuterNumber() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-tornado/test/test_outer_string.py b/samples/client/petstore/python-tornado/test/test_outer_string.py deleted file mode 100644 index 02b4967e3b9..00000000000 --- a/samples/client/petstore/python-tornado/test/test_outer_string.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_string import OuterString # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterString(unittest.TestCase): - """OuterString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterString(self): - """Test OuterString""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_string.OuterString() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-tornado/test/test_pet.py b/samples/client/petstore/python-tornado/test/test_pet.py index d8df24f92b1..bc5cc30fac0 100644 --- a/samples/client/petstore/python-tornado/test/test_pet.py +++ b/samples/client/petstore/python-tornado/test/test_pet.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_pet_api.py b/samples/client/petstore/python-tornado/test/test_pet_api.py index 1e2dd1c42b6..ffd3e25c4c6 100644 --- a/samples/client/petstore/python-tornado/test/test_pet_api.py +++ b/samples/client/petstore/python-tornado/test/test_pet_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_read_only_first.py b/samples/client/petstore/python-tornado/test/test_read_only_first.py index 94bf3d127de..2b647b83fc8 100644 --- a/samples/client/petstore/python-tornado/test/test_read_only_first.py +++ b/samples/client/petstore/python-tornado/test/test_read_only_first.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_special_model_name.py b/samples/client/petstore/python-tornado/test/test_special_model_name.py index 002f660cc26..4edfec164f7 100644 --- a/samples/client/petstore/python-tornado/test/test_special_model_name.py +++ b/samples/client/petstore/python-tornado/test/test_special_model_name.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_store_api.py b/samples/client/petstore/python-tornado/test/test_store_api.py index 537c1bc03f1..37bf771d13a 100644 --- a/samples/client/petstore/python-tornado/test/test_store_api.py +++ b/samples/client/petstore/python-tornado/test/test_store_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_tag.py b/samples/client/petstore/python-tornado/test/test_tag.py index e9bc1d471d1..2c3c5157e71 100644 --- a/samples/client/petstore/python-tornado/test/test_tag.py +++ b/samples/client/petstore/python-tornado/test/test_tag.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_user.py b/samples/client/petstore/python-tornado/test/test_user.py index 3575746c00f..ad9386b6908 100644 --- a/samples/client/petstore/python-tornado/test/test_user.py +++ b/samples/client/petstore/python-tornado/test/test_user.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/test/test_user_api.py b/samples/client/petstore/python-tornado/test/test_user_api.py index 4ebd90f95e2..6e8aed4f18c 100644 --- a/samples/client/petstore/python-tornado/test/test_user_api.py +++ b/samples/client/petstore/python-tornado/test/test_user_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python-tornado/tests/test_pet_api.py b/samples/client/petstore/python-tornado/tests/test_pet_api.py index 90be23b2bad..40ea58d791f 100644 --- a/samples/client/petstore/python-tornado/tests/test_pet_api.py +++ b/samples/client/petstore/python-tornado/tests/test_pet_api.py @@ -46,7 +46,7 @@ class PetApiTests(AsyncTestCase): self.category.name = "dog" self.tag = petstore_api.Tag() self.tag.id = id_gen() - self.tag.name = "swagger-codegen-python-pet-tag" + self.tag.name = "opeanpi-generator-python-pet-tag" self.pet = petstore_api.Pet(name="hello kity", photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"]) self.pet.id = id_gen() self.pet.status = "sold" diff --git a/samples/client/petstore/python/petstore_api/api/another_fake_api.py b/samples/client/petstore/python/petstore_api/api/another_fake_api.py index 578d0a3c602..3f1efdf68bd 100644 --- a/samples/client/petstore/python/petstore_api/api/another_fake_api.py +++ b/samples/client/petstore/python/petstore_api/api/another_fake_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class AnotherFakeApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/api/fake_api.py b/samples/client/petstore/python/petstore_api/api/fake_api.py index 31d0b987b12..be7767d8b65 100644 --- a/samples/client/petstore/python/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python/petstore_api/api/fake_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class FakeApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py b/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py index 7ed837ba7cb..1f4d95a148a 100644 --- a/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py +++ b/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class FakeClassnameTags123Api(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/api/pet_api.py b/samples/client/petstore/python/petstore_api/api/pet_api.py index ecddb054d3b..5b62a0b12a5 100644 --- a/samples/client/petstore/python/petstore_api/api/pet_api.py +++ b/samples/client/petstore/python/petstore_api/api/pet_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class PetApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/api/store_api.py b/samples/client/petstore/python/petstore_api/api/store_api.py index ae2099b6656..235a7b49a35 100644 --- a/samples/client/petstore/python/petstore_api/api/store_api.py +++ b/samples/client/petstore/python/petstore_api/api/store_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class StoreApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/api/user_api.py b/samples/client/petstore/python/petstore_api/api/user_api.py index af116065a8d..1b016f2999c 100644 --- a/samples/client/petstore/python/petstore_api/api/user_api.py +++ b/samples/client/petstore/python/petstore_api/api/user_api.py @@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient class UserApi(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/api_client.py b/samples/client/petstore/python/petstore_api/api_client.py index 330a6aa6064..432ab964f37 100644 --- a/samples/client/petstore/python/petstore_api/api_client.py +++ b/samples/client/petstore/python/petstore_api/api_client.py @@ -35,7 +35,8 @@ 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 (https://openapi-generator.tech). + 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 diff --git a/samples/client/petstore/python/petstore_api/configuration.py b/samples/client/petstore/python/petstore_api/configuration.py index fe59628880e..67928abe376 100644 --- a/samples/client/petstore/python/petstore_api/configuration.py +++ b/samples/client/petstore/python/petstore_api/configuration.py @@ -37,7 +37,7 @@ class TypeWithDefault(type): class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. diff --git a/samples/client/petstore/python/petstore_api/models/additional_properties_class.py b/samples/client/petstore/python/petstore_api/models/additional_properties_class.py index 9522f052a43..dc4648ae1c7 100644 --- a/samples/client/petstore/python/petstore_api/models/additional_properties_class.py +++ b/samples/client/petstore/python/petstore_api/models/additional_properties_class.py @@ -17,7 +17,8 @@ import six class AdditionalPropertiesClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/animal.py b/samples/client/petstore/python/petstore_api/models/animal.py index f36776cba40..4a076802654 100644 --- a/samples/client/petstore/python/petstore_api/models/animal.py +++ b/samples/client/petstore/python/petstore_api/models/animal.py @@ -17,7 +17,8 @@ import six class Animal(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/animal_farm.py b/samples/client/petstore/python/petstore_api/models/animal_farm.py index 8df0675df27..238d580ba52 100644 --- a/samples/client/petstore/python/petstore_api/models/animal_farm.py +++ b/samples/client/petstore/python/petstore_api/models/animal_farm.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class AnimalFarm(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/api_response.py b/samples/client/petstore/python/petstore_api/models/api_response.py index f06d01c690b..e6298303049 100644 --- a/samples/client/petstore/python/petstore_api/models/api_response.py +++ b/samples/client/petstore/python/petstore_api/models/api_response.py @@ -17,7 +17,8 @@ import six class ApiResponse(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py b/samples/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py index 00f6fa0f672..fde218a4661 100644 --- a/samples/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py @@ -17,7 +17,8 @@ import six class ArrayOfArrayOfNumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/array_of_number_only.py b/samples/client/petstore/python/petstore_api/models/array_of_number_only.py index 4c8fef5fbdb..8999e563c4a 100644 --- a/samples/client/petstore/python/petstore_api/models/array_of_number_only.py +++ b/samples/client/petstore/python/petstore_api/models/array_of_number_only.py @@ -17,7 +17,8 @@ import six class ArrayOfNumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/array_test.py b/samples/client/petstore/python/petstore_api/models/array_test.py index 9f2c4d7ebfd..04a871e8f74 100644 --- a/samples/client/petstore/python/petstore_api/models/array_test.py +++ b/samples/client/petstore/python/petstore_api/models/array_test.py @@ -19,7 +19,8 @@ from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501 class ArrayTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/capitalization.py b/samples/client/petstore/python/petstore_api/models/capitalization.py index 3f4b86e89d0..923f5c4aae8 100644 --- a/samples/client/petstore/python/petstore_api/models/capitalization.py +++ b/samples/client/petstore/python/petstore_api/models/capitalization.py @@ -17,7 +17,8 @@ import six class Capitalization(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/cat.py b/samples/client/petstore/python/petstore_api/models/cat.py index b61abd53616..808409c2266 100644 --- a/samples/client/petstore/python/petstore_api/models/cat.py +++ b/samples/client/petstore/python/petstore_api/models/cat.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class Cat(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/category.py b/samples/client/petstore/python/petstore_api/models/category.py index 8a6068cd012..9fbd44a7b34 100644 --- a/samples/client/petstore/python/petstore_api/models/category.py +++ b/samples/client/petstore/python/petstore_api/models/category.py @@ -17,7 +17,8 @@ import six class Category(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/class_model.py b/samples/client/petstore/python/petstore_api/models/class_model.py index b0c6c7c4ee0..e207ba41ec9 100644 --- a/samples/client/petstore/python/petstore_api/models/class_model.py +++ b/samples/client/petstore/python/petstore_api/models/class_model.py @@ -17,7 +17,8 @@ import six class ClassModel(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/client.py b/samples/client/petstore/python/petstore_api/models/client.py index bdcf3d52d85..e742468e776 100644 --- a/samples/client/petstore/python/petstore_api/models/client.py +++ b/samples/client/petstore/python/petstore_api/models/client.py @@ -17,7 +17,8 @@ import six class Client(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/dog.py b/samples/client/petstore/python/petstore_api/models/dog.py index 221eaffc775..f7fa73c9d4c 100644 --- a/samples/client/petstore/python/petstore_api/models/dog.py +++ b/samples/client/petstore/python/petstore_api/models/dog.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class Dog(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/enum_arrays.py b/samples/client/petstore/python/petstore_api/models/enum_arrays.py index 93f43630a82..df4363c356c 100644 --- a/samples/client/petstore/python/petstore_api/models/enum_arrays.py +++ b/samples/client/petstore/python/petstore_api/models/enum_arrays.py @@ -17,7 +17,8 @@ import six class EnumArrays(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/enum_class.py b/samples/client/petstore/python/petstore_api/models/enum_class.py index 85641c85a92..182197d8aa6 100644 --- a/samples/client/petstore/python/petstore_api/models/enum_class.py +++ b/samples/client/petstore/python/petstore_api/models/enum_class.py @@ -17,7 +17,8 @@ import six class EnumClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/enum_test.py b/samples/client/petstore/python/petstore_api/models/enum_test.py index 520e3230564..cfe0ebcb84a 100644 --- a/samples/client/petstore/python/petstore_api/models/enum_test.py +++ b/samples/client/petstore/python/petstore_api/models/enum_test.py @@ -19,7 +19,8 @@ from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501 class EnumTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/format_test.py b/samples/client/petstore/python/petstore_api/models/format_test.py index 9fd5d8cdfab..68c8953ee19 100644 --- a/samples/client/petstore/python/petstore_api/models/format_test.py +++ b/samples/client/petstore/python/petstore_api/models/format_test.py @@ -17,7 +17,8 @@ import six class FormatTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/has_only_read_only.py b/samples/client/petstore/python/petstore_api/models/has_only_read_only.py index 098d851dd14..41db3ff7195 100644 --- a/samples/client/petstore/python/petstore_api/models/has_only_read_only.py +++ b/samples/client/petstore/python/petstore_api/models/has_only_read_only.py @@ -17,7 +17,8 @@ import six class HasOnlyReadOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/list.py b/samples/client/petstore/python/petstore_api/models/list.py index ebd6194c363..08e12ad5310 100644 --- a/samples/client/petstore/python/petstore_api/models/list.py +++ b/samples/client/petstore/python/petstore_api/models/list.py @@ -17,7 +17,8 @@ import six class List(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/map_test.py b/samples/client/petstore/python/petstore_api/models/map_test.py index 15d1eb90ff3..02ff04f9839 100644 --- a/samples/client/petstore/python/petstore_api/models/map_test.py +++ b/samples/client/petstore/python/petstore_api/models/map_test.py @@ -17,7 +17,8 @@ import six class MapTest(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py index 24b9809ffc5..a38141493f8 100644 --- a/samples/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501 class MixedPropertiesAndAdditionalPropertiesClass(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/model200_response.py b/samples/client/petstore/python/petstore_api/models/model200_response.py index f4451d15a2e..ec778cdcb74 100644 --- a/samples/client/petstore/python/petstore_api/models/model200_response.py +++ b/samples/client/petstore/python/petstore_api/models/model200_response.py @@ -17,7 +17,8 @@ import six class Model200Response(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/model_200_response.py b/samples/client/petstore/python/petstore_api/models/model_200_response.py deleted file mode 100644 index 60f9c96a676..00000000000 --- a/samples/client/petstore/python/petstore_api/models/model_200_response.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Model200Response(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'int', - '_class': 'str' - } - - attribute_map = { - 'name': 'name', - '_class': 'class' - } - - def __init__(self, name=None, _class=None): # noqa: E501 - """Model200Response - a model defined in Swagger""" # noqa: E501 - - self._name = None - self.__class = None - self.discriminator = None - - if name is not None: - self.name = name - if _class is not None: - self._class = _class - - @property - def name(self): - """Gets the name of this Model200Response. # noqa: E501 - - - :return: The name of this Model200Response. # noqa: E501 - :rtype: int - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this Model200Response. - - - :param name: The name of this Model200Response. # noqa: E501 - :type: int - """ - - self._name = name - - @property - def _class(self): - """Gets the _class of this Model200Response. # noqa: E501 - - - :return: The _class of this Model200Response. # noqa: E501 - :rtype: str - """ - return self.__class - - @_class.setter - def _class(self, _class): - """Sets the _class of this Model200Response. - - - :param _class: The _class of this Model200Response. # noqa: E501 - :type: str - """ - - self.__class = _class - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Model200Response): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python/petstore_api/models/model_return.py b/samples/client/petstore/python/petstore_api/models/model_return.py index f2b29b99c0a..3862245ef71 100644 --- a/samples/client/petstore/python/petstore_api/models/model_return.py +++ b/samples/client/petstore/python/petstore_api/models/model_return.py @@ -17,7 +17,8 @@ import six class ModelReturn(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/name.py b/samples/client/petstore/python/petstore_api/models/name.py index 3e6237d213a..b2e97e596a4 100644 --- a/samples/client/petstore/python/petstore_api/models/name.py +++ b/samples/client/petstore/python/petstore_api/models/name.py @@ -17,7 +17,8 @@ import six class Name(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/number_only.py b/samples/client/petstore/python/petstore_api/models/number_only.py index 1878b4c4960..ab39ee8195d 100644 --- a/samples/client/petstore/python/petstore_api/models/number_only.py +++ b/samples/client/petstore/python/petstore_api/models/number_only.py @@ -17,7 +17,8 @@ import six class NumberOnly(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/order.py b/samples/client/petstore/python/petstore_api/models/order.py index ede3f1068a6..697d84447cd 100644 --- a/samples/client/petstore/python/petstore_api/models/order.py +++ b/samples/client/petstore/python/petstore_api/models/order.py @@ -17,7 +17,8 @@ import six class Order(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/outer_boolean.py b/samples/client/petstore/python/petstore_api/models/outer_boolean.py deleted file mode 100644 index 9b3aebd3608..00000000000 --- a/samples/client/petstore/python/petstore_api/models/outer_boolean.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterBoolean(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterBoolean - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterBoolean): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python/petstore_api/models/outer_composite.py b/samples/client/petstore/python/petstore_api/models/outer_composite.py index a0b7b5e4dae..b22b16c6fdc 100644 --- a/samples/client/petstore/python/petstore_api/models/outer_composite.py +++ b/samples/client/petstore/python/petstore_api/models/outer_composite.py @@ -17,7 +17,8 @@ import six class OuterComposite(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/outer_enum.py b/samples/client/petstore/python/petstore_api/models/outer_enum.py index d26eaaa337e..10d6be19a4c 100644 --- a/samples/client/petstore/python/petstore_api/models/outer_enum.py +++ b/samples/client/petstore/python/petstore_api/models/outer_enum.py @@ -17,7 +17,8 @@ import six class OuterEnum(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/outer_number.py b/samples/client/petstore/python/petstore_api/models/outer_number.py deleted file mode 100644 index a35587be65e..00000000000 --- a/samples/client/petstore/python/petstore_api/models/outer_number.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterNumber(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterNumber - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterNumber): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python/petstore_api/models/outer_string.py b/samples/client/petstore/python/petstore_api/models/outer_string.py deleted file mode 100644 index 736edacd1bc..00000000000 --- a/samples/client/petstore/python/petstore_api/models/outer_string.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OuterString(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """OuterString - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OuterString): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/samples/client/petstore/python/petstore_api/models/pet.py b/samples/client/petstore/python/petstore_api/models/pet.py index a1857f4f527..27891437778 100644 --- a/samples/client/petstore/python/petstore_api/models/pet.py +++ b/samples/client/petstore/python/petstore_api/models/pet.py @@ -20,7 +20,8 @@ from petstore_api.models.tag import Tag # noqa: F401,E501 class Pet(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/read_only_first.py b/samples/client/petstore/python/petstore_api/models/read_only_first.py index ca84207f201..2b257be18de 100644 --- a/samples/client/petstore/python/petstore_api/models/read_only_first.py +++ b/samples/client/petstore/python/petstore_api/models/read_only_first.py @@ -17,7 +17,8 @@ import six class ReadOnlyFirst(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/special_model_name.py b/samples/client/petstore/python/petstore_api/models/special_model_name.py index 0d0326476ae..fa59b887471 100644 --- a/samples/client/petstore/python/petstore_api/models/special_model_name.py +++ b/samples/client/petstore/python/petstore_api/models/special_model_name.py @@ -17,7 +17,8 @@ import six class SpecialModelName(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/tag.py b/samples/client/petstore/python/petstore_api/models/tag.py index 9b17ed19909..8fcc8a84866 100644 --- a/samples/client/petstore/python/petstore_api/models/tag.py +++ b/samples/client/petstore/python/petstore_api/models/tag.py @@ -17,7 +17,8 @@ import six class Tag(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/petstore_api/models/user.py b/samples/client/petstore/python/petstore_api/models/user.py index 5bae3055300..9736c47c1f8 100644 --- a/samples/client/petstore/python/petstore_api/models/user.py +++ b/samples/client/petstore/python/petstore_api/models/user.py @@ -17,7 +17,8 @@ import six class User(object): - """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. """ diff --git a/samples/client/petstore/python/pom.xml b/samples/client/petstore/python/pom.xml index 6eaa49eaea9..db2d09246c3 100644 --- a/samples/client/petstore/python/pom.xml +++ b/samples/client/petstore/python/pom.xml @@ -1,10 +1,10 @@ 4.0.0 - io.swagger + org.openapitools PythonPetstoreClientTests pom 1.0-SNAPSHOT - Python Swagger Petstore Client + Python OpenAPI Petstore Client diff --git a/samples/client/petstore/python/test/test_additional_properties_class.py b/samples/client/petstore/python/test/test_additional_properties_class.py index 77ccb73b028..fc9df3bbb50 100644 --- a/samples/client/petstore/python/test/test_additional_properties_class.py +++ b/samples/client/petstore/python/test/test_additional_properties_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_animal.py b/samples/client/petstore/python/test/test_animal.py index eb5f7cb930e..179f1fbd0e5 100644 --- a/samples/client/petstore/python/test/test_animal.py +++ b/samples/client/petstore/python/test/test_animal.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_animal_farm.py b/samples/client/petstore/python/test/test_animal_farm.py index 8f79946fa73..5c2c55fbd0f 100644 --- a/samples/client/petstore/python/test/test_animal_farm.py +++ b/samples/client/petstore/python/test/test_animal_farm.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_another_fake_api.py b/samples/client/petstore/python/test/test_another_fake_api.py index c294aa90359..4b80dc4eda5 100644 --- a/samples/client/petstore/python/test/test_another_fake_api.py +++ b/samples/client/petstore/python/test/test_another_fake_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_api_response.py b/samples/client/petstore/python/test/test_api_response.py index 97ed978a5f6..5031b458a0d 100644 --- a/samples/client/petstore/python/test/test_api_response.py +++ b/samples/client/petstore/python/test/test_api_response.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_array_of_array_of_number_only.py b/samples/client/petstore/python/test/test_array_of_array_of_number_only.py index b617ed2cd3e..a0223304542 100644 --- a/samples/client/petstore/python/test/test_array_of_array_of_number_only.py +++ b/samples/client/petstore/python/test/test_array_of_array_of_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_array_of_number_only.py b/samples/client/petstore/python/test/test_array_of_number_only.py index 7439364c7b1..1a928bf7d2e 100644 --- a/samples/client/petstore/python/test/test_array_of_number_only.py +++ b/samples/client/petstore/python/test/test_array_of_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_array_test.py b/samples/client/petstore/python/test/test_array_test.py index d7feb2ac8f4..c56b77b77ee 100644 --- a/samples/client/petstore/python/test/test_array_test.py +++ b/samples/client/petstore/python/test/test_array_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_capitalization.py b/samples/client/petstore/python/test/test_capitalization.py index 4ac874e817c..2ae7725b3f0 100644 --- a/samples/client/petstore/python/test/test_capitalization.py +++ b/samples/client/petstore/python/test/test_capitalization.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_cat.py b/samples/client/petstore/python/test/test_cat.py index 370f1081383..5ebd7908d2d 100644 --- a/samples/client/petstore/python/test/test_cat.py +++ b/samples/client/petstore/python/test/test_cat.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_category.py b/samples/client/petstore/python/test/test_category.py index 7a9e40a1f65..6a592521281 100644 --- a/samples/client/petstore/python/test/test_category.py +++ b/samples/client/petstore/python/test/test_category.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_class_model.py b/samples/client/petstore/python/test/test_class_model.py index a42127abf50..12b7fb99402 100644 --- a/samples/client/petstore/python/test/test_class_model.py +++ b/samples/client/petstore/python/test/test_class_model.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_client.py b/samples/client/petstore/python/test/test_client.py index 81df726dbfc..9e18c4310d9 100644 --- a/samples/client/petstore/python/test/test_client.py +++ b/samples/client/petstore/python/test/test_client.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_dog.py b/samples/client/petstore/python/test/test_dog.py index ae13869b99f..dc151f998dd 100644 --- a/samples/client/petstore/python/test/test_dog.py +++ b/samples/client/petstore/python/test/test_dog.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_enum_arrays.py b/samples/client/petstore/python/test/test_enum_arrays.py index 144e48883e5..be572508ef2 100644 --- a/samples/client/petstore/python/test/test_enum_arrays.py +++ b/samples/client/petstore/python/test/test_enum_arrays.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_enum_class.py b/samples/client/petstore/python/test/test_enum_class.py index a47581d2820..57eb14558a7 100644 --- a/samples/client/petstore/python/test/test_enum_class.py +++ b/samples/client/petstore/python/test/test_enum_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_enum_test.py b/samples/client/petstore/python/test/test_enum_test.py index 7487efe9fa1..ecd43afc709 100644 --- a/samples/client/petstore/python/test/test_enum_test.py +++ b/samples/client/petstore/python/test/test_enum_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_fake_api.py b/samples/client/petstore/python/test/test_fake_api.py index 00473d4a13b..fc2cbef35f1 100644 --- a/samples/client/petstore/python/test/test_fake_api.py +++ b/samples/client/petstore/python/test/test_fake_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ @@ -53,6 +52,12 @@ class TestFakeApi(unittest.TestCase): """ pass + def test_test_body_with_query_params(self): + """Test case for test_body_with_query_params + + """ + pass + def test_test_client_model(self): """Test case for test_client_model diff --git a/samples/client/petstore/python/test/test_fake_classname_tags_123_api.py b/samples/client/petstore/python/test/test_fake_classname_tags_123_api.py index 8f40062a929..87cac0b9ef8 100644 --- a/samples/client/petstore/python/test/test_fake_classname_tags_123_api.py +++ b/samples/client/petstore/python/test/test_fake_classname_tags_123_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_format_test.py b/samples/client/petstore/python/test/test_format_test.py index 59809b9f442..46707c77b70 100644 --- a/samples/client/petstore/python/test/test_format_test.py +++ b/samples/client/petstore/python/test/test_format_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_has_only_read_only.py b/samples/client/petstore/python/test/test_has_only_read_only.py index 26d14aef1f8..2dc052a328a 100644 --- a/samples/client/petstore/python/test/test_has_only_read_only.py +++ b/samples/client/petstore/python/test/test_has_only_read_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_list.py b/samples/client/petstore/python/test/test_list.py index c2cca419f37..a538a6b1ad3 100644 --- a/samples/client/petstore/python/test/test_list.py +++ b/samples/client/petstore/python/test/test_list.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_map_test.py b/samples/client/petstore/python/test/test_map_test.py index 155797d9b2d..0ba6481903e 100644 --- a/samples/client/petstore/python/test/test_map_test.py +++ b/samples/client/petstore/python/test/test_map_test.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py index 12a56764080..8893bdaf44e 100644 --- a/samples/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python/test/test_mixed_properties_and_additional_properties_class.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_model200_response.py b/samples/client/petstore/python/test/test_model200_response.py index 0a6576d2952..fab761f4edb 100644 --- a/samples/client/petstore/python/test/test_model200_response.py +++ b/samples/client/petstore/python/test/test_model200_response.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_model_200_response.py b/samples/client/petstore/python/test/test_model_200_response.py deleted file mode 100644 index f577dd42144..00000000000 --- a/samples/client/petstore/python/test/test_model_200_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.model_200_response import Model200Response # noqa: E501 -from petstore_api.rest import ApiException - - -class TestModel200Response(unittest.TestCase): - """Model200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testModel200Response(self): - """Test Model200Response""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.model_200_response.Model200Response() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python/test/test_model_return.py b/samples/client/petstore/python/test/test_model_return.py index 64cf27f63ab..ae3f15ee6b8 100644 --- a/samples/client/petstore/python/test/test_model_return.py +++ b/samples/client/petstore/python/test/test_model_return.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_name.py b/samples/client/petstore/python/test/test_name.py index beba143f39c..d6c72563991 100644 --- a/samples/client/petstore/python/test/test_name.py +++ b/samples/client/petstore/python/test/test_name.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_number_only.py b/samples/client/petstore/python/test/test_number_only.py index f2600c79526..7f6df65c805 100644 --- a/samples/client/petstore/python/test/test_number_only.py +++ b/samples/client/petstore/python/test/test_number_only.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_order.py b/samples/client/petstore/python/test/test_order.py index ed4f8c7d161..3e7d517d5c7 100644 --- a/samples/client/petstore/python/test/test_order.py +++ b/samples/client/petstore/python/test/test_order.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_outer_boolean.py b/samples/client/petstore/python/test/test_outer_boolean.py deleted file mode 100644 index 4a7e446693e..00000000000 --- a/samples/client/petstore/python/test/test_outer_boolean.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_boolean import OuterBoolean # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterBoolean(unittest.TestCase): - """OuterBoolean unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterBoolean(self): - """Test OuterBoolean""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_boolean.OuterBoolean() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python/test/test_outer_composite.py b/samples/client/petstore/python/test/test_outer_composite.py index e444e695fe8..dcb078cd216 100644 --- a/samples/client/petstore/python/test/test_outer_composite.py +++ b/samples/client/petstore/python/test/test_outer_composite.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_outer_enum.py b/samples/client/petstore/python/test/test_outer_enum.py index e3fb15e1b6b..472e36e1682 100644 --- a/samples/client/petstore/python/test/test_outer_enum.py +++ b/samples/client/petstore/python/test/test_outer_enum.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_outer_number.py b/samples/client/petstore/python/test/test_outer_number.py deleted file mode 100644 index da5d3ceee61..00000000000 --- a/samples/client/petstore/python/test/test_outer_number.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_number import OuterNumber # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterNumber(unittest.TestCase): - """OuterNumber unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterNumber(self): - """Test OuterNumber""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_number.OuterNumber() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python/test/test_outer_string.py b/samples/client/petstore/python/test/test_outer_string.py deleted file mode 100644 index 02b4967e3b9..00000000000 --- a/samples/client/petstore/python/test/test_outer_string.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Swagger Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.outer_string import OuterString # noqa: E501 -from petstore_api.rest import ApiException - - -class TestOuterString(unittest.TestCase): - """OuterString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOuterString(self): - """Test OuterString""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.outer_string.OuterString() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python/test/test_pet.py b/samples/client/petstore/python/test/test_pet.py index d8df24f92b1..bc5cc30fac0 100644 --- a/samples/client/petstore/python/test/test_pet.py +++ b/samples/client/petstore/python/test/test_pet.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_pet_api.py b/samples/client/petstore/python/test/test_pet_api.py index 1e2dd1c42b6..ffd3e25c4c6 100644 --- a/samples/client/petstore/python/test/test_pet_api.py +++ b/samples/client/petstore/python/test/test_pet_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_read_only_first.py b/samples/client/petstore/python/test/test_read_only_first.py index 94bf3d127de..2b647b83fc8 100644 --- a/samples/client/petstore/python/test/test_read_only_first.py +++ b/samples/client/petstore/python/test/test_read_only_first.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_special_model_name.py b/samples/client/petstore/python/test/test_special_model_name.py index 002f660cc26..4edfec164f7 100644 --- a/samples/client/petstore/python/test/test_special_model_name.py +++ b/samples/client/petstore/python/test/test_special_model_name.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_store_api.py b/samples/client/petstore/python/test/test_store_api.py index 537c1bc03f1..37bf771d13a 100644 --- a/samples/client/petstore/python/test/test_store_api.py +++ b/samples/client/petstore/python/test/test_store_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_tag.py b/samples/client/petstore/python/test/test_tag.py index e9bc1d471d1..2c3c5157e71 100644 --- a/samples/client/petstore/python/test/test_tag.py +++ b/samples/client/petstore/python/test/test_tag.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_user.py b/samples/client/petstore/python/test/test_user.py index 3575746c00f..ad9386b6908 100644 --- a/samples/client/petstore/python/test/test_user.py +++ b/samples/client/petstore/python/test/test_user.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/test/test_user_api.py b/samples/client/petstore/python/test/test_user_api.py index 4ebd90f95e2..6e8aed4f18c 100644 --- a/samples/client/petstore/python/test/test_user_api.py +++ b/samples/client/petstore/python/test/test_user_api.py @@ -1,13 +1,12 @@ # coding: utf-8 """ - Swagger Petstore + OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 - Contact: apiteam@swagger.io - Generated by: https://github.com/swagger-api/swagger-codegen.git + Generated by: https://openapi-generator.tech """ diff --git a/samples/client/petstore/python/tests/test_api_client.py b/samples/client/petstore/python/tests/test_api_client.py index 1e0a83accb1..a41dbaba9c9 100644 --- a/samples/client/petstore/python/tests/test_api_client.py +++ b/samples/client/petstore/python/tests/test_api_client.py @@ -5,7 +5,7 @@ """ Run the tests. $ pip install nose (optional) -$ cd SwaggerPetstore-python +$ cd OpenAPIetstore-python $ nosetests -v """ diff --git a/samples/client/petstore/python/tests/test_deserialization.py b/samples/client/petstore/python/tests/test_deserialization.py index d7429dea416..5c1540d9945 100644 --- a/samples/client/petstore/python/tests/test_deserialization.py +++ b/samples/client/petstore/python/tests/test_deserialization.py @@ -5,7 +5,7 @@ """ Run the tests. $ pip install nose (optional) -$ cd SwaggerPetstore-python +$ cd OpenAPIPetstore-python $ nosetests -v """ import os diff --git a/samples/client/petstore/python/tests/test_pet_api.py b/samples/client/petstore/python/tests/test_pet_api.py index 4a8a773159a..9db0c2f0f6d 100644 --- a/samples/client/petstore/python/tests/test_pet_api.py +++ b/samples/client/petstore/python/tests/test_pet_api.py @@ -68,7 +68,7 @@ class PetApiTests(unittest.TestCase): self.category.name = "dog" self.tag = petstore_api.Tag() self.tag.id = id_gen() - self.tag.name = "swagger-codegen-python-pet-tag" + self.tag.name = "python-pet-tag" self.pet = petstore_api.Pet(name="hello kity", photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"]) self.pet.id = id_gen() self.pet.status = "sold" @@ -108,13 +108,13 @@ class PetApiTests(unittest.TestCase): body=json.dumps(self.api_client.sanitize_for_serialization(self.pet)), headers={'Content-Type': 'application/json', 'Authorization': 'Bearer ', - 'User-Agent': 'Swagger-Codegen/1.0.0/python'}, + 'User-Agent': 'OpenAPI-Generator/1.0.0/python'}, preload_content=True, timeout=TimeoutWithEqual(total=5)) mock_pool.expect_request('POST', 'http://localhost/v2/pet', body=json.dumps(self.api_client.sanitize_for_serialization(self.pet)), headers={'Content-Type': 'application/json', 'Authorization': 'Bearer ', - 'User-Agent': 'Swagger-Codegen/1.0.0/python'}, + 'User-Agent': 'OpenAPI-Generator/1.0.0/python'}, preload_content=True, timeout=TimeoutWithEqual(connect=1, read=2)) self.pet_api.add_pet(self.pet, _request_timeout=5) diff --git a/samples/client/petstore/python/tests/test_store_api.py b/samples/client/petstore/python/tests/test_store_api.py index 095f5e7b236..1817477aba6 100644 --- a/samples/client/petstore/python/tests/test_store_api.py +++ b/samples/client/petstore/python/tests/test_store_api.py @@ -5,7 +5,7 @@ """ Run the tests. $ pip install nose (optional) -$ cd SwaggerPetstore-python +$ cd OpenAP/Petstore-python $ nosetests -v """ diff --git a/samples/client/petstore/ruby/Gemfile.lock b/samples/client/petstore/ruby/Gemfile.lock index 9ebaef5ad5f..1dc6956be6c 100644 --- a/samples/client/petstore/ruby/Gemfile.lock +++ b/samples/client/petstore/ruby/Gemfile.lock @@ -64,6 +64,3 @@ DEPENDENCIES rspec (~> 3.6, >= 3.6.0) vcr (~> 3.0, >= 3.0.1) webmock (~> 1.24, >= 1.24.3) - -BUNDLED WITH - 1.12.3 diff --git a/samples/client/petstore/ruby/spec/pet_spec.rb b/samples/client/petstore/ruby/spec/pet_spec.rb index 4ccea494b84..728d0e5345a 100644 --- a/samples/client/petstore/ruby/spec/pet_spec.rb +++ b/samples/client/petstore/ruby/spec/pet_spec.rb @@ -79,7 +79,7 @@ describe "Pet" do expect(e.code).to eq(404) expect(e.message).to eq('Not Found') expect(e.response_body).to eq('{"code":1,"type":"error","message":"Pet not found"}') - expect(e.response_headers).to be_a(Hash) + expect(e.response_headers).to include('Content-Type') expect(e.response_headers['Content-Type']).to eq('application/json') end end