diff --git a/bin/utils/ensure-up-to-date b/bin/utils/ensure-up-to-date index 31ccc7edfa..41d911813f 100755 --- a/bin/utils/ensure-up-to-date +++ b/bin/utils/ensure-up-to-date @@ -21,7 +21,7 @@ declare -a scripts=("./bin/openapi3/ruby-client-petstore.sh" "./bin/kotlin-client-threetenbp.sh" "./bin/kotlin-server-petstore.sh" "./bin/mysql-schema-petstore.sh" -"./bin/python-petstore.sh" +"./bin/python-petstore-all.sh" "./bin/openapi3/python-petstore.sh" "./bin/php-petstore.sh" "./bin/php-silex-petstore-server.sh" diff --git a/bin/utils/test-fake-petstore-for-all.sh b/bin/utils/test-fake-petstore-for-all.sh index b9e1cc47f1..7e0a7e718b 100755 --- a/bin/utils/test-fake-petstore-for-all.sh +++ b/bin/utils/test-fake-petstore-for-all.sh @@ -18,11 +18,11 @@ do exit 1 fi - if eval java -jar ${executable} generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ${GENERATOR} -o /tmp/openapi-generator-test-fake-petstore/3.0/${GENERATOR} > /dev/null 2>&1; then + if eval java -jar ${executable} generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ${GENERATOR} -o /tmp/openapi-generator-test-fake-petstore/3.0/${GENERATOR} > /dev/null 2>&1; then echo "[OAS 3.0] Executed ${GENERATOR} successfully!" else echo "ERROR: Failed to run ${GENERATOR}" - echo "java -jar ${executable} generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ${GENERATOR} -o /tmp/openapi-generator-test-fake-petstore/3.0/${GENERATOR}" + echo "java -jar ${executable} generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ${GENERATOR} -o /tmp/openapi-generator-test-fake-petstore/3.0/${GENERATOR}" exit 1 fi done diff --git a/samples/client/petstore/python-asyncio/docs/AnimalFarm.md b/samples/client/petstore/python-asyncio/docs/AnimalFarm.md deleted file mode 100644 index df6bab21da..0000000000 --- a/samples/client/petstore/python-asyncio/docs/AnimalFarm.md +++ /dev/null @@ -1,9 +0,0 @@ -# AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-asyncio/docs/OuterBoolean.md b/samples/client/petstore/python-asyncio/docs/OuterBoolean.md deleted file mode 100644 index 8b24339947..0000000000 --- a/samples/client/petstore/python-asyncio/docs/OuterBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterBoolean - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-asyncio/docs/OuterNumber.md b/samples/client/petstore/python-asyncio/docs/OuterNumber.md deleted file mode 100644 index 8aa37f329b..0000000000 --- a/samples/client/petstore/python-asyncio/docs/OuterNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterNumber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-asyncio/docs/OuterString.md b/samples/client/petstore/python-asyncio/docs/OuterString.md deleted file mode 100644 index 9ccaadaf98..0000000000 --- a/samples/client/petstore/python-asyncio/docs/OuterString.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-asyncio/docs/StringBooleanMap.md b/samples/client/petstore/python-asyncio/docs/StringBooleanMap.md deleted file mode 100644 index 7abf11ec68..0000000000 --- a/samples/client/petstore/python-asyncio/docs/StringBooleanMap.md +++ /dev/null @@ -1,9 +0,0 @@ -# StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py b/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py deleted file mode 100644 index 4894e5530a..0000000000 --- a/samples/client/petstore/python-asyncio/petstore_api/models/animal_farm.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AnimalFarm(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AnimalFarm - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, AnimalFarm): - 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/string_boolean_map.py b/samples/client/petstore/python-asyncio/petstore_api/models/string_boolean_map.py deleted file mode 100644 index e837adf619..0000000000 --- a/samples/client/petstore/python-asyncio/petstore_api/models/string_boolean_map.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class StringBooleanMap(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """StringBooleanMap - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, StringBooleanMap): - 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/test/test_animal_farm.py b/samples/client/petstore/python-asyncio/test/test_animal_farm.py deleted file mode 100644 index 5c2c55fbd0..0000000000 --- a/samples/client/petstore/python-asyncio/test/test_animal_farm.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec 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 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.animal_farm import AnimalFarm # noqa: E501 -from petstore_api.rest import ApiException - - -class TestAnimalFarm(unittest.TestCase): - """AnimalFarm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnimalFarm(self): - """Test AnimalFarm""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.animal_farm.AnimalFarm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-asyncio/test/test_string_boolean_map.py b/samples/client/petstore/python-asyncio/test/test_string_boolean_map.py deleted file mode 100644 index 47dd8529a1..0000000000 --- a/samples/client/petstore/python-asyncio/test/test_string_boolean_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec 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 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.string_boolean_map import StringBooleanMap # noqa: E501 -from petstore_api.rest import ApiException - - -class TestStringBooleanMap(unittest.TestCase): - """StringBooleanMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStringBooleanMap(self): - """Test StringBooleanMap""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.string_boolean_map.StringBooleanMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-tornado/docs/AnimalFarm.md b/samples/client/petstore/python-tornado/docs/AnimalFarm.md deleted file mode 100644 index df6bab21da..0000000000 --- a/samples/client/petstore/python-tornado/docs/AnimalFarm.md +++ /dev/null @@ -1,9 +0,0 @@ -# AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-tornado/docs/OuterBoolean.md b/samples/client/petstore/python-tornado/docs/OuterBoolean.md deleted file mode 100644 index 8b24339947..0000000000 --- a/samples/client/petstore/python-tornado/docs/OuterBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterBoolean - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-tornado/docs/OuterNumber.md b/samples/client/petstore/python-tornado/docs/OuterNumber.md deleted file mode 100644 index 8aa37f329b..0000000000 --- a/samples/client/petstore/python-tornado/docs/OuterNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterNumber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-tornado/docs/OuterString.md b/samples/client/petstore/python-tornado/docs/OuterString.md deleted file mode 100644 index 9ccaadaf98..0000000000 --- a/samples/client/petstore/python-tornado/docs/OuterString.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-tornado/docs/StringBooleanMap.md b/samples/client/petstore/python-tornado/docs/StringBooleanMap.md deleted file mode 100644 index 7abf11ec68..0000000000 --- a/samples/client/petstore/python-tornado/docs/StringBooleanMap.md +++ /dev/null @@ -1,9 +0,0 @@ -# StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py b/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py deleted file mode 100644 index 4894e5530a..0000000000 --- a/samples/client/petstore/python-tornado/petstore_api/models/animal_farm.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AnimalFarm(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AnimalFarm - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, AnimalFarm): - 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/string_boolean_map.py b/samples/client/petstore/python-tornado/petstore_api/models/string_boolean_map.py deleted file mode 100644 index e837adf619..0000000000 --- a/samples/client/petstore/python-tornado/petstore_api/models/string_boolean_map.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class StringBooleanMap(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """StringBooleanMap - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, StringBooleanMap): - 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/test/test_animal_farm.py b/samples/client/petstore/python-tornado/test/test_animal_farm.py deleted file mode 100644 index 5c2c55fbd0..0000000000 --- a/samples/client/petstore/python-tornado/test/test_animal_farm.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec 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 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.animal_farm import AnimalFarm # noqa: E501 -from petstore_api.rest import ApiException - - -class TestAnimalFarm(unittest.TestCase): - """AnimalFarm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnimalFarm(self): - """Test AnimalFarm""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.animal_farm.AnimalFarm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python-tornado/test/test_string_boolean_map.py b/samples/client/petstore/python-tornado/test/test_string_boolean_map.py deleted file mode 100644 index 47dd8529a1..0000000000 --- a/samples/client/petstore/python-tornado/test/test_string_boolean_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec 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 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.string_boolean_map import StringBooleanMap # noqa: E501 -from petstore_api.rest import ApiException - - -class TestStringBooleanMap(unittest.TestCase): - """StringBooleanMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStringBooleanMap(self): - """Test StringBooleanMap""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.string_boolean_map.StringBooleanMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python/docs/AnimalFarm.md b/samples/client/petstore/python/docs/AnimalFarm.md deleted file mode 100644 index df6bab21da..0000000000 --- a/samples/client/petstore/python/docs/AnimalFarm.md +++ /dev/null @@ -1,9 +0,0 @@ -# AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python/docs/InlineResponse200.md b/samples/client/petstore/python/docs/InlineResponse200.md deleted file mode 100644 index ec171d3a5d..0000000000 --- a/samples/client/petstore/python/docs/InlineResponse200.md +++ /dev/null @@ -1,15 +0,0 @@ -# InlineResponse200 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | [**list[Tag]**](Tag.md) | | [optional] -**id** | **int** | | -**category** | **object** | | [optional] -**status** | **str** | pet status in the store | [optional] -**name** | **str** | | [optional] -**photo_urls** | **list[str]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python/docs/OuterBoolean.md b/samples/client/petstore/python/docs/OuterBoolean.md deleted file mode 100644 index 8b24339947..0000000000 --- a/samples/client/petstore/python/docs/OuterBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterBoolean - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python/docs/OuterNumber.md b/samples/client/petstore/python/docs/OuterNumber.md deleted file mode 100644 index 8aa37f329b..0000000000 --- a/samples/client/petstore/python/docs/OuterNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterNumber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python/docs/OuterString.md b/samples/client/petstore/python/docs/OuterString.md deleted file mode 100644 index 9ccaadaf98..0000000000 --- a/samples/client/petstore/python/docs/OuterString.md +++ /dev/null @@ -1,9 +0,0 @@ -# OuterString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python/docs/StringBooleanMap.md b/samples/client/petstore/python/docs/StringBooleanMap.md deleted file mode 100644 index 7abf11ec68..0000000000 --- a/samples/client/petstore/python/docs/StringBooleanMap.md +++ /dev/null @@ -1,9 +0,0 @@ -# StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/client/petstore/python/petstore_api/models/animal_farm.py b/samples/client/petstore/python/petstore_api/models/animal_farm.py deleted file mode 100644 index 4894e5530a..0000000000 --- a/samples/client/petstore/python/petstore_api/models/animal_farm.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AnimalFarm(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AnimalFarm - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, AnimalFarm): - 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/string_boolean_map.py b/samples/client/petstore/python/petstore_api/models/string_boolean_map.py deleted file mode 100644 index e837adf619..0000000000 --- a/samples/client/petstore/python/petstore_api/models/string_boolean_map.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 - - OpenAPI spec version: 1.0.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class StringBooleanMap(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """StringBooleanMap - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, StringBooleanMap): - 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/test/test_animal_farm.py b/samples/client/petstore/python/test/test_animal_farm.py deleted file mode 100644 index 5c2c55fbd0..0000000000 --- a/samples/client/petstore/python/test/test_animal_farm.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec 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 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.animal_farm import AnimalFarm # noqa: E501 -from petstore_api.rest import ApiException - - -class TestAnimalFarm(unittest.TestCase): - """AnimalFarm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnimalFarm(self): - """Test AnimalFarm""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.animal_farm.AnimalFarm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/samples/client/petstore/python/test/test_string_boolean_map.py b/samples/client/petstore/python/test/test_string_boolean_map.py deleted file mode 100644 index 47dd8529a1..0000000000 --- a/samples/client/petstore/python/test/test_string_boolean_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - OpenAPI Petstore - - This spec 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 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import petstore_api -from petstore_api.models.string_boolean_map import StringBooleanMap # noqa: E501 -from petstore_api.rest import ApiException - - -class TestStringBooleanMap(unittest.TestCase): - """StringBooleanMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStringBooleanMap(self): - """Test StringBooleanMap""" - # FIXME: construct object with mandatory attributes with example values - # model = petstore_api.models.string_boolean_map.StringBooleanMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main()