diff --git a/modules/openapi-generator/src/main/resources/python/model_templates/classvars.mustache b/modules/openapi-generator/src/main/resources/python/model_templates/classvars.mustache index 0e5ff25b97fb..c34e18e5949a 100644 --- a/modules/openapi-generator/src/main/resources/python/model_templates/classvars.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_templates/classvars.mustache @@ -1,3 +1,16 @@ +{{#isEnum}} + + """ + allowed enum values + """ + +{{#allowableValues}} +{{#enumVars}} + {{name}} = {{{value}}}, +{{/enumVars}} +{{/allowableValues}} + +{{/isEnum}} allowed_values = { {{#isEnum}} ('value',): { @@ -135,4 +148,4 @@ } if not val: return None - return {'{{{discriminatorName}}}': val}{{/discriminator}} \ No newline at end of file + return {'{{{discriminatorName}}}': val}{{/discriminator}} diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_any_type.py b/samples/client/petstore/python/petstore_api/model/additional_properties_any_type.py index 34ae88833fbe..217a64bc459a 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_any_type.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_any_type.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_array.py b/samples/client/petstore/python/petstore_api/model/additional_properties_array.py index 55f44f411c27..89a35ad34077 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_array.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_array.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_boolean.py b/samples/client/petstore/python/petstore_api/model/additional_properties_boolean.py index b9c5c258e3cc..474c655b09e6 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_boolean.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_boolean.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_class.py b/samples/client/petstore/python/petstore_api/model/additional_properties_class.py index 7e4d3d93c5f5..7a878d7f4e3f 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_class.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_class.py @@ -99,6 +99,7 @@ def discriminator(): return None + attribute_map = { 'map_string': 'map_string', # noqa: E501 'map_number': 'map_number', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_integer.py b/samples/client/petstore/python/petstore_api/model/additional_properties_integer.py index f6f80f89c7ad..1bebcebaa763 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_integer.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_integer.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_number.py b/samples/client/petstore/python/petstore_api/model/additional_properties_number.py index 6c094699462a..1d76c6de7c74 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_number.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_number.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_object.py b/samples/client/petstore/python/petstore_api/model/additional_properties_object.py index 1fa671aff9b2..19789231deba 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_object.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_object.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/additional_properties_string.py b/samples/client/petstore/python/petstore_api/model/additional_properties_string.py index 0afa8a9e6376..e76cb5a8d97f 100644 --- a/samples/client/petstore/python/petstore_api/model/additional_properties_string.py +++ b/samples/client/petstore/python/petstore_api/model/additional_properties_string.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/animal.py b/samples/client/petstore/python/petstore_api/model/animal.py index fda6c283ebdc..24aa562b7a7f 100644 --- a/samples/client/petstore/python/petstore_api/model/animal.py +++ b/samples/client/petstore/python/petstore_api/model/animal.py @@ -104,6 +104,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'color': 'color', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/animal_farm.py b/samples/client/petstore/python/petstore_api/model/animal_farm.py index 042a8274ee7a..69dd68c1e67d 100644 --- a/samples/client/petstore/python/petstore_api/model/animal_farm.py +++ b/samples/client/petstore/python/petstore_api/model/animal_farm.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python/petstore_api/model/api_response.py b/samples/client/petstore/python/petstore_api/model/api_response.py index d1f3b363bef5..6d2f077ecc34 100644 --- a/samples/client/petstore/python/petstore_api/model/api_response.py +++ b/samples/client/petstore/python/petstore_api/model/api_response.py @@ -91,6 +91,7 @@ def discriminator(): return None + attribute_map = { 'code': 'code', # noqa: E501 'type': 'type', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py b/samples/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py index 16d9bda29f1f..700a26a6451c 100644 --- a/samples/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py +++ b/samples/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'array_array_number': 'ArrayArrayNumber', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/array_of_number_only.py b/samples/client/petstore/python/petstore_api/model/array_of_number_only.py index 0e44ab61aff5..6b57c388810d 100644 --- a/samples/client/petstore/python/petstore_api/model/array_of_number_only.py +++ b/samples/client/petstore/python/petstore_api/model/array_of_number_only.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'array_number': 'ArrayNumber', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/array_test.py b/samples/client/petstore/python/petstore_api/model/array_test.py index 64c180d11bc5..2d1cf478b82b 100644 --- a/samples/client/petstore/python/petstore_api/model/array_test.py +++ b/samples/client/petstore/python/petstore_api/model/array_test.py @@ -97,6 +97,7 @@ def discriminator(): return None + attribute_map = { 'array_of_string': 'array_of_string', # noqa: E501 'array_array_of_integer': 'array_array_of_integer', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/capitalization.py b/samples/client/petstore/python/petstore_api/model/capitalization.py index 2f1323481dca..88cfa767e696 100644 --- a/samples/client/petstore/python/petstore_api/model/capitalization.py +++ b/samples/client/petstore/python/petstore_api/model/capitalization.py @@ -94,6 +94,7 @@ def discriminator(): return None + attribute_map = { 'small_camel': 'smallCamel', # noqa: E501 'capital_camel': 'CapitalCamel', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/cat.py b/samples/client/petstore/python/petstore_api/model/cat.py index 9a42057a87e1..d6b6944da122 100644 --- a/samples/client/petstore/python/petstore_api/model/cat.py +++ b/samples/client/petstore/python/petstore_api/model/cat.py @@ -102,6 +102,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'declawed': 'declawed', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/cat_all_of.py b/samples/client/petstore/python/petstore_api/model/cat_all_of.py index a5bef948f72b..60a3f43fc388 100644 --- a/samples/client/petstore/python/petstore_api/model/cat_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/cat_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'declawed': 'declawed', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/category.py b/samples/client/petstore/python/petstore_api/model/category.py index b40329c9424d..0242d2e61d70 100644 --- a/samples/client/petstore/python/petstore_api/model/category.py +++ b/samples/client/petstore/python/petstore_api/model/category.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'id': 'id', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/child.py b/samples/client/petstore/python/petstore_api/model/child.py index b63ce3fce770..029a205d1db5 100644 --- a/samples/client/petstore/python/petstore_api/model/child.py +++ b/samples/client/petstore/python/petstore_api/model/child.py @@ -99,6 +99,7 @@ def discriminator(): return None + attribute_map = { 'radio_waves': 'radioWaves', # noqa: E501 'tele_vision': 'teleVision', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/child_all_of.py b/samples/client/petstore/python/petstore_api/model/child_all_of.py index e38d28f52d1b..084f8716c757 100644 --- a/samples/client/petstore/python/petstore_api/model/child_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/child_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'inter_net': 'interNet', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/child_cat.py b/samples/client/petstore/python/petstore_api/model/child_cat.py index 355321a2c4ca..b319075ffb42 100644 --- a/samples/client/petstore/python/petstore_api/model/child_cat.py +++ b/samples/client/petstore/python/petstore_api/model/child_cat.py @@ -101,6 +101,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/child_cat_all_of.py b/samples/client/petstore/python/petstore_api/model/child_cat_all_of.py index 48b725d7c3c6..1bd427da6395 100644 --- a/samples/client/petstore/python/petstore_api/model/child_cat_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/child_cat_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/child_dog.py b/samples/client/petstore/python/petstore_api/model/child_dog.py index ba163cc764ce..dd90f7b7e5fe 100644 --- a/samples/client/petstore/python/petstore_api/model/child_dog.py +++ b/samples/client/petstore/python/petstore_api/model/child_dog.py @@ -101,6 +101,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'bark': 'bark', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/child_dog_all_of.py b/samples/client/petstore/python/petstore_api/model/child_dog_all_of.py index 40d4f048f87e..425fb15b9502 100644 --- a/samples/client/petstore/python/petstore_api/model/child_dog_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/child_dog_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'bark': 'bark', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/child_lizard.py b/samples/client/petstore/python/petstore_api/model/child_lizard.py index 1a8867869557..279f485af58e 100644 --- a/samples/client/petstore/python/petstore_api/model/child_lizard.py +++ b/samples/client/petstore/python/petstore_api/model/child_lizard.py @@ -101,6 +101,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'loves_rocks': 'lovesRocks', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/child_lizard_all_of.py b/samples/client/petstore/python/petstore_api/model/child_lizard_all_of.py index b0e9771c5800..73da061e9178 100644 --- a/samples/client/petstore/python/petstore_api/model/child_lizard_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/child_lizard_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'loves_rocks': 'lovesRocks', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/class_model.py b/samples/client/petstore/python/petstore_api/model/class_model.py index a3f2b58f87f3..48b04d0edd7d 100644 --- a/samples/client/petstore/python/petstore_api/model/class_model.py +++ b/samples/client/petstore/python/petstore_api/model/class_model.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_class': '_class', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/client.py b/samples/client/petstore/python/petstore_api/model/client.py index 3dca32f7926b..4075db6ccfa8 100644 --- a/samples/client/petstore/python/petstore_api/model/client.py +++ b/samples/client/petstore/python/petstore_api/model/client.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'client': 'client', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/dog.py b/samples/client/petstore/python/petstore_api/model/dog.py index b6eed138105c..d5259eb1cf7c 100644 --- a/samples/client/petstore/python/petstore_api/model/dog.py +++ b/samples/client/petstore/python/petstore_api/model/dog.py @@ -102,6 +102,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'breed': 'breed', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/dog_all_of.py b/samples/client/petstore/python/petstore_api/model/dog_all_of.py index dbc36cb2c8f3..2be5d0d5ee8b 100644 --- a/samples/client/petstore/python/petstore_api/model/dog_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/dog_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'breed': 'breed', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/enum_arrays.py b/samples/client/petstore/python/petstore_api/model/enum_arrays.py index da42763d9c32..f10c6c199896 100644 --- a/samples/client/petstore/python/petstore_api/model/enum_arrays.py +++ b/samples/client/petstore/python/petstore_api/model/enum_arrays.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'just_symbol': 'just_symbol', # noqa: E501 'array_enum': 'array_enum', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/enum_class.py b/samples/client/petstore/python/petstore_api/model/enum_class.py index b0ed3d8966d9..05520466ffde 100644 --- a/samples/client/petstore/python/petstore_api/model/enum_class.py +++ b/samples/client/petstore/python/petstore_api/model/enum_class.py @@ -50,6 +50,15 @@ class EnumClass(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + _ABC = "_abc", + -EFG = "-efg", + (XYZ) = "(xyz)", + allowed_values = { ('value',): { '_ABC': "_abc", @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python/petstore_api/model/enum_test.py b/samples/client/petstore/python/petstore_api/model/enum_test.py index a3f47184d1a0..ca20e94756e2 100644 --- a/samples/client/petstore/python/petstore_api/model/enum_test.py +++ b/samples/client/petstore/python/petstore_api/model/enum_test.py @@ -117,6 +117,7 @@ def discriminator(): return None + attribute_map = { 'enum_string_required': 'enum_string_required', # noqa: E501 'enum_string': 'enum_string', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/file.py b/samples/client/petstore/python/petstore_api/model/file.py index 849f5727dc9f..e50d4f5df0c7 100644 --- a/samples/client/petstore/python/petstore_api/model/file.py +++ b/samples/client/petstore/python/petstore_api/model/file.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'source_uri': 'sourceURI', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/file_schema_test_class.py b/samples/client/petstore/python/petstore_api/model/file_schema_test_class.py index f7e154e47b7c..aa508b7b2e47 100644 --- a/samples/client/petstore/python/petstore_api/model/file_schema_test_class.py +++ b/samples/client/petstore/python/petstore_api/model/file_schema_test_class.py @@ -96,6 +96,7 @@ def discriminator(): return None + attribute_map = { 'file': 'file', # noqa: E501 'files': 'files', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/format_test.py b/samples/client/petstore/python/petstore_api/model/format_test.py index 1d3ef5f76b40..48781dbc5c93 100644 --- a/samples/client/petstore/python/petstore_api/model/format_test.py +++ b/samples/client/petstore/python/petstore_api/model/format_test.py @@ -136,6 +136,7 @@ def discriminator(): return None + attribute_map = { 'number': 'number', # noqa: E501 'byte': 'byte', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/grandparent.py b/samples/client/petstore/python/petstore_api/model/grandparent.py index b92e3acdcf39..3fbd6fba5b23 100644 --- a/samples/client/petstore/python/petstore_api/model/grandparent.py +++ b/samples/client/petstore/python/petstore_api/model/grandparent.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'radio_waves': 'radioWaves', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/grandparent_animal.py b/samples/client/petstore/python/petstore_api/model/grandparent_animal.py index fd77a46211fe..083b51bc49bd 100644 --- a/samples/client/petstore/python/petstore_api/model/grandparent_animal.py +++ b/samples/client/petstore/python/petstore_api/model/grandparent_animal.py @@ -109,6 +109,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/has_only_read_only.py b/samples/client/petstore/python/petstore_api/model/has_only_read_only.py index 33d1c15b58d9..b00b74e9bd83 100644 --- a/samples/client/petstore/python/petstore_api/model/has_only_read_only.py +++ b/samples/client/petstore/python/petstore_api/model/has_only_read_only.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 'foo': 'foo', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/list.py b/samples/client/petstore/python/petstore_api/model/list.py index 4b71d9deec05..a96784a2da23 100644 --- a/samples/client/petstore/python/petstore_api/model/list.py +++ b/samples/client/petstore/python/petstore_api/model/list.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_123_list': '123-list', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/map_test.py b/samples/client/petstore/python/petstore_api/model/map_test.py index 39c3b180e88c..87793fc89f8b 100644 --- a/samples/client/petstore/python/petstore_api/model/map_test.py +++ b/samples/client/petstore/python/petstore_api/model/map_test.py @@ -102,6 +102,7 @@ def discriminator(): return None + attribute_map = { 'map_map_of_string': 'map_map_of_string', # noqa: E501 'map_of_enum_string': 'map_of_enum_string', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py index f46cd0b89726..0d23b0ef70b9 100644 --- a/samples/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py @@ -97,6 +97,7 @@ def discriminator(): return None + attribute_map = { 'uuid': 'uuid', # noqa: E501 'date_time': 'dateTime', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/model200_response.py b/samples/client/petstore/python/petstore_api/model/model200_response.py index 41a8dee5fdf2..2d1fd2018630 100644 --- a/samples/client/petstore/python/petstore_api/model/model200_response.py +++ b/samples/client/petstore/python/petstore_api/model/model200_response.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 '_class': 'class', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/model_return.py b/samples/client/petstore/python/petstore_api/model/model_return.py index f3720b05246f..ae2a7499e5a2 100644 --- a/samples/client/petstore/python/petstore_api/model/model_return.py +++ b/samples/client/petstore/python/petstore_api/model/model_return.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_return': 'return', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/name.py b/samples/client/petstore/python/petstore_api/model/name.py index d46618c88a14..b4d9cd73af0a 100644 --- a/samples/client/petstore/python/petstore_api/model/name.py +++ b/samples/client/petstore/python/petstore_api/model/name.py @@ -92,6 +92,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'snake_case': 'snake_case', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/number_only.py b/samples/client/petstore/python/petstore_api/model/number_only.py index a96d91650569..36c56b136417 100644 --- a/samples/client/petstore/python/petstore_api/model/number_only.py +++ b/samples/client/petstore/python/petstore_api/model/number_only.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'just_number': 'JustNumber', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/number_with_validations.py b/samples/client/petstore/python/petstore_api/model/number_with_validations.py index 5d66fec5ec67..bb59c502f9d8 100644 --- a/samples/client/petstore/python/petstore_api/model/number_with_validations.py +++ b/samples/client/petstore/python/petstore_api/model/number_with_validations.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python/petstore_api/model/object_model_with_ref_props.py b/samples/client/petstore/python/petstore_api/model/object_model_with_ref_props.py index 2ef48316f430..8b5131876f9f 100644 --- a/samples/client/petstore/python/petstore_api/model/object_model_with_ref_props.py +++ b/samples/client/petstore/python/petstore_api/model/object_model_with_ref_props.py @@ -97,6 +97,7 @@ def discriminator(): return None + attribute_map = { 'my_number': 'my_number', # noqa: E501 'my_string': 'my_string', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/order.py b/samples/client/petstore/python/petstore_api/model/order.py index eeefff1513f6..6a979c6fed80 100644 --- a/samples/client/petstore/python/petstore_api/model/order.py +++ b/samples/client/petstore/python/petstore_api/model/order.py @@ -99,6 +99,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'pet_id': 'petId', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/parent.py b/samples/client/petstore/python/petstore_api/model/parent.py index de116a11c76a..3fe1e19f97c1 100644 --- a/samples/client/petstore/python/petstore_api/model/parent.py +++ b/samples/client/petstore/python/petstore_api/model/parent.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'radio_waves': 'radioWaves', # noqa: E501 'tele_vision': 'teleVision', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/parent_all_of.py b/samples/client/petstore/python/petstore_api/model/parent_all_of.py index 602e3f610a0a..3a66ea231d72 100644 --- a/samples/client/petstore/python/petstore_api/model/parent_all_of.py +++ b/samples/client/petstore/python/petstore_api/model/parent_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'tele_vision': 'teleVision', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/parent_pet.py b/samples/client/petstore/python/petstore_api/model/parent_pet.py index df59bb60ed36..2bb214476048 100644 --- a/samples/client/petstore/python/petstore_api/model/parent_pet.py +++ b/samples/client/petstore/python/petstore_api/model/parent_pet.py @@ -108,6 +108,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/pet.py b/samples/client/petstore/python/petstore_api/model/pet.py index 8946f6d4bea3..26085642671a 100644 --- a/samples/client/petstore/python/petstore_api/model/pet.py +++ b/samples/client/petstore/python/petstore_api/model/pet.py @@ -107,6 +107,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'photo_urls': 'photoUrls', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/player.py b/samples/client/petstore/python/petstore_api/model/player.py index 50ab531029b8..f420591a36eb 100644 --- a/samples/client/petstore/python/petstore_api/model/player.py +++ b/samples/client/petstore/python/petstore_api/model/player.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'enemy_player': 'enemyPlayer', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/read_only_first.py b/samples/client/petstore/python/petstore_api/model/read_only_first.py index 38cb5e2634f6..7ef9cb8467e3 100644 --- a/samples/client/petstore/python/petstore_api/model/read_only_first.py +++ b/samples/client/petstore/python/petstore_api/model/read_only_first.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 'baz': 'baz', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/special_model_name.py b/samples/client/petstore/python/petstore_api/model/special_model_name.py index cc2e49f6bcb0..e00c0b18a998 100644 --- a/samples/client/petstore/python/petstore_api/model/special_model_name.py +++ b/samples/client/petstore/python/petstore_api/model/special_model_name.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'special_property_name': '$special[property.name]', # noqa: E501 } diff --git a/samples/client/petstore/python/petstore_api/model/string_boolean_map.py b/samples/client/petstore/python/petstore_api/model/string_boolean_map.py index 05f8527fec1e..5e8e8fc0391a 100644 --- a/samples/client/petstore/python/petstore_api/model/string_boolean_map.py +++ b/samples/client/petstore/python/petstore_api/model/string_boolean_map.py @@ -88,6 +88,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/client/petstore/python/petstore_api/model/string_enum.py b/samples/client/petstore/python/petstore_api/model/string_enum.py index 2397dd59fc95..80047aa84c26 100644 --- a/samples/client/petstore/python/petstore_api/model/string_enum.py +++ b/samples/client/petstore/python/petstore_api/model/string_enum.py @@ -50,6 +50,15 @@ class StringEnum(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + PLACED = "placed", + APPROVED = "approved", + DELIVERED = "delivered", + allowed_values = { ('value',): { 'PLACED': "placed", @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python/petstore_api/model/tag.py b/samples/client/petstore/python/petstore_api/model/tag.py index 7db3cee0baaf..88a6d124d0e0 100644 --- a/samples/client/petstore/python/petstore_api/model/tag.py +++ b/samples/client/petstore/python/petstore_api/model/tag.py @@ -91,6 +91,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/type_holder_default.py b/samples/client/petstore/python/petstore_api/model/type_holder_default.py index be884db9d136..39f0dcc31a43 100644 --- a/samples/client/petstore/python/petstore_api/model/type_holder_default.py +++ b/samples/client/petstore/python/petstore_api/model/type_holder_default.py @@ -95,6 +95,7 @@ def discriminator(): return None + attribute_map = { 'string_item': 'string_item', # noqa: E501 'number_item': 'number_item', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/type_holder_example.py b/samples/client/petstore/python/petstore_api/model/type_holder_example.py index a0836e32d3f3..2ddb93cb5f1f 100644 --- a/samples/client/petstore/python/petstore_api/model/type_holder_example.py +++ b/samples/client/petstore/python/petstore_api/model/type_holder_example.py @@ -102,6 +102,7 @@ def discriminator(): return None + attribute_map = { 'string_item': 'string_item', # noqa: E501 'number_item': 'number_item', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/user.py b/samples/client/petstore/python/petstore_api/model/user.py index 9c5bc4dfd412..f3a294e8972e 100644 --- a/samples/client/petstore/python/petstore_api/model/user.py +++ b/samples/client/petstore/python/petstore_api/model/user.py @@ -96,6 +96,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'username': 'username', # noqa: E501 diff --git a/samples/client/petstore/python/petstore_api/model/xml_item.py b/samples/client/petstore/python/petstore_api/model/xml_item.py index 060ed03809c6..29ac931ad86d 100644 --- a/samples/client/petstore/python/petstore_api/model/xml_item.py +++ b/samples/client/petstore/python/petstore_api/model/xml_item.py @@ -117,6 +117,7 @@ def discriminator(): return None + attribute_map = { 'attribute_string': 'attribute_string', # noqa: E501 'attribute_number': 'attribute_number', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_any_type.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_any_type.py index 34ae88833fbe..217a64bc459a 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_any_type.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_any_type.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_array.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_array.py index 55f44f411c27..89a35ad34077 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_array.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_array.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_boolean.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_boolean.py index b9c5c258e3cc..474c655b09e6 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_boolean.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_boolean.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_class.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_class.py index 5a38128ad89e..f1b45c428034 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_class.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_class.py @@ -93,6 +93,7 @@ def discriminator(): return None + attribute_map = { 'map_string': 'map_string', # noqa: E501 'map_number': 'map_number', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_integer.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_integer.py index f6f80f89c7ad..1bebcebaa763 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_integer.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_integer.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_number.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_number.py index 6c094699462a..1d76c6de7c74 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_number.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_number.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_object.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_object.py index 1fa671aff9b2..19789231deba 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_object.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_object.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_string.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_string.py index 0afa8a9e6376..e76cb5a8d97f 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_string.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/additional_properties_string.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal.py index d1a9e4afbb06..dc9aeb4fa5b4 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal.py @@ -97,6 +97,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'color': 'color', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal_farm.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal_farm.py index 042a8274ee7a..69dd68c1e67d 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal_farm.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/animal_farm.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/api_response.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/api_response.py index 5abc32eafe2a..a30850b53465 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/api_response.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/api_response.py @@ -85,6 +85,7 @@ def discriminator(): return None + attribute_map = { 'code': 'code', # noqa: E501 'type': 'type', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_array_of_number_only.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_array_of_number_only.py index 905860719151..e8a2810f6ca0 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_array_of_number_only.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_array_of_number_only.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'array_array_number': 'ArrayArrayNumber', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_number_only.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_number_only.py index e343a727d6e1..756f6c25bc45 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_number_only.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_of_number_only.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'array_number': 'ArrayNumber', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_test.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_test.py index 13649acbe327..4ca6d8fb59a1 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_test.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_test.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'array_of_string': 'array_of_string', # noqa: E501 'array_array_of_integer': 'array_array_of_integer', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/capitalization.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/capitalization.py index 75a354d29595..0e0449d4dc1d 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/capitalization.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/capitalization.py @@ -88,6 +88,7 @@ def discriminator(): return None + attribute_map = { 'small_camel': 'smallCamel', # noqa: E501 'capital_camel': 'CapitalCamel', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py index dd757730af17..d4541c0f2c55 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py @@ -95,6 +95,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'declawed': 'declawed', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat_all_of.py index 5ed2c9cdf280..7f007de57aea 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'declawed': 'declawed', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/category.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/category.py index cf8a13849754..964385c71a39 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/category.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/category.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'id': 'id', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py index 657121c1a91a..c73d186b9487 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py @@ -92,6 +92,7 @@ def discriminator(): return None + attribute_map = { 'radio_waves': 'radioWaves', # noqa: E501 'tele_vision': 'teleVision', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_all_of.py index e3f8db2e199a..3ce3f1112a7b 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'inter_net': 'interNet', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py index a0f68d481fce..432c2bac1c2d 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py @@ -94,6 +94,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat_all_of.py index ceacfbcd7b15..a4e961c68adf 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py index 55c39ff65187..843eed46b7ac 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py @@ -94,6 +94,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'bark': 'bark', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog_all_of.py index 41c87c20618b..ed116bdd4ce4 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'bark': 'bark', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py index e1f30dcb774f..02bc1627bf71 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py @@ -94,6 +94,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'loves_rocks': 'lovesRocks', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard_all_of.py index f88016d08793..e0087cbf78fd 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'loves_rocks': 'lovesRocks', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/class_model.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/class_model.py index 0ecc844f84c3..402066aa7b5e 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/class_model.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/class_model.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { '_class': '_class', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/client.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/client.py index 2b4ac4b91a82..c3c872b1bc15 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/client.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/client.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'client': 'client', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py index d4a4e0192f60..5a45f07a501d 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py @@ -95,6 +95,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'breed': 'breed', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog_all_of.py index cdc633dc66ff..c1a2e0e7748e 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'breed': 'breed', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_arrays.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_arrays.py index 39fe0ffb838c..ab0619ccf0b8 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_arrays.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_arrays.py @@ -92,6 +92,7 @@ def discriminator(): return None + attribute_map = { 'just_symbol': 'just_symbol', # noqa: E501 'array_enum': 'array_enum', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_class.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_class.py index b0ed3d8966d9..05520466ffde 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_class.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_class.py @@ -50,6 +50,15 @@ class EnumClass(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + _ABC = "_abc", + -EFG = "-efg", + (XYZ) = "(xyz)", + allowed_values = { ('value',): { '_ABC': "_abc", @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_test.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_test.py index a75f4774ae71..973ade7b30b7 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_test.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/enum_test.py @@ -110,6 +110,7 @@ def discriminator(): return None + attribute_map = { 'enum_string_required': 'enum_string_required', # noqa: E501 'enum_string': 'enum_string', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file.py index a2beaf44a016..630f44ce3436 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'source_uri': 'sourceURI', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file_schema_test_class.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file_schema_test_class.py index e3f7608e95da..8e336b9f5d5f 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file_schema_test_class.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/file_schema_test_class.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'file': 'file', # noqa: E501 'files': 'files', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/format_test.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/format_test.py index 1588b1de0531..7d927801eae7 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/format_test.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/format_test.py @@ -130,6 +130,7 @@ def discriminator(): return None + attribute_map = { 'number': 'number', # noqa: E501 'byte': 'byte', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent.py index c25e0b3f843d..104376399767 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'radio_waves': 'radioWaves', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent_animal.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent_animal.py index e053af7d5387..4c7eef436d2a 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent_animal.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/grandparent_animal.py @@ -102,6 +102,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/has_only_read_only.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/has_only_read_only.py index 294a16ddc46d..daa8e12e43b7 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/has_only_read_only.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/has_only_read_only.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 'foo': 'foo', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/list.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/list.py index 18863e57bc74..91c2216ae1a7 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/list.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/list.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { '_123_list': '123-list', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/map_test.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/map_test.py index 612810807990..bef64f3ef77a 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/map_test.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/map_test.py @@ -95,6 +95,7 @@ def discriminator(): return None + attribute_map = { 'map_map_of_string': 'map_map_of_string', # noqa: E501 'map_of_enum_string': 'map_of_enum_string', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/mixed_properties_and_additional_properties_class.py index 954689631564..df1b40ef709a 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/mixed_properties_and_additional_properties_class.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/mixed_properties_and_additional_properties_class.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'uuid': 'uuid', # noqa: E501 'date_time': 'dateTime', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model200_response.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model200_response.py index d094c7f84c64..bbba8b1b2471 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model200_response.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model200_response.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 '_class': 'class', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model_return.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model_return.py index 51bcf6f1649f..84406f1788e4 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model_return.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/model_return.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { '_return': 'return', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/name.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/name.py index 4ee3e1ed2bf1..c735367fc158 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/name.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/name.py @@ -86,6 +86,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'snake_case': 'snake_case', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_only.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_only.py index c4163787bc14..0152a7cb44d0 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_only.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_only.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'just_number': 'JustNumber', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_with_validations.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_with_validations.py index 5d66fec5ec67..bb59c502f9d8 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_with_validations.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/number_with_validations.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/object_model_with_ref_props.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/object_model_with_ref_props.py index dfe5d05cf051..afddaa3ba5aa 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/object_model_with_ref_props.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/object_model_with_ref_props.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'my_number': 'my_number', # noqa: E501 'my_string': 'my_string', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/order.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/order.py index b69e94ae36be..c2050ac60ae2 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/order.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/order.py @@ -93,6 +93,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'pet_id': 'petId', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py index 4b17c55c74a3..70f21bc21f38 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py @@ -91,6 +91,7 @@ def discriminator(): return None + attribute_map = { 'radio_waves': 'radioWaves', # noqa: E501 'tele_vision': 'teleVision', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_all_of.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_all_of.py index 97916a1dd4e2..b21941a4c85e 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_all_of.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_all_of.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'tele_vision': 'teleVision', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py index bd36702a7a9a..5e59d1346ae5 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py @@ -101,6 +101,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/pet.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/pet.py index a7b888a2aa38..f7a6b531ba9c 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/pet.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/pet.py @@ -100,6 +100,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'photo_urls': 'photoUrls', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/player.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/player.py index 104c4d2900df..2ca3200c7a35 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/player.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/player.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'enemy_player': 'enemyPlayer', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/read_only_first.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/read_only_first.py index ad0bfbaac115..80f4efdcd6d3 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/read_only_first.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/read_only_first.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 'baz': 'baz', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/special_model_name.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/special_model_name.py index fa13828d6b9f..7b6de5e3031c 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/special_model_name.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/special_model_name.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = { 'special_property_name': '$special[property.name]', # noqa: E501 } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_boolean_map.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_boolean_map.py index 05f8527fec1e..5e8e8fc0391a 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_boolean_map.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_boolean_map.py @@ -88,6 +88,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_enum.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_enum.py index 2397dd59fc95..80047aa84c26 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_enum.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/string_enum.py @@ -50,6 +50,15 @@ class StringEnum(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + PLACED = "placed", + APPROVED = "approved", + DELIVERED = "delivered", + allowed_values = { ('value',): { 'PLACED': "placed", @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/tag.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/tag.py index 913976557b40..4abb6a51d61d 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/tag.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/tag.py @@ -85,6 +85,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_default.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_default.py index b156cbac46e3..674d60af9cf7 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_default.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_default.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'string_item': 'string_item', # noqa: E501 'number_item': 'number_item', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_example.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_example.py index c7a3f13b63ce..5ce6305a8ec3 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_example.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/type_holder_example.py @@ -96,6 +96,7 @@ def discriminator(): return None + attribute_map = { 'string_item': 'string_item', # noqa: E501 'number_item': 'number_item', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/user.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/user.py index a3a4019042be..6f0627ea65da 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/user.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/user.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'username': 'username', # noqa: E501 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/xml_item.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/xml_item.py index 183234163189..fbe16e634fe8 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/xml_item.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/xml_item.py @@ -111,6 +111,7 @@ def discriminator(): return None + attribute_map = { 'attribute_string': 'attribute_string', # noqa: E501 'attribute_number': 'attribute_number', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py index 6540576f957b..2bebf9ecd204 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_class.py @@ -96,6 +96,7 @@ def discriminator(): return None + attribute_map = { 'map_property': 'map_property', # noqa: E501 'map_of_map_property': 'map_of_map_property', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py index f8e0b8529ccd..3720ee4c635c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/additional_properties_with_array_of_enums.py @@ -94,6 +94,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/address.py b/samples/openapi3/client/petstore/python/petstore_api/model/address.py index a7c88b8fec25..b9a650d59d9f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/address.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/address.py @@ -88,6 +88,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/animal.py b/samples/openapi3/client/petstore/python/petstore_api/model/animal.py index cc070a6d8fe6..cc0748ae860d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/animal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/animal.py @@ -105,6 +105,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'color': 'color', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py b/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py index 042a8274ee7a..69dd68c1e67d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/animal_farm.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py b/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py index d1f3b363bef5..6d2f077ecc34 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/api_response.py @@ -91,6 +91,7 @@ def discriminator(): return None + attribute_map = { 'code': 'code', # noqa: E501 'type': 'type', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/apple.py b/samples/openapi3/client/petstore/python/petstore_api/model/apple.py index b5d3d62826d8..60a28bdcff83 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/apple.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/apple.py @@ -101,6 +101,7 @@ def discriminator(): return None + attribute_map = { 'cultivar': 'cultivar', # noqa: E501 'origin': 'origin', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py index 469aa6e1f6e6..143a0d4804a8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/apple_req.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'cultivar': 'cultivar', # noqa: E501 'mealy': 'mealy', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py index 16d9bda29f1f..700a26a6451c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_array_of_number_only.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'array_array_number': 'ArrayArrayNumber', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py index d83a7f15709a..de4f4855f8d4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py index 0e44ab61aff5..6b57c388810d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/array_of_number_only.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'array_number': 'ArrayNumber', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py index 64c180d11bc5..2d1cf478b82b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/array_test.py @@ -97,6 +97,7 @@ def discriminator(): return None + attribute_map = { 'array_of_string': 'array_of_string', # noqa: E501 'array_array_of_integer': 'array_array_of_integer', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/banana.py b/samples/openapi3/client/petstore/python/petstore_api/model/banana.py index 2e2249d2f5e1..cb03c7a3ca08 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/banana.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/banana.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'length_cm': 'lengthCm', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py index ff367d1d550f..f884b70ce67f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/banana_req.py @@ -84,6 +84,7 @@ def discriminator(): return None + attribute_map = { 'length_cm': 'lengthCm', # noqa: E501 'sweet': 'sweet', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py index bdf993909529..6e2683156114 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/basque_pig.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'class_name': 'className', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py b/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py index af104c19c78f..0a30b2bf0934 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/boolean_enum.py @@ -50,6 +50,13 @@ class BooleanEnum(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + TRUE = True, + allowed_values = { ('value',): { 'TRUE': True, @@ -82,6 +89,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py index 2f1323481dca..88cfa767e696 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/capitalization.py @@ -94,6 +94,7 @@ def discriminator(): return None + attribute_map = { 'small_camel': 'smallCamel', # noqa: E501 'capital_camel': 'CapitalCamel', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/cat.py b/samples/openapi3/client/petstore/python/petstore_api/model/cat.py index 809db1a23710..c94eb57e7e3c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/cat.py @@ -103,6 +103,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'declawed': 'declawed', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/cat_all_of.py b/samples/openapi3/client/petstore/python/petstore_api/model/cat_all_of.py index a5bef948f72b..60a3f43fc388 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/cat_all_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/cat_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'declawed': 'declawed', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/category.py b/samples/openapi3/client/petstore/python/petstore_api/model/category.py index b40329c9424d..0242d2e61d70 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/category.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/category.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'id': 'id', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py index 355321a2c4ca..b319075ffb42 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py @@ -101,6 +101,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat_all_of.py b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat_all_of.py index 48b725d7c3c6..1bd427da6395 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat_all_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat_all_of.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py index a3f2b58f87f3..48b04d0edd7d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/class_model.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_class': '_class', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/client.py b/samples/openapi3/client/petstore/python/petstore_api/model/client.py index 3dca32f7926b..4075db6ccfa8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/client.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'client': 'client', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py index 08f77421bbfa..3a2e44d7a6a7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'quadrilateral_type': 'quadrilateralType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py index 49d97511457a..4e6f0b8cfe39 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py @@ -99,6 +99,7 @@ def discriminator(): return None + attribute_map = { 'color': 'color', # noqa: E501 'tail': 'tail', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py index bd41caf68353..fe24bfe8e40a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'color': 'color', # noqa: E501 'id': 'id', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py index c102f99cd285..d2efb10d0298 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/danish_pig.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'class_name': 'className', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/dog.py b/samples/openapi3/client/petstore/python/petstore_api/model/dog.py index b700f88db114..0320d0709826 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/dog.py @@ -106,6 +106,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'breed': 'breed', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/dog_all_of.py b/samples/openapi3/client/petstore/python/petstore_api/model/dog_all_of.py index 8e7c1d8f27d3..e3b68cd64927 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/dog_all_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/dog_all_of.py @@ -96,6 +96,7 @@ def discriminator(): return None + attribute_map = { 'breed': 'breed', # noqa: E501 'legs': 'legs', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py b/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py index 41b4a5802c03..527c935d08cc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/drawing.py @@ -104,6 +104,7 @@ def discriminator(): return None + attribute_map = { 'main_shape': 'mainShape', # noqa: E501 'shape_or_null': 'shapeOrNull', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py index da42763d9c32..f10c6c199896 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/enum_arrays.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'just_symbol': 'just_symbol', # noqa: E501 'array_enum': 'array_enum', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py index b0ed3d8966d9..05520466ffde 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/enum_class.py @@ -50,6 +50,15 @@ class EnumClass(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + _ABC = "_abc", + -EFG = "-efg", + (XYZ) = "(xyz)", + allowed_values = { ('value',): { '_ABC': "_abc", @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py index db45011e5ecf..b4736811656b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/enum_test.py @@ -140,6 +140,7 @@ def discriminator(): return None + attribute_map = { 'enum_string_required': 'enum_string_required', # noqa: E501 'enum_string': 'enum_string', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py index 03ac634dda24..86ec744436d2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'triangle_type': 'triangleType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fake_post_inline_additional_properties_payload_array_data.py b/samples/openapi3/client/petstore/python/petstore_api/model/fake_post_inline_additional_properties_payload_array_data.py index bf9761b084c7..01cbdb908181 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fake_post_inline_additional_properties_payload_array_data.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/fake_post_inline_additional_properties_payload_array_data.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'labels': 'labels', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/file.py b/samples/openapi3/client/petstore/python/petstore_api/model/file.py index 849f5727dc9f..e50d4f5df0c7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/file.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/file.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'source_uri': 'sourceURI', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py index f7e154e47b7c..aa508b7b2e47 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/file_schema_test_class.py @@ -96,6 +96,7 @@ def discriminator(): return None + attribute_map = { 'file': 'file', # noqa: E501 'files': 'files', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/foo.py b/samples/openapi3/client/petstore/python/petstore_api/model/foo.py index ad17251f73b6..05a44f3bacf3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/foo.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/foo.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py index 6d4b3b79d705..a800998eccb9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/format_test.py @@ -147,6 +147,7 @@ def discriminator(): return None + attribute_map = { 'number': 'number', # noqa: E501 'byte': 'byte', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py b/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py index c2971bdb5469..c29132a63a3b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py @@ -111,6 +111,7 @@ def discriminator(): return None + attribute_map = { 'cultivar': 'cultivar', # noqa: E501 'length_cm': 'lengthCm', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py index f428e5cff634..787ad3ee28b5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py @@ -100,6 +100,7 @@ def discriminator(): return None + attribute_map = { 'mealy': 'mealy', # noqa: E501 'sweet': 'sweet', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py b/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py index 238eb5c82932..e9f0fffdbf01 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py @@ -111,6 +111,7 @@ def discriminator(): return None + attribute_map = { 'cultivar': 'cultivar', # noqa: E501 'length_cm': 'lengthCm', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py b/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py index 1580c5a7b724..1e13f145d3e0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/grandparent_animal.py @@ -103,6 +103,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py index 33d1c15b58d9..b00b74e9bd83 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/has_only_read_only.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 'foo': 'foo', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py index 0b3818b7c506..f62e8193ce1a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/health_check_result.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'nullable_message': 'NullableMessage', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py b/samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py index 85d3fa5922f1..64567f0a3718 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/inline_additional_properties_ref_payload.py @@ -95,6 +95,7 @@ def discriminator(): return None + attribute_map = { 'array_data': 'arrayData', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/inline_object6.py b/samples/openapi3/client/petstore/python/petstore_api/model/inline_object6.py index 828d30aa0762..b4cd68a1e737 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/inline_object6.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/inline_object6.py @@ -95,6 +95,7 @@ def discriminator(): return None + attribute_map = { 'array_data': 'arrayData', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/inline_response_default.py b/samples/openapi3/client/petstore/python/petstore_api/model/inline_response_default.py index b755dbadd364..1e0b9fd729ed 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/inline_response_default.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/inline_response_default.py @@ -95,6 +95,7 @@ def discriminator(): return None + attribute_map = { 'string': 'string', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py index aa397a09ebd4..e051edbb3259 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum.py @@ -50,6 +50,15 @@ class IntegerEnum(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + 0 = 0, + 1 = 1, + 2 = 2, + allowed_values = { ('value',): { '0': 0, @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py index 0ed72fe14cd3..6460e2e834d1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_one_value.py @@ -50,6 +50,13 @@ class IntegerEnumOneValue(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + 0 = 0, + allowed_values = { ('value',): { '0': 0, @@ -82,6 +89,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py index 2c4793329838..029ee04c4f84 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/integer_enum_with_default_value.py @@ -50,6 +50,15 @@ class IntegerEnumWithDefaultValue(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + 0 = 0, + 1 = 1, + 2 = 2, + allowed_values = { ('value',): { '0': 0, @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py index d2b908e476e5..1d81e811285b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'triangle_type': 'triangleType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/legs.py b/samples/openapi3/client/petstore/python/petstore_api/model/legs.py index 57e01527a854..bbd70fe823f3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/legs.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/legs.py @@ -94,6 +94,7 @@ def discriminator(): return None + attribute_map = { 'legs': 'legs', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/list.py b/samples/openapi3/client/petstore/python/petstore_api/model/list.py index 4b71d9deec05..a96784a2da23 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/list.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/list.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_123_list': '123-list', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py b/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py index e4e659732784..b6199ae424bb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py @@ -114,6 +114,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 'has_baleen': 'hasBaleen', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py index 39c3b180e88c..87793fc89f8b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/map_test.py @@ -102,6 +102,7 @@ def discriminator(): return None + attribute_map = { 'map_map_of_string': 'map_map_of_string', # noqa: E501 'map_of_enum_string': 'map_of_enum_string', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py index f46cd0b89726..0d23b0ef70b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/mixed_properties_and_additional_properties_class.py @@ -97,6 +97,7 @@ def discriminator(): return None + attribute_map = { 'uuid': 'uuid', # noqa: E501 'date_time': 'dateTime', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py index 41a8dee5fdf2..2d1fd2018630 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/model200_response.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 '_class': 'class', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py index f3720b05246f..ae2a7499e5a2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/model_return.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_return': 'return', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mole.py b/samples/openapi3/client/petstore/python/petstore_api/model/mole.py index 328168b21235..67d052dd9bd7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mole.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/mole.py @@ -94,6 +94,7 @@ def discriminator(): return None + attribute_map = { 'blind': 'blind', # noqa: E501 'smell': 'smell', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/name.py b/samples/openapi3/client/petstore/python/petstore_api/model/name.py index d46618c88a14..b4d9cd73af0a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/name.py @@ -92,6 +92,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'snake_case': 'snake_case', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py index ad5e551dd0fd..074cbcf584e6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_class.py @@ -101,6 +101,7 @@ def discriminator(): return None + attribute_map = { 'integer_prop': 'integer_prop', # noqa: E501 'number_prop': 'number_prop', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py index 90ef787c27fb..2b364a174e43 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py @@ -105,6 +105,7 @@ def discriminator(): return None return {'shape_type': val} + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'quadrilateral_type': 'quadrilateralType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py index a96d91650569..36c56b136417 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/number_only.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'just_number': 'JustNumber', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py index 9a8a82b48219..25d9e6f114ae 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/number_with_validations.py @@ -83,6 +83,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py index 23d16918fd60..c5fb0e5be6ac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/object_interface.py @@ -88,6 +88,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py index 56a55a14c090..04ea5405208e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/object_model_with_ref_props.py @@ -100,6 +100,7 @@ def discriminator(): return None + attribute_map = { 'my_number': 'my_number', # noqa: E501 'my_readonly': 'my_readonly', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py index dd38862e11bf..867d25bbdb0a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/object_with_validations.py @@ -91,6 +91,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/order.py b/samples/openapi3/client/petstore/python/petstore_api/model/order.py index eeefff1513f6..6a979c6fed80 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/order.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/order.py @@ -99,6 +99,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'pet_id': 'petId', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py b/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py index 8ead627ef6c6..4a06992139b5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py @@ -102,6 +102,7 @@ def discriminator(): return None return {'pet_type': val} + attribute_map = { 'pet_type': 'pet_type', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pet.py b/samples/openapi3/client/petstore/python/petstore_api/model/pet.py index 8946f6d4bea3..26085642671a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/pet.py @@ -107,6 +107,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 'photo_urls': 'photoUrls', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/pig.py index f7f1a953e92b..48e4d7de5ab0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/pig.py @@ -103,6 +103,7 @@ def discriminator(): return None return {'class_name': val} + attribute_map = { 'class_name': 'className', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py index 0afb36e36acc..bcc452cf2abe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py @@ -104,6 +104,7 @@ def discriminator(): return None return {'quadrilateral_type': val} + attribute_map = { 'quadrilateral_type': 'quadrilateralType', # noqa: E501 'shape_type': 'shapeType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py index 5ca8fae392a8..8c74e01c152e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral_interface.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'quadrilateral_type': 'quadrilateralType', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py index 38cb5e2634f6..7ef9cb8467e3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/read_only_first.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'bar': 'bar', # noqa: E501 'baz': 'baz', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/readonly.py b/samples/openapi3/client/petstore/python/petstore_api/model/readonly.py index 9a98af452eb8..0af5707329a8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/readonly.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/readonly.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'name': 'name', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py index 518f6d14ca43..21a908d7f06b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'triangle_type': 'triangleType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape.py index cadcab7e52ca..25df6c4e2f18 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/shape.py @@ -105,6 +105,7 @@ def discriminator(): return None return {'shape_type': val} + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'quadrilateral_type': 'quadrilateralType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape_interface.py index 0f11d5a14466..3a284c31c921 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape_interface.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/shape_interface.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py index 04c338516165..8b45581f36e5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py @@ -105,6 +105,7 @@ def discriminator(): return None return {'shape_type': val} + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'quadrilateral_type': 'quadrilateralType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py index c4878086ec3b..03ac587440ac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py @@ -98,6 +98,7 @@ def discriminator(): return None + attribute_map = { 'shape_type': 'shapeType', # noqa: E501 'quadrilateral_type': 'quadrilateralType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py b/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py index 3acbe976bb55..4c8376ecf9aa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py @@ -94,6 +94,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py b/samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py index 76e776ae67fc..50a6d5343687 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { '_self': 'self', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py index cc2e49f6bcb0..e00c0b18a998 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/special_model_name.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'special_property_name': '$special[property.name]', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py index 05f8527fec1e..5e8e8fc0391a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/string_boolean_map.py @@ -88,6 +88,7 @@ def discriminator(): return None + attribute_map = { } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py index 3563698aacbf..5b67d63d7c71 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum.py @@ -50,6 +50,20 @@ class StringEnum(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + PLACED = "placed", + APPROVED = "approved", + DELIVERED = "delivered", + SINGLE_QUOTED = "single quoted", + MULTIPLE_LINES = '''multiple +lines''', + DOUBLE_QUOTE_WITH_NEWLINE = '''double quote + with newline''', + allowed_values = { ('value',): { 'None': None, @@ -90,6 +104,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py index b6432cdbd1b8..f5ec041fb5a3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/string_enum_with_default_value.py @@ -50,6 +50,15 @@ class StringEnumWithDefaultValue(ModelSimple): as additional properties values. """ + + """ + allowed enum values + """ + + PLACED = "placed", + APPROVED = "approved", + DELIVERED = "delivered", + allowed_values = { ('value',): { 'PLACED': "placed", @@ -84,6 +93,7 @@ def discriminator(): return None + attribute_map = {} read_only_vars = set() diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/tag.py b/samples/openapi3/client/petstore/python/petstore_api/model/tag.py index 95a08c180731..47603049fc21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/tag.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/tag.py @@ -90,6 +90,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'name': 'name', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py index 70c34f3a7acd..934e5ca1e254 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py @@ -107,6 +107,7 @@ def discriminator(): return None return {'triangle_type': val} + attribute_map = { 'triangle_type': 'triangleType', # noqa: E501 'shape_type': 'shapeType', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py b/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py index 783e5fe3bf83..2df31c3ae4ea 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/triangle_interface.py @@ -89,6 +89,7 @@ def discriminator(): return None + attribute_map = { 'triangle_type': 'triangleType', # noqa: E501 } diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/user.py b/samples/openapi3/client/petstore/python/petstore_api/model/user.py index f77ab381d217..367802372e77 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/user.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/user.py @@ -100,6 +100,7 @@ def discriminator(): return None + attribute_map = { 'id': 'id', # noqa: E501 'username': 'username', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/whale.py b/samples/openapi3/client/petstore/python/petstore_api/model/whale.py index a8eb263b118f..1d09dcac4cf6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/whale.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/whale.py @@ -91,6 +91,7 @@ def discriminator(): return None + attribute_map = { 'class_name': 'className', # noqa: E501 'has_baleen': 'hasBaleen', # noqa: E501 diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py b/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py index c348b3316715..aa79cd54d445 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/zebra.py @@ -95,6 +95,7 @@ def discriminator(): return None + attribute_map = { 'class_name': 'className', # noqa: E501 'type': 'type', # noqa: E501