From 3788c16fe374c23c3d140873a54b7ada32981f3a Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 3 Feb 2022 20:16:42 -0800 Subject: [PATCH 1/9] Adds bases for int32, int64, float32, and float64 --- .../imports_schema_types.handlebars | 4 +++ .../python-experimental/schemas.handlebars | 33 ++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars index 38015e350440..3225819fd14d 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars @@ -30,6 +30,10 @@ from {{packageName}}.schemas import ( # noqa: F401 NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index 9450487cb54b..8c731b8b444b 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -1772,30 +1772,49 @@ class IntSchema(IntBase, NumberSchema): return super().__new__(cls, arg, **kwargs) -class Int32Schema( +class Int32Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-2147483648), inclusive_maximum=decimal.Decimal(2147483647) ), +): + pass + + +class Int32Schema( + Int32Base, IntSchema ): pass -class Int64Schema( + +class Int64Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-9223372036854775808), inclusive_maximum=decimal.Decimal(9223372036854775807) ), +): + pass + + +class Int64Schema( + Int64Base, IntSchema ): pass -class Float32Schema( +class Float32Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38), inclusive_maximum=decimal.Decimal(3.4028234663852886e+38) ), +): + pass + + +class Float32Schema( + Float32Base, NumberSchema ): @@ -1805,11 +1824,17 @@ class Float32Schema( return super()._from_openapi_data(arg, _instantiation_metadata=_instantiation_metadata) -class Float64Schema( +class Float64Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308), inclusive_maximum=decimal.Decimal(1.7976931348623157E+308) ), +): + pass + + +class Float64Schema( + Float64Base, NumberSchema ): From ccaae74753729e042011e890b8669f003a1e1063 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 3 Feb 2022 20:20:02 -0800 Subject: [PATCH 2/9] Samples updated --- .../call_123_test_special_tags.py | 4 +++ .../api/default_api_endpoints/foo_get.py | 4 +++ ...ditional_properties_with_array_of_enums.py | 4 +++ .../api/fake_api_endpoints/array_model.py | 4 +++ .../api/fake_api_endpoints/array_of_enums.py | 4 +++ .../body_with_file_schema.py | 4 +++ .../body_with_query_params.py | 4 +++ .../api/fake_api_endpoints/boolean.py | 4 +++ .../case_sensitive_params.py | 4 +++ .../api/fake_api_endpoints/client_model.py | 4 +++ .../composed_one_of_different_types.py | 4 +++ .../fake_api_endpoints/endpoint_parameters.py | 4 +++ .../api/fake_api_endpoints/enum_parameters.py | 4 +++ .../api/fake_api_endpoints/fake_health_get.py | 4 +++ .../fake_api_endpoints/group_parameters.py | 4 +++ .../inline_additional_properties.py | 4 +++ .../fake_api_endpoints/inline_composition.py | 4 +++ .../api/fake_api_endpoints/json_form_data.py | 4 +++ .../api/fake_api_endpoints/mammal.py | 4 +++ .../number_with_validations.py | 4 +++ .../object_model_with_ref_props.py | 4 +++ .../parameter_collisions.py | 4 +++ .../query_parameter_collection_format.py | 4 +++ .../api/fake_api_endpoints/string.py | 4 +++ .../api/fake_api_endpoints/string_enum.py | 4 +++ .../upload_download_file.py | 4 +++ .../api/fake_api_endpoints/upload_file.py | 4 +++ .../api/fake_api_endpoints/upload_files.py | 4 +++ .../classname.py | 4 +++ .../api/pet_api_endpoints/add_pet.py | 4 +++ .../api/pet_api_endpoints/delete_pet.py | 4 +++ .../pet_api_endpoints/find_pets_by_status.py | 4 +++ .../pet_api_endpoints/find_pets_by_tags.py | 4 +++ .../api/pet_api_endpoints/get_pet_by_id.py | 4 +++ .../api/pet_api_endpoints/update_pet.py | 4 +++ .../pet_api_endpoints/update_pet_with_form.py | 4 +++ .../upload_file_with_required_file.py | 4 +++ .../api/pet_api_endpoints/upload_image.py | 4 +++ .../api/store_api_endpoints/delete_order.py | 4 +++ .../api/store_api_endpoints/get_inventory.py | 4 +++ .../store_api_endpoints/get_order_by_id.py | 4 +++ .../api/store_api_endpoints/place_order.py | 4 +++ .../api/user_api_endpoints/create_user.py | 4 +++ .../create_users_with_array_input.py | 4 +++ .../create_users_with_list_input.py | 4 +++ .../api/user_api_endpoints/delete_user.py | 4 +++ .../user_api_endpoints/get_user_by_name.py | 4 +++ .../api/user_api_endpoints/login_user.py | 4 +++ .../api/user_api_endpoints/logout_user.py | 4 +++ .../api/user_api_endpoints/update_user.py | 4 +++ .../model/additional_properties_class.py | 4 +++ ...ditional_properties_with_array_of_enums.py | 4 +++ .../petstore_api/model/address.py | 4 +++ .../petstore_api/model/animal.py | 4 +++ .../petstore_api/model/animal_farm.py | 4 +++ .../petstore_api/model/api_response.py | 4 +++ .../petstore_api/model/apple.py | 4 +++ .../petstore_api/model/apple_req.py | 4 +++ .../model/array_holding_any_type.py | 4 +++ .../model/array_of_array_of_number_only.py | 4 +++ .../petstore_api/model/array_of_enums.py | 4 +++ .../model/array_of_number_only.py | 4 +++ .../petstore_api/model/array_test.py | 4 +++ .../model/array_with_validations_in_items.py | 4 +++ .../petstore_api/model/banana.py | 4 +++ .../petstore_api/model/banana_req.py | 4 +++ .../petstore_api/model/bar.py | 4 +++ .../petstore_api/model/basque_pig.py | 4 +++ .../petstore_api/model/boolean.py | 4 +++ .../petstore_api/model/boolean_enum.py | 4 +++ .../petstore_api/model/capitalization.py | 4 +++ .../petstore_api/model/cat.py | 4 +++ .../petstore_api/model/cat_all_of.py | 4 +++ .../petstore_api/model/category.py | 4 +++ .../petstore_api/model/child_cat.py | 4 +++ .../petstore_api/model/child_cat_all_of.py | 4 +++ .../petstore_api/model/class_model.py | 4 +++ .../petstore_api/model/client.py | 4 +++ .../model/complex_quadrilateral.py | 4 +++ .../model/complex_quadrilateral_all_of.py | 4 +++ ...d_any_of_different_types_no_validations.py | 4 +++ .../petstore_api/model/composed_array.py | 4 +++ .../petstore_api/model/composed_bool.py | 4 +++ .../petstore_api/model/composed_none.py | 4 +++ .../petstore_api/model/composed_number.py | 4 +++ .../petstore_api/model/composed_object.py | 4 +++ .../model/composed_one_of_different_types.py | 4 +++ .../petstore_api/model/composed_string.py | 4 +++ .../model/composition_in_property.py | 4 +++ .../petstore_api/model/currency.py | 4 +++ .../petstore_api/model/danish_pig.py | 4 +++ .../petstore_api/model/date_time_test.py | 4 +++ .../model/date_time_with_validations.py | 4 +++ .../model/date_with_validations.py | 4 +++ .../petstore_api/model/decimal_payload.py | 4 +++ .../petstore_api/model/dog.py | 4 +++ .../petstore_api/model/dog_all_of.py | 4 +++ .../petstore_api/model/drawing.py | 4 +++ .../petstore_api/model/enum_arrays.py | 4 +++ .../petstore_api/model/enum_class.py | 4 +++ .../petstore_api/model/enum_test.py | 4 +++ .../model/equilateral_triangle.py | 4 +++ .../model/equilateral_triangle_all_of.py | 4 +++ .../petstore_api/model/file.py | 4 +++ .../model/file_schema_test_class.py | 4 +++ .../petstore_api/model/foo.py | 4 +++ .../petstore_api/model/format_test.py | 4 +++ .../petstore_api/model/fruit.py | 4 +++ .../petstore_api/model/fruit_req.py | 4 +++ .../petstore_api/model/gm_fruit.py | 4 +++ .../petstore_api/model/grandparent_animal.py | 4 +++ .../petstore_api/model/has_only_read_only.py | 4 +++ .../petstore_api/model/health_check_result.py | 4 +++ .../model/inline_response_default.py | 4 +++ .../petstore_api/model/integer_enum.py | 4 +++ .../petstore_api/model/integer_enum_big.py | 4 +++ .../model/integer_enum_one_value.py | 4 +++ .../model/integer_enum_with_default_value.py | 4 +++ .../petstore_api/model/integer_max10.py | 4 +++ .../petstore_api/model/integer_min15.py | 4 +++ .../petstore_api/model/isosceles_triangle.py | 4 +++ .../model/isosceles_triangle_all_of.py | 4 +++ .../petstore_api/model/mammal.py | 4 +++ .../petstore_api/model/map_test.py | 4 +++ ...perties_and_additional_properties_class.py | 4 +++ .../petstore_api/model/model200_response.py | 4 +++ .../petstore_api/model/model_return.py | 4 +++ .../petstore_api/model/money.py | 4 +++ .../petstore_api/model/name.py | 4 +++ .../model/no_additional_properties.py | 4 +++ .../petstore_api/model/nullable_class.py | 4 +++ .../petstore_api/model/nullable_shape.py | 4 +++ .../petstore_api/model/nullable_string.py | 4 +++ .../petstore_api/model/number.py | 4 +++ .../petstore_api/model/number_only.py | 4 +++ .../model/number_with_validations.py | 4 +++ .../petstore_api/model/object_interface.py | 4 +++ .../model/object_model_with_ref_props.py | 4 +++ .../model/object_with_decimal_properties.py | 4 +++ .../object_with_difficultly_named_props.py | 4 +++ ...object_with_inline_composition_property.py | 4 +++ .../model/object_with_validations.py | 4 +++ .../petstore_api/model/order.py | 4 +++ .../petstore_api/model/parent_pet.py | 4 +++ .../petstore_api/model/pet.py | 4 +++ .../petstore_api/model/pig.py | 4 +++ .../petstore_api/model/player.py | 4 +++ .../petstore_api/model/quadrilateral.py | 4 +++ .../model/quadrilateral_interface.py | 4 +++ .../petstore_api/model/read_only_first.py | 4 +++ .../petstore_api/model/scalene_triangle.py | 4 +++ .../model/scalene_triangle_all_of.py | 4 +++ .../petstore_api/model/shape.py | 4 +++ .../petstore_api/model/shape_or_null.py | 4 +++ .../model/simple_quadrilateral.py | 4 +++ .../model/simple_quadrilateral_all_of.py | 4 +++ .../petstore_api/model/some_object.py | 4 +++ .../petstore_api/model/special_model_name.py | 4 +++ .../petstore_api/model/string.py | 4 +++ .../petstore_api/model/string_boolean_map.py | 4 +++ .../petstore_api/model/string_enum.py | 4 +++ .../model/string_enum_with_default_value.py | 4 +++ .../model/string_with_validation.py | 4 +++ .../petstore_api/model/tag.py | 4 +++ .../petstore_api/model/triangle.py | 4 +++ .../petstore_api/model/triangle_interface.py | 4 +++ .../petstore_api/model/user.py | 4 +++ .../petstore_api/model/whale.py | 4 +++ .../petstore_api/model/zebra.py | 4 +++ .../petstore_api/schemas.py | 33 ++++++++++++++++--- 170 files changed, 705 insertions(+), 4 deletions(-) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/another_fake_api_endpoints/call_123_test_special_tags.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/another_fake_api_endpoints/call_123_test_special_tags.py index eef7420a019a..d8e8700aed00 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/another_fake_api_endpoints/call_123_test_special_tags.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/another_fake_api_endpoints/call_123_test_special_tags.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/default_api_endpoints/foo_get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/default_api_endpoints/foo_get.py index c1a9e4213e08..2e7164b4db24 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/default_api_endpoints/foo_get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/default_api_endpoints/foo_get.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/additional_properties_with_array_of_enums.py index 1958cd47e5fb..a980fc167748 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/additional_properties_with_array_of_enums.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/additional_properties_with_array_of_enums.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py index 466bb6bdeac1..c864cb57521e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_model.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py index 30eb23e2260d..581a2cf36b04 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_file_schema.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_file_schema.py index 7d10197e7b97..14eb9ddd3553 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_file_schema.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_file_schema.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_query_params.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_query_params.py index 185f737fd612..30ed8b1c8ff3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_query_params.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/body_with_query_params.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/boolean.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/boolean.py index 27c385cf6d8c..3611abb2da57 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/boolean.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/boolean.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/case_sensitive_params.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/case_sensitive_params.py index 8d33047b77b3..8a8e707648d2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/case_sensitive_params.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/case_sensitive_params.py @@ -45,6 +45,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/client_model.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/client_model.py index 32c09a60148a..be63bf5e8a4f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/client_model.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/client_model.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/composed_one_of_different_types.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/composed_one_of_different_types.py index f18f635fbcba..cd997455196d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/composed_one_of_different_types.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/composed_one_of_different_types.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/endpoint_parameters.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/endpoint_parameters.py index 5898d0608a23..639c85ec7819 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/endpoint_parameters.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/endpoint_parameters.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/enum_parameters.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/enum_parameters.py index 9a0375a83d93..a3ac05fa5f07 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/enum_parameters.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/enum_parameters.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/fake_health_get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/fake_health_get.py index 321959bf07e0..e3970df11dde 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/fake_health_get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/fake_health_get.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/group_parameters.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/group_parameters.py index 77bce3d6270a..bab146a1f469 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/group_parameters.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/group_parameters.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_additional_properties.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_additional_properties.py index 3dcf988a1b7f..47fb548b1f25 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_additional_properties.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_additional_properties.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_composition.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_composition.py index 5a595a3fb3e6..1253597ad0a1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_composition.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/inline_composition.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_form_data.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_form_data.py index 917d5c7b7d73..aac637d1507f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_form_data.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/json_form_data.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/mammal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/mammal.py index 40880fd1b09c..8ac173426e32 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/mammal.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/mammal.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/number_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/number_with_validations.py index e24811186515..1826a74b2718 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/number_with_validations.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/number_with_validations.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/object_model_with_ref_props.py index 6e72d45b78db..77f4b3ad9756 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/object_model_with_ref_props.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/object_model_with_ref_props.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/parameter_collisions.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/parameter_collisions.py index 4ec604dd98c8..e1606beb30e3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/parameter_collisions.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/parameter_collisions.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/query_parameter_collection_format.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/query_parameter_collection_format.py index 8fd0b87cf6ca..4fef58c1548f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/query_parameter_collection_format.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/query_parameter_collection_format.py @@ -45,6 +45,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string.py index f1dda7d9754b..318ab585f742 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string_enum.py index 21d92e829df2..7dc15a2977b8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string_enum.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/string_enum.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_download_file.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_download_file.py index 73f707e268bf..77527a9eff31 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_download_file.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_download_file.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_file.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_file.py index f39892210cbc..3dce641e4769 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_file.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_file.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_files.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_files.py index 6be2c17a026c..2eed478036df 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_files.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/upload_files.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_classname_tags_123_api_endpoints/classname.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_classname_tags_123_api_endpoints/classname.py index 1ccf89e848c3..d4839bb9b699 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_classname_tags_123_api_endpoints/classname.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_classname_tags_123_api_endpoints/classname.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/add_pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/add_pet.py index 802803633582..bc2b459c4c19 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/add_pet.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/add_pet.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/delete_pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/delete_pet.py index afb30b580480..8f75bcbd8aa5 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/delete_pet.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/delete_pet.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_status.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_status.py index ac4b7f3ad8c2..c75db96db9bf 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_status.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_status.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_tags.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_tags.py index 5496b92cd55e..028f8d68d795 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_tags.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/find_pets_by_tags.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/get_pet_by_id.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/get_pet_by_id.py index 549fd2aa6fc2..ca6e4ae9f750 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/get_pet_by_id.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/get_pet_by_id.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet.py index fa1b5a1bb966..3c3578420ca6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet_with_form.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet_with_form.py index 798b70c896a9..2961059c15b5 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet_with_form.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/update_pet_with_form.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py index c137418e02d8..62404922a6fc 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_file_with_required_file.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_image.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_image.py index 10c595a21abd..53751178469a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_image.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api_endpoints/upload_image.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/delete_order.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/delete_order.py index 1c4269d277bf..2ed9303649cd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/delete_order.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/delete_order.py @@ -45,6 +45,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_inventory.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_inventory.py index 9daf61b0c088..a674b60efe4e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_inventory.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_inventory.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_order_by_id.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_order_by_id.py index 99f9ecbb28f1..bf7861386a3d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_order_by_id.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/get_order_by_id.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/place_order.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/place_order.py index ba961a9921ed..881f91dc5c48 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/place_order.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/store_api_endpoints/place_order.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_user.py index 7cc7494687db..7bf386a6936b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_user.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_array_input.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_array_input.py index d3ae4f85df7c..22d7f23164a0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_array_input.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_array_input.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_list_input.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_list_input.py index 81553c66598f..558f9086b3cf 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_list_input.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/create_users_with_list_input.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/delete_user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/delete_user.py index f337efa34803..88b859ff00ba 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/delete_user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/delete_user.py @@ -45,6 +45,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/get_user_by_name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/get_user_by_name.py index fa01a3901198..9c5583d5c6d8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/get_user_by_name.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/get_user_by_name.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/login_user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/login_user.py index 47447322ff0d..478b4869d829 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/login_user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/login_user.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/logout_user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/logout_user.py index 99bcba58663f..b9aa62e0c2a6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/logout_user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/logout_user.py @@ -45,6 +45,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/update_user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/update_user.py index 472d3354b84e..37fed9bcf273 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/update_user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api/user_api_endpoints/update_user.py @@ -46,6 +46,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py index 8301d14cf869..2c5686051176 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py index 90d612a857aa..c94a35d111be 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py index 95e55511dca4..4bcd72165671 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py index f0dc6441d3e2..2e1a97f9ffa4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py index 2bb3d0259c81..be131584f2c3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py index 41f336ea8bcf..201a8188f58a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py index 05b8485a74d9..c85b60cf1ce3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py index df315c8bf1c4..5e423efafba6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py index 51e9aeeb603c..c2edbaeb0efa 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py index 06912cc2194c..b7e1221340d0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py index 19af3dc1e9fd..e394fe933116 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py index c2d568e4b808..7ff4a959c9cb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py index 00d72319a69d..c94a91a879db 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py index 07b32f95f673..79a9aad5fd75 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py index 4cb4561abe22..fe60e91a7ba0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py index b7012234a08f..bf3fac7cb945 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py index 61b13533570b..81ce5b09a51f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py index f1e74bf1e463..bfff57cb0824 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py index 3f35ab6a6535..263bdbdcdd76 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py index cf75f7c9445b..c40292d6ee23 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py index e5987dc95595..1e9d2b12f8d4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py index e0f0b0f20535..5bcbd3abdad7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat_all_of.py index 82c20ec0769e..549885a2e27c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py index 9f92d2b3a38f..94a7ff0a0c3c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py index 114bd2832d23..3d5cc122bfa1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat_all_of.py index 791f3793cb54..c152c0f10605 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py index 37c5b23285bb..4f1e9ed14a54 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py index bc4ff7ffab38..a476e5d92c3b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py index 422ae90d3b8b..5c1c3815296a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral_all_of.py index d24b43d5ed68..f91b041e09e1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py index 97f75c86ddac..bab2f27e022a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py index 8b20d7f09415..4582184e4653 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py index 5aa09239e140..3ea21ab42be9 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py index 534e1ce01ca2..d6a1f7cced53 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py index c4e879ae995b..928f58b5bd80 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py index f7ba1546f97f..fe8ec7865805 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py index 0adf69e676ec..071e8b2febfe 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py index 6efeb9a7872f..86b17805c8a7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composition_in_property.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composition_in_property.py index 38f4fb948ac5..49fc619cfc2c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composition_in_property.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composition_in_property.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py index 1fd715f3f145..af48c5f606b4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py index af29f5c9e7ab..938f8b4f88dc 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py index 8b05311d14d4..fe399c0a759c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py index c4365f56e89c..d593ace1dec7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py index 364759f48e23..310dad4babf2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py index 99f1f2e47350..24c443deeb90 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py index de0f9c174f33..f48bfc6fb33b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog_all_of.py index b527aedf20b9..88c86c052618 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py index d61f6b07be1e..4d61e721a6bb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py index a3fb56284bdb..9ea913052e81 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py index 45a9a512fc0e..17828f28029b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py index 7204328fc893..5f4fa186bc08 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py index 9c433255529a..5e96fa2799fa 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle_all_of.py index 1e23482bd9c9..785966c5dda8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py index 3bb58da70670..c5c048042c91 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py index f55669e69938..a6bf45a144b7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py index 47357f615881..3535312831d3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py index 4560f080ddde..4a5e0140489e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py index 3fba42202fe8..37b155280237 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py index 74414d77adde..6f5098eaaf54 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py index 59d81989169a..03b81dffb459 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py index 47e282a63e8b..d99b83df17a8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py index a0a1f019d819..bec74170f914 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py index 3ea543b00046..28cace6c66df 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/inline_response_default.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/inline_response_default.py index 146af3287ee1..474bc2f1b6bb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/inline_response_default.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/inline_response_default.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py index 6227389dfb16..f9ce559597f3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py index d9132eb29978..2ce5bf788e24 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py index bf6c94525020..2a401beda7b2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py index 48870526b658..198416fa503a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py index 087d6c07427a..d553aa4002f7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py index ef06e4d9e73e..d1be99d4e438 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py index fa8036ac0c71..3a922c9c856c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle_all_of.py index 98351c3eb9d4..57612019a9e6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py index c46a3dde4ad9..a819f0a5e46f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py index c8e7a591f8c4..640f40bac9a6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py index 6f95ff0eaaf1..ee0bf81b1a0d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py index cf5dd3ae557b..98b30389ae44 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py index 5a9f2f5bb082..a3bfcac60190 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py index 603573e9f997..aa107446c43d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py index 08f1eacf23b6..3be7a9658b5e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py index 4e7724357e8a..a504545ae442 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py index d3a247432469..821225c10255 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py index 2a0c429f54ef..14193cfacbec 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py index 567a7fac1602..a311a0c656ed 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py index 19c1626f4875..23b3e0befb28 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py index 52533d39e49d..698cbc0b7846 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py index c8108d4a1075..129a0eacb17d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py index af87968d14a3..1a230f98b737 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py index 14aeee17ba6c..b16983b11558 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py index 074cc52aaa43..c840eab6369f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py index 2429a2205a21..595655019ed7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py index ca57f8edd0c4..16d6e23cb24e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py index b0b588d04a13..91be6d02d1a8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py index 294687560d50..6f06e85a3be2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py index 2775c77d79c7..d93f03e849f2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py index 038a4c6f701f..acdcad0903e5 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py index 438831aac748..55baf6a7b35c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py index e85504879aeb..56b09a2024f2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py index 7ce3ae227f97..2aecf52210ef 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py index ff7e85735b4a..384d18d11812 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py index c3b568a7336c..5a4c783fa0b8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py index 721c27153e57..83fd87c719d5 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle_all_of.py index 595525992640..5a3d2514eb46 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py index f61207d5b578..b29f83c9976d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py index f78ed803a59c..8275e48bb955 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py index f6bf08a97e50..273512a90138 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral_all_of.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral_all_of.py index 8e4bea9b30e3..f45e4a2bb0dd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral_all_of.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral_all_of.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py index 3efa9b66074e..1565cd8b9793 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py index 9a67034b34c1..09c039f8fe60 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py index f2f4e22231e4..2b661afe3c24 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py index a42d77f660dc..cead5d15b7bd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py index 395d83d0f1e5..b96f2559062d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py index c51fbf770135..c2547b157a66 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py index 9eae261142d9..8bbc226e3476 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py index 1b38c173ce0b..2e533571785e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py index c312855b6bb3..115cde5048f3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py index a36fd79ef3ff..83428cd27113 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py index cf29c50f64f3..1de764931197 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py index 8d6de64ab2c0..d33c830522f0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py index 15bbe41e9b44..2ea5d4039ce7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py @@ -47,6 +47,10 @@ NoneBase, StrBase, IntBase, + Int32Base, + Int64Base, + Float32Base, + Float64Base, NumberBase, DateBase, DateTimeBase, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index b896e4ebe4fd..5ab8998b622c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -1779,30 +1779,49 @@ def __new__(cls, arg: typing.Union[decimal.Decimal, int], **kwargs: typing.Union return super().__new__(cls, arg, **kwargs) -class Int32Schema( +class Int32Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-2147483648), inclusive_maximum=decimal.Decimal(2147483647) ), +): + pass + + +class Int32Schema( + Int32Base, IntSchema ): pass -class Int64Schema( + +class Int64Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-9223372036854775808), inclusive_maximum=decimal.Decimal(9223372036854775807) ), +): + pass + + +class Int64Schema( + Int64Base, IntSchema ): pass -class Float32Schema( +class Float32Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38), inclusive_maximum=decimal.Decimal(3.4028234663852886e+38) ), +): + pass + + +class Float32Schema( + Float32Base, NumberSchema ): @@ -1812,11 +1831,17 @@ def _from_openapi_data(cls, arg: typing.Union[float, decimal.Decimal], _instanti return super()._from_openapi_data(arg, _instantiation_metadata=_instantiation_metadata) -class Float64Schema( +class Float64Base( _SchemaValidator( inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308), inclusive_maximum=decimal.Decimal(1.7976931348623157E+308) ), +): + pass + + +class Float64Schema( + Float64Base, NumberSchema ): From 07b105ec2170ed2746aab18a84d31cc5ec17ac6e Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 3 Feb 2022 20:32:17 -0800 Subject: [PATCH 3/9] Removes print statements --- .../resources/python-experimental/schemas.handlebars | 9 --------- .../petstore/python-experimental/petstore_api/schemas.py | 9 --------- 2 files changed, 18 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index 8c731b8b444b..84750369e2c6 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -210,7 +210,6 @@ class ValidatorBase: if (cls.__is_json_validation_enabled('uniqueItems', _instantiation_metadata.configuration) and 'unique_items' in validations and validations['unique_items'] and input_values): unique_items = [] - # print(validations) for item in input_values: if item not in unique_items: unique_items.append(item) @@ -1063,11 +1062,9 @@ class DictBase(Discriminable): return self[name] except KeyError as ex: raise AttributeError(str(ex)) - # print(('non-frozendict __getattr__', name)) return super().__getattr__(self, name) def __getattribute__(self, name): - # print(('__getattribute__', name)) # if an attribute does exist (for example as a class property but not as an instance method) try: return self[name] @@ -1268,9 +1265,6 @@ class Schema: _instantiation_metadata.path_to_schemas and _instantiation_metadata.path_to_item in _instantiation_metadata.path_to_schemas): chosen_new_cls = _instantiation_metadata.path_to_schemas[_instantiation_metadata.path_to_item] - # print('leaving __get_new_cls early for cls {} because path_to_schemas exists'.format(cls)) - # print(_instantiation_metadata.path_to_item) - # print(chosen_new_cls) return chosen_new_cls """ Dict property + List Item Assignment Use cases: @@ -1286,8 +1280,6 @@ class Schema: because value is of the correct type, and validation was run earlier when the instance was created """ _path_to_schemas = cls._validate(arg, _instantiation_metadata=_instantiation_metadata) - from pprint import pprint - pprint(dict(_path_to_schemas)) # loop through it make a new class for each entry for path, schema_classes in _path_to_schemas.items(): enum_schema = any( @@ -1318,7 +1310,6 @@ class Schema: continue # Use case: value is None, True, False, or an enum value - # print('choosing enum class for path {} in arg {}'.format(path, arg)) value = arg for key in path[1:]: value = value[key] diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 5ab8998b622c..090cf60b9bdf 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -217,7 +217,6 @@ def __check_tuple_validations( if (cls.__is_json_validation_enabled('uniqueItems', _instantiation_metadata.configuration) and 'unique_items' in validations and validations['unique_items'] and input_values): unique_items = [] - # print(validations) for item in input_values: if item not in unique_items: unique_items.append(item) @@ -1070,11 +1069,9 @@ def __getattr__(self, name): return self[name] except KeyError as ex: raise AttributeError(str(ex)) - # print(('non-frozendict __getattr__', name)) return super().__getattr__(self, name) def __getattribute__(self, name): - # print(('__getattribute__', name)) # if an attribute does exist (for example as a class property but not as an instance method) try: return self[name] @@ -1275,9 +1272,6 @@ def __get_new_cls(cls, arg, _instantiation_metadata: InstantiationMetadata): _instantiation_metadata.path_to_schemas and _instantiation_metadata.path_to_item in _instantiation_metadata.path_to_schemas): chosen_new_cls = _instantiation_metadata.path_to_schemas[_instantiation_metadata.path_to_item] - # print('leaving __get_new_cls early for cls {} because path_to_schemas exists'.format(cls)) - # print(_instantiation_metadata.path_to_item) - # print(chosen_new_cls) return chosen_new_cls """ Dict property + List Item Assignment Use cases: @@ -1293,8 +1287,6 @@ def __get_new_cls(cls, arg, _instantiation_metadata: InstantiationMetadata): because value is of the correct type, and validation was run earlier when the instance was created """ _path_to_schemas = cls._validate(arg, _instantiation_metadata=_instantiation_metadata) - from pprint import pprint - pprint(dict(_path_to_schemas)) # loop through it make a new class for each entry for path, schema_classes in _path_to_schemas.items(): enum_schema = any( @@ -1325,7 +1317,6 @@ def __get_new_cls(cls, arg, _instantiation_metadata: InstantiationMetadata): continue # Use case: value is None, True, False, or an enum value - # print('choosing enum class for path {} in arg {}'.format(path, arg)) value = arg for key in path[1:]: value = value[key] From ca4e61aa7db5a4980f286b3449789b0964994a55 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 4 Feb 2022 05:12:20 -0800 Subject: [PATCH 4/9] When creating properties and items do not call _from_openapi_data or model __new__ --- .../python-experimental/schemas.handlebars | 20 ++++++++----------- .../petstore_api/schemas.py | 20 ++++++++----------- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index 84750369e2c6..e7da7c40f17e 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -782,17 +782,15 @@ class ListBase: if isinstance(value, item_cls): cast_items.append(value) continue + item_instantiation_metadata = InstantiationMetadata( configuration=_instantiation_metadata.configuration, from_server=_instantiation_metadata.from_server, path_to_item=item_path_to_item, path_to_schemas=_instantiation_metadata.path_to_schemas, ) - - if _instantiation_metadata.from_server: - new_value = item_cls._from_openapi_data(value, _instantiation_metadata=item_instantiation_metadata) - else: - new_value = item_cls(value, _instantiation_metadata=item_instantiation_metadata) + new_value = item_cls._get_new_instance_without_conversion( + value, _instantiation_metadata=item_instantiation_metadata) cast_items.append(new_value) return cast_items @@ -1044,10 +1042,8 @@ class DictBase(Discriminable): path_to_item=property_path_to_item, path_to_schemas=_instantiation_metadata.path_to_schemas, ) - if _instantiation_metadata.from_server: - new_value = property_cls._from_openapi_data(value, _instantiation_metadata=prop_instantiation_metadata) - else: - new_value = property_cls(value, _instantiation_metadata=prop_instantiation_metadata) + new_value = property_cls._get_new_instance_without_conversion( + value, _instantiation_metadata=prop_instantiation_metadata) dict_items[property_name_js] = new_value return dict_items @@ -1326,7 +1322,7 @@ class Schema: return _instantiation_metadata.path_to_schemas[_instantiation_metadata.path_to_item] @classmethod - def __get_new_instance_without_conversion(cls, arg, _instantiation_metadata): + def _get_new_instance_without_conversion(cls, arg, _instantiation_metadata): # PATH 2 - we have a Dynamic class and we are making an instance of it if issubclass(cls, tuple): items = cls._get_items(arg, _instantiation_metadata=_instantiation_metadata) @@ -1372,7 +1368,7 @@ class Schema: 'from_server must be True in this code path, if you need it to be False, use cls()' ) new_cls = cls.__get_new_cls(arg, _instantiation_metadata) - new_inst = new_cls.__get_new_instance_without_conversion(arg, _instantiation_metadata) + new_inst = new_cls._get_new_instance_without_conversion(arg, _instantiation_metadata) return new_inst @staticmethod @@ -1413,7 +1409,7 @@ class Schema: ) arg = cast_to_allowed_types(arg, from_server=_instantiation_metadata.from_server) new_cls = cls.__get_new_cls(arg, _instantiation_metadata) - return new_cls.__get_new_instance_without_conversion(arg, _instantiation_metadata) + return new_cls._get_new_instance_without_conversion(arg, _instantiation_metadata) def __init__( self, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 090cf60b9bdf..0f3084f34da2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -789,17 +789,15 @@ def _get_items(cls, *args, _instantiation_metadata: typing.Optional[Instantiatio if isinstance(value, item_cls): cast_items.append(value) continue + item_instantiation_metadata = InstantiationMetadata( configuration=_instantiation_metadata.configuration, from_server=_instantiation_metadata.from_server, path_to_item=item_path_to_item, path_to_schemas=_instantiation_metadata.path_to_schemas, ) - - if _instantiation_metadata.from_server: - new_value = item_cls._from_openapi_data(value, _instantiation_metadata=item_instantiation_metadata) - else: - new_value = item_cls(value, _instantiation_metadata=item_instantiation_metadata) + new_value = item_cls._get_new_instance_without_conversion( + value, _instantiation_metadata=item_instantiation_metadata) cast_items.append(new_value) return cast_items @@ -1051,10 +1049,8 @@ def _get_properties(cls, arg: typing.Dict[str, typing.Any], _instantiation_metad path_to_item=property_path_to_item, path_to_schemas=_instantiation_metadata.path_to_schemas, ) - if _instantiation_metadata.from_server: - new_value = property_cls._from_openapi_data(value, _instantiation_metadata=prop_instantiation_metadata) - else: - new_value = property_cls(value, _instantiation_metadata=prop_instantiation_metadata) + new_value = property_cls._get_new_instance_without_conversion( + value, _instantiation_metadata=prop_instantiation_metadata) dict_items[property_name_js] = new_value return dict_items @@ -1333,7 +1329,7 @@ def __get_new_cls(cls, arg, _instantiation_metadata: InstantiationMetadata): return _instantiation_metadata.path_to_schemas[_instantiation_metadata.path_to_item] @classmethod - def __get_new_instance_without_conversion(cls, arg, _instantiation_metadata): + def _get_new_instance_without_conversion(cls, arg, _instantiation_metadata): # PATH 2 - we have a Dynamic class and we are making an instance of it if issubclass(cls, tuple): items = cls._get_items(arg, _instantiation_metadata=_instantiation_metadata) @@ -1379,7 +1375,7 @@ def _from_openapi_data( 'from_server must be True in this code path, if you need it to be False, use cls()' ) new_cls = cls.__get_new_cls(arg, _instantiation_metadata) - new_inst = new_cls.__get_new_instance_without_conversion(arg, _instantiation_metadata) + new_inst = new_cls._get_new_instance_without_conversion(arg, _instantiation_metadata) return new_inst @staticmethod @@ -1420,7 +1416,7 @@ def __new__(cls, *args: typing.Union[dict, frozendict, list, tuple, decimal.Deci ) arg = cast_to_allowed_types(arg, from_server=_instantiation_metadata.from_server) new_cls = cls.__get_new_cls(arg, _instantiation_metadata) - return new_cls.__get_new_instance_without_conversion(arg, _instantiation_metadata) + return new_cls._get_new_instance_without_conversion(arg, _instantiation_metadata) def __init__( self, From 13a2b401bd55988c35b4dc9bdf1b0ddda2cafff7 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 4 Feb 2022 06:15:06 -0800 Subject: [PATCH 5/9] Update speed improvement --- .../main/resources/python-experimental/schemas.handlebars | 6 +++++- .../petstore/python-experimental/petstore_api/schemas.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index e7da7c40f17e..71f415377b9a 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -58,8 +58,12 @@ def update(d: dict, u: dict): Adds u to d Where each dict is defaultdict(set) """ + if not u: + return d for k, v in u.items(): - d[k] = d[k].union(v) + if not v: + continue + d[k] = d[k] | v return d diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 0f3084f34da2..0eaf36cca1f1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -65,8 +65,12 @@ def update(d: dict, u: dict): Adds u to d Where each dict is defaultdict(set) """ + if not u: + return d for k, v in u.items(): - d[k] = d[k].union(v) + if not v: + continue + d[k] = d[k] | v return d From 22d5562173eff8eaf6264b7b1f671fbdad9b142e Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 4 Feb 2022 06:31:54 -0800 Subject: [PATCH 6/9] cast_to_allowed_types speeed improvements --- .../python-experimental/schemas.handlebars | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index 71f415377b9a..a59606ce3263 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -1439,21 +1439,16 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal int, float -> Decimal StrSchema will convert that to bytes and remember the encoding when we pass in str input """ - if isinstance(arg, (date, datetime)): - if not from_server: - return arg.isoformat() - # ApiTypeError will be thrown later by _validate_type - return arg - elif isinstance(arg, bool): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - return arg - elif isinstance(arg, decimal.Decimal): +def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal, int, float, None, dict, frozendict, list, tuple, bytes, Schema], from_server=False) -> typing.Union[str, bytes, decimal.Decimal, None, frozendict, tuple, Schema]: + """ + from_server=False date, datetime -> str + int, float -> Decimal + StrSchema will convert that to bytes and remember the encoding when we pass in str input + """ + if isinstance(arg, str): return arg - elif isinstance(arg, int): - return decimal.Decimal(arg) + elif type(arg) is dict or type(arg) is frozendict: + return frozendict({key: cast_to_allowed_types(val) for key, val in arg.items()}) elif isinstance(arg, float): decimal_from_float = decimal.Decimal(arg) if decimal_from_float.as_integer_ratio()[1] == 1: @@ -1461,7 +1456,24 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') return decimal.Decimal(str(decimal_from_float)+'.0') return decimal_from_float - elif isinstance(arg, str): + elif type(arg) is list or type(arg) is tuple: + return tuple([cast_to_allowed_types(item) for item in arg]) + elif isinstance(arg, int): + return decimal.Decimal(arg) + elif isinstance(arg, bool): + """ + this check must come before isinstance(arg, (int, float)) + because isinstance(True, int) is True + """ + return arg + elif arg is None: + return arg + elif isinstance(arg, (date, datetime)): + if not from_server: + return arg.isoformat() + # ApiTypeError will be thrown later by _validate_type + return arg + elif isinstance(arg, decimal.Decimal): return arg elif isinstance(arg, bytes): return arg @@ -1469,12 +1481,6 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal if arg.closed: raise ApiValueError('Invalid file state; file is closed and must be open') return arg - elif type(arg) is list or type(arg) is tuple: - return tuple([cast_to_allowed_types(item) for item in arg]) - elif type(arg) is dict or type(arg) is frozendict: - return frozendict({key: cast_to_allowed_types(val) for key, val in arg.items() if val is not unset}) - elif arg is None: - return arg elif isinstance(arg, Schema): return arg raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) From 49cb4797d6e0702792d8867f28387ab75ae4446f Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 4 Feb 2022 06:52:09 -0800 Subject: [PATCH 7/9] _get_new_instance_without_conversion order swap for speed --- .../python-experimental/schemas.handlebars | 8 +-- .../petstore_api/schemas.py | 56 ++++++++++--------- 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index a59606ce3263..ac501dd46691 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -1328,12 +1328,12 @@ class Schema: @classmethod def _get_new_instance_without_conversion(cls, arg, _instantiation_metadata): # PATH 2 - we have a Dynamic class and we are making an instance of it - if issubclass(cls, tuple): - items = cls._get_items(arg, _instantiation_metadata=_instantiation_metadata) - return super(Schema, cls).__new__(cls, items) - elif issubclass(cls, frozendict): + if issubclass(cls, frozendict): properties = cls._get_properties(arg, _instantiation_metadata=_instantiation_metadata) return super(Schema, cls).__new__(cls, properties) + elif issubclass(cls, tuple): + items = cls._get_items(arg, _instantiation_metadata=_instantiation_metadata) + return super(Schema, cls).__new__(cls, items) """ str = openapi str, date, and datetime decimal.Decimal = openapi int and float diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 0eaf36cca1f1..2deff400460f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -1335,12 +1335,12 @@ def __get_new_cls(cls, arg, _instantiation_metadata: InstantiationMetadata): @classmethod def _get_new_instance_without_conversion(cls, arg, _instantiation_metadata): # PATH 2 - we have a Dynamic class and we are making an instance of it - if issubclass(cls, tuple): - items = cls._get_items(arg, _instantiation_metadata=_instantiation_metadata) - return super(Schema, cls).__new__(cls, items) - elif issubclass(cls, frozendict): + if issubclass(cls, frozendict): properties = cls._get_properties(arg, _instantiation_metadata=_instantiation_metadata) return super(Schema, cls).__new__(cls, properties) + elif issubclass(cls, tuple): + items = cls._get_items(arg, _instantiation_metadata=_instantiation_metadata) + return super(Schema, cls).__new__(cls, items) """ str = openapi str, date, and datetime decimal.Decimal = openapi int and float @@ -1446,21 +1446,16 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal int, float -> Decimal StrSchema will convert that to bytes and remember the encoding when we pass in str input """ - if isinstance(arg, (date, datetime)): - if not from_server: - return arg.isoformat() - # ApiTypeError will be thrown later by _validate_type - return arg - elif isinstance(arg, bool): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - return arg - elif isinstance(arg, decimal.Decimal): +def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal, int, float, None, dict, frozendict, list, tuple, bytes, Schema], from_server=False) -> typing.Union[str, bytes, decimal.Decimal, None, frozendict, tuple, Schema]: + """ + from_server=False date, datetime -> str + int, float -> Decimal + StrSchema will convert that to bytes and remember the encoding when we pass in str input + """ + if isinstance(arg, str): return arg - elif isinstance(arg, int): - return decimal.Decimal(arg) + elif type(arg) is dict or type(arg) is frozendict: + return frozendict({key: cast_to_allowed_types(val) for key, val in arg.items()}) elif isinstance(arg, float): decimal_from_float = decimal.Decimal(arg) if decimal_from_float.as_integer_ratio()[1] == 1: @@ -1468,7 +1463,24 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') return decimal.Decimal(str(decimal_from_float)+'.0') return decimal_from_float - elif isinstance(arg, str): + elif type(arg) is list or type(arg) is tuple: + return tuple([cast_to_allowed_types(item) for item in arg]) + elif isinstance(arg, int): + return decimal.Decimal(arg) + elif isinstance(arg, bool): + """ + this check must come before isinstance(arg, (int, float)) + because isinstance(True, int) is True + """ + return arg + elif arg is None: + return arg + elif isinstance(arg, (date, datetime)): + if not from_server: + return arg.isoformat() + # ApiTypeError will be thrown later by _validate_type + return arg + elif isinstance(arg, decimal.Decimal): return arg elif isinstance(arg, bytes): return arg @@ -1476,12 +1488,6 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal if arg.closed: raise ApiValueError('Invalid file state; file is closed and must be open') return arg - elif type(arg) is list or type(arg) is tuple: - return tuple([cast_to_allowed_types(item) for item in arg]) - elif type(arg) is dict or type(arg) is frozendict: - return frozendict({key: cast_to_allowed_types(val) for key, val in arg.items() if val is not unset}) - elif arg is None: - return arg elif isinstance(arg, Schema): return arg raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) From 09f5437fdbd0f9f620d6bebaaa27f827ee792357 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 4 Feb 2022 07:00:00 -0800 Subject: [PATCH 8/9] Fixes test errors --- .../python-experimental/schemas.handlebars | 18 ++++++------------ .../petstore_api/schemas.py | 18 ++++++------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index ac501dd46691..61aa4a3a7421 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -1433,12 +1433,6 @@ class Schema: pass -def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal, int, float, None, dict, frozendict, list, tuple, bytes, Schema], from_server=False) -> typing.Union[str, bytes, decimal.Decimal, None, frozendict, tuple, Schema]: - """ - from_server=False date, datetime -> str - int, float -> Decimal - StrSchema will convert that to bytes and remember the encoding when we pass in str input - """ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal, int, float, None, dict, frozendict, list, tuple, bytes, Schema], from_server=False) -> typing.Union[str, bytes, decimal.Decimal, None, frozendict, tuple, Schema]: """ from_server=False date, datetime -> str @@ -1449,6 +1443,12 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal return arg elif type(arg) is dict or type(arg) is frozendict: return frozendict({key: cast_to_allowed_types(val) for key, val in arg.items()}) + elif isinstance(arg, bool): + """ + this check must come before isinstance(arg, (int, float)) + because isinstance(True, int) is True + """ + return arg elif isinstance(arg, float): decimal_from_float = decimal.Decimal(arg) if decimal_from_float.as_integer_ratio()[1] == 1: @@ -1460,12 +1460,6 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal return tuple([cast_to_allowed_types(item) for item in arg]) elif isinstance(arg, int): return decimal.Decimal(arg) - elif isinstance(arg, bool): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - return arg elif arg is None: return arg elif isinstance(arg, (date, datetime)): diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 2deff400460f..977c4ceaa107 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -1440,12 +1440,6 @@ def __init__( pass -def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal, int, float, None, dict, frozendict, list, tuple, bytes, Schema], from_server=False) -> typing.Union[str, bytes, decimal.Decimal, None, frozendict, tuple, Schema]: - """ - from_server=False date, datetime -> str - int, float -> Decimal - StrSchema will convert that to bytes and remember the encoding when we pass in str input - """ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal, int, float, None, dict, frozendict, list, tuple, bytes, Schema], from_server=False) -> typing.Union[str, bytes, decimal.Decimal, None, frozendict, tuple, Schema]: """ from_server=False date, datetime -> str @@ -1456,6 +1450,12 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal return arg elif type(arg) is dict or type(arg) is frozendict: return frozendict({key: cast_to_allowed_types(val) for key, val in arg.items()}) + elif isinstance(arg, bool): + """ + this check must come before isinstance(arg, (int, float)) + because isinstance(True, int) is True + """ + return arg elif isinstance(arg, float): decimal_from_float = decimal.Decimal(arg) if decimal_from_float.as_integer_ratio()[1] == 1: @@ -1467,12 +1467,6 @@ def cast_to_allowed_types(arg: typing.Union[str, date, datetime, decimal.Decimal return tuple([cast_to_allowed_types(item) for item in arg]) elif isinstance(arg, int): return decimal.Decimal(arg) - elif isinstance(arg, bool): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - return arg elif arg is None: return arg elif isinstance(arg, (date, datetime)): From 5f882ff48b25e41225b2e230c6d31297ec94047d Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 4 Feb 2022 07:32:12 -0800 Subject: [PATCH 9/9] Small fixes about path_to_schemas --- .../main/resources/python-experimental/schemas.handlebars | 6 ++---- .../petstore/python-experimental/petstore_api/schemas.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index 61aa4a3a7421..15a4b7b32156 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -778,9 +778,8 @@ class ListBase: cls_item_cls = getattr(cls, '_items', AnyTypeSchema) for i, value in enumerate(list_items): item_path_to_item = _instantiation_metadata.path_to_item+(i,) - if item_path_to_item in _instantiation_metadata.path_to_schemas: - item_cls = _instantiation_metadata.path_to_schemas[item_path_to_item] - else: + item_cls = _instantiation_metadata.path_to_schemas.get(item_path_to_item) + if item_cls is None: item_cls = cls_item_cls if isinstance(value, item_cls): @@ -933,7 +932,6 @@ class DictBase(Discriminable): ) other_path_to_schemas = schema._validate(value, _instantiation_metadata=arg_instantiation_metadata) update(path_to_schemas, other_path_to_schemas) - _instantiation_metadata.path_to_schemas.update(arg_instantiation_metadata.path_to_schemas) return path_to_schemas @classmethod diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 977c4ceaa107..58ffd544224b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -785,9 +785,8 @@ def _get_items(cls, *args, _instantiation_metadata: typing.Optional[Instantiatio cls_item_cls = getattr(cls, '_items', AnyTypeSchema) for i, value in enumerate(list_items): item_path_to_item = _instantiation_metadata.path_to_item+(i,) - if item_path_to_item in _instantiation_metadata.path_to_schemas: - item_cls = _instantiation_metadata.path_to_schemas[item_path_to_item] - else: + item_cls = _instantiation_metadata.path_to_schemas.get(item_path_to_item) + if item_cls is None: item_cls = cls_item_cls if isinstance(value, item_cls): @@ -940,7 +939,6 @@ def _validate_args(cls, arg, _instantiation_metadata: InstantiationMetadata): ) other_path_to_schemas = schema._validate(value, _instantiation_metadata=arg_instantiation_metadata) update(path_to_schemas, other_path_to_schemas) - _instantiation_metadata.path_to_schemas.update(arg_instantiation_metadata.path_to_schemas) return path_to_schemas @classmethod