From 640010ad38cfdc671eb9373904686d0a73d70e0c Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 19 Aug 2022 21:09:57 -0700 Subject: [PATCH] [python-experimental] style + naming cleanup (#13234) * Updates templates * Samples update * Other sample updated * Removes unserscore prefix from Validators * Samples regenerated --- .../PythonExperimentalClientCodegen.java | 4 +- .../python-experimental/endpoint.handlebars | 28 +- .../endpoint_args.handlebars | 2 +- .../enum_value_to_name.handlebars | 4 +- .../imports_schema_types.handlebars | 47 +--- .../model_templates/new.handlebars | 8 +- .../schema_composed_or_anytype.handlebars | 8 +- .../model_templates/schema_dict.handlebars | 2 +- .../model_templates/schema_list.handlebars | 2 +- .../model_templates/validations.handlebars | 2 +- .../model_templates/var_equals_cls.handlebars | 2 +- .../model_templates/xbase_schema.handlebars | 36 +-- .../python-experimental/schemas.handlebars | 38 ++- .../docs/models/EnumWithFalseDoesNotMatch0.md | 2 +- .../docs/models/EnumWithTrueDoesNotMatch1.md | 2 +- ...s_allows_a_schema_which_should_validate.py | 63 +---- ...tionalproperties_are_allowed_by_default.py | 61 +---- ...dditionalproperties_can_exist_by_itself.py | 55 +--- ...operties_should_not_look_in_applicators.py | 65 +---- .../unit_test_api/model/allof.py | 69 +---- .../model/allof_combined_with_anyof_oneof.py | 77 ++---- .../unit_test_api/model/allof_simple_types.py | 69 +---- .../model/allof_with_base_schema.py | 71 +----- .../model/allof_with_one_empty_schema.py | 55 +--- .../allof_with_the_first_empty_schema.py | 57 +---- .../model/allof_with_the_last_empty_schema.py | 57 +---- .../model/allof_with_two_empty_schemas.py | 57 +---- .../unit_test_api/model/anyof.py | 63 +---- .../model/anyof_complex_types.py | 69 +---- .../model/anyof_with_base_schema.py | 69 +---- .../model/anyof_with_one_empty_schema.py | 57 +---- .../model/array_type_matches_arrays.py | 51 +--- .../model/boolean_type_matches_booleans.py | 49 +--- .../unit_test_api/model/by_int.py | 55 +--- .../unit_test_api/model/by_number.py | 55 +--- .../unit_test_api/model/by_small_number.py | 55 +--- .../unit_test_api/model/date_time_format.py | 49 +--- .../unit_test_api/model/email_format.py | 49 +--- .../model/enum_with0_does_not_match_false.py | 51 +--- .../model/enum_with1_does_not_match_true.py | 51 +--- .../model/enum_with_escaped_characters.py | 51 +--- .../model/enum_with_false_does_not_match0.py | 55 +--- .../model/enum_with_true_does_not_match1.py | 55 +--- .../model/enums_in_properties.py | 63 +---- .../unit_test_api/model/forbidden_property.py | 63 +---- .../unit_test_api/model/hostname_format.py | 49 +--- .../model/integer_type_matches_integers.py | 49 +--- ...not_raise_error_when_float_division_inf.py | 51 +--- .../model/invalid_string_value_for_default.py | 59 +---- .../unit_test_api/model/ipv4_format.py | 49 +--- .../unit_test_api/model/ipv6_format.py | 49 +--- .../model/json_pointer_format.py | 49 +--- .../unit_test_api/model/maximum_validation.py | 55 +--- ...aximum_validation_with_unsigned_integer.py | 55 +--- .../model/maxitems_validation.py | 55 +--- .../model/maxlength_validation.py | 55 +--- ...axproperties0_means_the_object_is_empty.py | 55 +--- .../model/maxproperties_validation.py | 55 +--- .../unit_test_api/model/minimum_validation.py | 55 +--- .../minimum_validation_with_signed_integer.py | 55 +--- .../model/minitems_validation.py | 55 +--- .../model/minlength_validation.py | 55 +--- .../model/minproperties_validation.py | 55 +--- .../unit_test_api/model/model_not.py | 55 +--- ...ted_allof_to_check_validation_semantics.py | 61 +---- ...ted_anyof_to_check_validation_semantics.py | 61 +---- .../unit_test_api/model/nested_items.py | 57 +---- ...ted_oneof_to_check_validation_semantics.py | 61 +---- .../model/not_more_complex_schema.py | 63 +---- .../model/nul_characters_in_strings.py | 51 +--- .../null_type_matches_only_the_null_object.py | 49 +--- .../model/number_type_matches_numbers.py | 49 +--- .../model/object_properties_validation.py | 61 +---- .../unit_test_api/model/oneof.py | 63 +---- .../model/oneof_complex_types.py | 69 +---- .../model/oneof_with_base_schema.py | 69 +---- .../model/oneof_with_empty_schema.py | 57 +---- .../model/oneof_with_required.py | 67 +---- .../model/pattern_is_not_anchored.py | 55 +--- .../unit_test_api/model/pattern_validation.py | 55 +--- .../properties_with_escaped_characters.py | 65 +---- ...perty_named_ref_that_is_not_a_reference.py | 55 +--- .../model/ref_in_additionalproperties.py | 53 +--- .../unit_test_api/model/ref_in_allof.py | 53 +--- .../unit_test_api/model/ref_in_anyof.py | 53 +--- .../unit_test_api/model/ref_in_items.py | 49 +--- .../unit_test_api/model/ref_in_not.py | 53 +--- .../unit_test_api/model/ref_in_oneof.py | 53 +--- .../unit_test_api/model/ref_in_property.py | 55 +--- .../model/required_default_validation.py | 57 +---- .../model/required_validation.py | 59 +---- .../model/required_with_empty_array.py | 57 +---- .../model/required_with_escaped_characters.py | 53 +--- .../model/simple_enum_validation.py | 51 +--- .../model/string_type_matches_strings.py | 49 +--- ..._do_anything_if_the_property_is_missing.py | 59 +---- .../model/uniqueitems_false_validation.py | 55 +--- .../model/uniqueitems_validation.py | 55 +--- .../unit_test_api/model/uri_format.py | 49 +--- .../model/uri_reference_format.py | 49 +--- .../model/uri_template_format.py | 49 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 69 +---- .../post.py | 61 +---- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 59 +---- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 59 +---- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 53 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 55 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 65 +---- .../post.py | 57 +---- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 55 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 55 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 49 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../post.py | 51 +--- .../unit_test_api/schemas.py | 38 ++- .../docs/models/BooleanEnum.md | 2 +- .../model/additional_properties_class.py | 111 +++----- ...ditional_properties_with_array_of_enums.py | 55 +--- .../petstore_api/model/address.py | 55 +--- .../petstore_api/model/animal.py | 59 +---- .../petstore_api/model/animal_farm.py | 49 +--- .../petstore_api/model/any_type_not_string.py | 55 +--- .../petstore_api/model/api_response.py | 65 +---- .../petstore_api/model/apple.py | 69 +---- .../petstore_api/model/apple_req.py | 57 +---- .../model/array_holding_any_type.py | 51 +--- .../model/array_of_array_of_number_only.py | 61 +---- .../petstore_api/model/array_of_enums.py | 49 +--- .../model/array_of_number_only.py | 59 +---- .../petstore_api/model/array_test.py | 73 +----- .../model/array_with_validations_in_items.py | 55 +--- .../petstore_api/model/banana.py | 55 +--- .../petstore_api/model/banana_req.py | 57 +---- .../petstore_api/model/bar.py | 49 +--- .../petstore_api/model/basque_pig.py | 57 +---- .../petstore_api/model/boolean.py | 49 +--- .../petstore_api/model/boolean_enum.py | 55 +--- .../petstore_api/model/capitalization.py | 77 ++---- .../petstore_api/model/cat.py | 63 +---- .../petstore_api/model/category.py | 59 +---- .../petstore_api/model/child_cat.py | 63 +---- .../petstore_api/model/class_model.py | 57 +---- .../petstore_api/model/client.py | 57 +---- .../model/complex_quadrilateral.py | 65 +---- ...d_any_of_different_types_no_validations.py | 87 ++----- .../petstore_api/model/composed_array.py | 51 +--- .../petstore_api/model/composed_bool.py | 55 +--- .../petstore_api/model/composed_none.py | 55 +--- .../petstore_api/model/composed_number.py | 55 +--- .../petstore_api/model/composed_object.py | 57 +---- .../model/composed_one_of_different_types.py | 75 ++---- .../petstore_api/model/composed_string.py | 55 +--- .../petstore_api/model/currency.py | 51 +--- .../petstore_api/model/danish_pig.py | 57 +---- .../petstore_api/model/date_time_test.py | 49 +--- .../model/date_time_with_validations.py | 51 +--- .../model/date_with_validations.py | 51 +--- .../petstore_api/model/decimal_payload.py | 49 +--- .../petstore_api/model/dog.py | 63 +---- .../petstore_api/model/drawing.py | 63 +---- .../petstore_api/model/enum_arrays.py | 67 +---- .../petstore_api/model/enum_class.py | 51 +--- .../petstore_api/model/enum_test.py | 85 ++----- .../model/equilateral_triangle.py | 65 +---- .../petstore_api/model/file.py | 57 +---- .../model/file_schema_test_class.py | 59 +---- .../petstore_api/model/foo.py | 57 +---- .../petstore_api/model/format_test.py | 149 ++++------- .../petstore_api/model/fruit.py | 57 +---- .../petstore_api/model/fruit_req.py | 55 +--- .../petstore_api/model/gm_fruit.py | 57 +---- .../petstore_api/model/grandparent_animal.py | 55 +--- .../petstore_api/model/has_only_read_only.py | 61 +---- .../petstore_api/model/health_check_result.py | 65 +---- .../petstore_api/model/integer_enum.py | 51 +--- .../petstore_api/model/integer_enum_big.py | 51 +--- .../model/integer_enum_one_value.py | 51 +--- .../model/integer_enum_with_default_value.py | 51 +--- .../petstore_api/model/integer_max10.py | 51 +--- .../petstore_api/model/integer_min15.py | 51 +--- .../petstore_api/model/isosceles_triangle.py | 65 +---- .../petstore_api/model/mammal.py | 53 +--- .../petstore_api/model/map_test.py | 93 ++----- ...perties_and_additional_properties_class.py | 69 +---- .../petstore_api/model/model200_response.py | 59 +---- .../petstore_api/model/model_return.py | 55 +--- .../petstore_api/model/money.py | 55 +--- .../petstore_api/model/name.py | 61 +---- .../model/no_additional_properties.py | 57 +---- .../petstore_api/model/nullable_class.py | 239 +++++++----------- .../petstore_api/model/nullable_shape.py | 55 +--- .../petstore_api/model/nullable_string.py | 57 +---- .../petstore_api/model/number.py | 49 +--- .../petstore_api/model/number_only.py | 57 +---- .../model/number_with_validations.py | 51 +--- .../petstore_api/model/object_interface.py | 49 +--- .../model/object_model_with_ref_props.py | 63 +---- .../model/object_with_decimal_properties.py | 63 +---- .../object_with_difficultly_named_props.py | 59 +---- ...object_with_inline_composition_property.py | 65 +---- .../model/object_with_validations.py | 55 +--- .../petstore_api/model/order.py | 79 ++---- .../petstore_api/model/parent_pet.py | 55 +--- .../petstore_api/model/pet.py | 75 ++---- .../petstore_api/model/pig.py | 53 +--- .../petstore_api/model/player.py | 59 +---- .../petstore_api/model/quadrilateral.py | 53 +--- .../model/quadrilateral_interface.py | 59 +---- .../petstore_api/model/read_only_first.py | 61 +---- .../petstore_api/model/scalene_triangle.py | 65 +---- .../petstore_api/model/shape.py | 53 +--- .../petstore_api/model/shape_or_null.py | 55 +--- .../model/simple_quadrilateral.py | 65 +---- .../petstore_api/model/some_object.py | 53 +--- .../petstore_api/model/special_model_name.py | 57 +---- .../petstore_api/model/string.py | 49 +--- .../petstore_api/model/string_boolean_map.py | 55 +--- .../petstore_api/model/string_enum.py | 61 +---- .../model/string_enum_with_default_value.py | 51 +--- .../model/string_with_validation.py | 51 +--- .../petstore_api/model/tag.py | 61 +---- .../petstore_api/model/triangle.py | 53 +--- .../petstore_api/model/triangle_interface.py | 59 +---- .../petstore_api/model/user.py | 121 +++------ .../petstore_api/model/uuid_string.py | 51 +--- .../petstore_api/model/whale.py | 65 +---- .../petstore_api/model/zebra.py | 63 +---- .../paths/another_fake_dummy/patch.py | 51 +--- .../petstore_api/paths/fake/patch.py | 51 +--- .../petstore_api/paths/fake_1/post.py | 131 ++++------ .../petstore_api/paths/fake_2/get.py | 119 +++------ .../petstore_api/paths/fake_3/delete.py | 71 +----- .../get.py | 57 +---- .../paths/fake_body_with_file_schema/put.py | 53 +--- .../paths/fake_body_with_query_params/put.py | 59 +---- .../paths/fake_case_sensitive_params/put.py | 61 +---- .../paths/fake_classname_test/patch.py | 51 +--- .../paths/fake_delete_coffee_id/delete.py | 61 +---- .../petstore_api/paths/fake_health/get.py | 49 +--- .../fake_inline_additional_properties/post.py | 61 +---- .../paths/fake_inline_composition_/post.py | 145 ++++------- .../paths/fake_json_form_data/get.py | 69 +---- .../paths/fake_json_with_charset/post.py | 61 +---- .../paths/fake_obj_in_query/get.py | 65 +---- .../post.py | 111 +++----- .../post.py | 75 ++---- .../paths/fake_ref_obj_in_query/get.py | 55 +--- .../paths/fake_refs_array_of_enums/post.py | 57 +---- .../paths/fake_refs_arraymodel/post.py | 57 +---- .../paths/fake_refs_boolean/post.py | 61 +---- .../post.py | 57 +---- .../petstore_api/paths/fake_refs_enum/post.py | 57 +---- .../paths/fake_refs_mammal/post.py | 51 +--- .../paths/fake_refs_number/post.py | 57 +---- .../post.py | 57 +---- .../paths/fake_refs_string/post.py | 61 +---- .../paths/fake_response_without_schema/get.py | 53 +--- .../paths/fake_test_query_paramters/put.py | 75 ++---- .../paths/fake_upload_download_file/post.py | 55 +--- .../paths/fake_upload_file/post.py | 69 +---- .../paths/fake_upload_files/post.py | 69 +---- .../petstore_api/paths/foo/get.py | 57 +---- .../petstore_api/paths/pet/post.py | 57 +---- .../petstore_api/paths/pet_2/put.py | 61 +---- .../paths/pet_find_by_status/get.py | 67 +---- .../paths/pet_find_by_tags/get.py | 65 +---- .../petstore_api/paths/pet_pet_id/delete.py | 63 +---- .../petstore_api/paths/pet_pet_id_1/get.py | 63 +---- .../petstore_api/paths/pet_pet_id_3/post.py | 79 ++---- .../paths/pet_pet_id_upload_image/post.py | 77 ++---- .../petstore_api/paths/store_inventory/get.py | 57 +---- .../petstore_api/paths/store_order/post.py | 55 +--- .../paths/store_order_order_id/delete.py | 61 +---- .../paths/store_order_order_id_1/get.py | 65 +---- .../petstore_api/paths/user/post.py | 53 +--- .../paths/user_create_with_array/post.py | 55 +--- .../paths/user_create_with_list/post.py | 55 +--- .../petstore_api/paths/user_login/get.py | 67 +---- .../petstore_api/paths/user_logout/get.py | 51 +--- .../paths/user_username/delete.py | 61 +---- .../petstore_api/paths/user_username_1/get.py | 63 +---- .../petstore_api/paths/user_username_2/put.py | 63 +---- .../petstore_api/schemas.py | 38 ++- 444 files changed, 2682 insertions(+), 21903 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java index 804cc735a0b..5672276cdd4 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java @@ -1304,9 +1304,9 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen { return value; } else if ("bool".equals(datatype)) { if (value.equals("true")) { - return "BoolClass.TRUE"; + return "schemas.BoolClass.TRUE"; } - return "BoolClass.FALSE"; + return "schemas.BoolClass.FALSE"; } else { String fixedValue = (String) processTestExampleData(value); return ensureQuotes(fixedValue); diff --git a/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars index 0f28a083389..b637743b0bf 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars @@ -289,7 +289,7 @@ class ApiResponseFor{{code}}(api_client.ApiResponse): {{#if this.schema}} {{this.schema.baseName}}, {{else}} - Unset, + schemas.Unset, {{/if}} {{/each}} ] @@ -298,25 +298,25 @@ class ApiResponseFor{{code}}(api_client.ApiResponse): {{#or responseHeaders content}} {{#if responseHeaders}} headers: ResponseHeadersFor{{code}} - body: Unset = unset + body: schemas.Unset = schemas.unset {{else}} body: typing.Union[ {{#each content}} {{#if this.schema}} {{this.schema.baseName}}, {{else}} - Unset, + schemas.Unset, {{/if}} {{/each}} ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset {{/if}} {{/or}} {{/and}} {{#unless responseHeaders}} {{#unless content}} - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset {{/unless}} {{/unless}} @@ -400,8 +400,8 @@ class BaseApi(api_client.Api): request_path_{{paramName}}, {{/each}} ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -417,8 +417,8 @@ class BaseApi(api_client.Api): request_query_{{paramName}}, {{/each}} ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() @@ -437,8 +437,8 @@ class BaseApi(api_client.Api): request_header_{{paramName}}, {{/each}} ): - parameter_data = header_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = header_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _headers.extend(serialized_data) @@ -452,7 +452,7 @@ class BaseApi(api_client.Api): {{#with bodyParam}} {{#if required}} - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') {{/if}} @@ -461,7 +461,7 @@ class BaseApi(api_client.Api): {{#if required}} {{> endpoint_body_serialization }} {{else}} - if body is not unset: + if body is not schemas.unset: {{> endpoint_body_serialization }} {{/if}} {{/with}} diff --git a/modules/openapi-generator/src/main/resources/python-experimental/endpoint_args.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/endpoint_args.handlebars index a8d46733e96..f0450c76851 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/endpoint_args.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/endpoint_args.handlebars @@ -1,7 +1,7 @@ self: {{selfType}}, {{#if bodyParam}} {{#with bodyParam}} - body: typing.Union[{{#each content}}{{#unless @first}}, {{/unless}}{{this.schema.baseName}}{{/each}}{{#unless required}}, Unset] = unset{{else}}]{{/unless}}, + body: typing.Union[{{#each content}}{{#unless @first}}, {{/unless}}{{this.schema.baseName}}{{/each}}{{#unless required}}, schemas.Unset] = schemas.unset{{else}}]{{/unless}}, {{/with}} {{/if}} {{#if queryParams}} diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enum_value_to_name.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enum_value_to_name.handlebars index 511dc75597c..2ed517385a2 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enum_value_to_name.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enum_value_to_name.handlebars @@ -1,7 +1,7 @@ -_SchemaEnumMaker( +schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ {{#if isNull}} - NoneClass.NONE: "NONE", + schemas.NoneClass.NONE: "NONE", {{/if}} {{#with allowableValues}} {{#each enumVars}} 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 48b47a7e341..9fea0368613 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 @@ -2,49 +2,4 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from {{packageName}}.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from {{packageName}} import schemas # noqa: F401 diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/new.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/new.handlebars index 31177f07d0c..5bd6baa6766 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/new.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/new.handlebars @@ -16,17 +16,17 @@ def __new__( {{#unless nameInSnakeCase}} {{#unless getRequired}} {{#unless complexType}} - {{baseName}}: typing.Union[{{baseName}}, Unset] = unset, + {{baseName}}: typing.Union[{{baseName}}, schemas.Unset] = schemas.unset, {{/unless}} {{#if complexType}} - {{baseName}}: typing.Union['{{complexType}}', Unset] = unset, + {{baseName}}: typing.Union['{{complexType}}', schemas.Unset] = schemas.unset, {{/if}} {{/unless}} {{/unless}} {{/each}} - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, {{#with additionalProperties}} - **kwargs: typing.Type[Schema], + **kwargs: typing.Type[schemas.Schema], {{/with}} ) -> '{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}}': return super().__new__( diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars index 3ea4a7c841e..fc3c9462292 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars @@ -6,16 +6,16 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}} {{/if}} {{#if getIsAnyType}} {{#if composedSchemas}} - ComposedSchema + schemas.ComposedSchema {{else}} - AnyTypeSchema + schemas.AnyTypeSchema {{/if}} {{else}} {{#if getHasMultipleTypes}} - _SchemaTypeChecker(typing.Union[{{#if isArray}}tuple, {{/if}}{{#if isMap}}frozendict, {{/if}}{{#if isNull}}NoneClass, {{/if}}{{#if isString}}str, {{/if}}{{#if isByteArray}}str, {{/if}}{{#if isUnboundedInteger}}decimal.Decimal, {{/if}}{{#if isShort}}decimal.Decimal, {{/if}}{{#if isLong}}decimal.Decimal, {{/if}}{{#if isFloat}}decimal.Decimal, {{/if}}{{#if isDouble}}decimal.Decimal, {{/if}}{{#if isNumber}}decimal.Decimal, {{/if}}{{#if isDate}}str, {{/if}}{{#if isDateTime}}str, {{/if}}{{#if isDecimal}}str, {{/if}}{{#if isBoolean}}BoolClass, {{/if}}]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[{{#if isArray}}tuple, {{/if}}{{#if isMap}}frozendict, {{/if}}{{#if isNull}}schemas.NoneClass, {{/if}}{{#if isString}}str, {{/if}}{{#if isByteArray}}str, {{/if}}{{#if isUnboundedInteger}}decimal.Decimal, {{/if}}{{#if isShort}}decimal.Decimal, {{/if}}{{#if isLong}}decimal.Decimal, {{/if}}{{#if isFloat}}decimal.Decimal, {{/if}}{{#if isDouble}}decimal.Decimal, {{/if}}{{#if isNumber}}decimal.Decimal, {{/if}}{{#if isDate}}str, {{/if}}{{#if isDateTime}}str, {{/if}}{{#if isDecimal}}str, {{/if}}{{#if isBoolean}}schemas.BoolClass, {{/if}}]), {{/if}} {{#if composedSchemas}} - ComposedBase, + schemas.ComposedBase, {{/if}} {{#if isEnum}} {{> model_templates/enum_value_to_name }} diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_dict.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_dict.handlebars index c17e0f5764c..9563ea5d15e 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_dict.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_dict.handlebars @@ -4,7 +4,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}} {{#if hasValidation}} {{> model_templates/validations }} {{/if}} - DictSchema + schemas.DictSchema ): {{#if this.classname}} """NOTE: This class is auto generated by OpenAPI Generator. diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_list.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_list.handlebars index 542b486ab4c..b012c9bd2b8 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_list.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_list.handlebars @@ -4,7 +4,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}} {{#if hasValidation}} {{> model_templates/validations }} {{/if}} - ListSchema + schemas.ListSchema ): {{#if this.classname}} """NOTE: This class is auto generated by OpenAPI Generator. diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/validations.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/validations.handlebars index efb463b0a70..bd40b7ee6c0 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/validations.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/validations.handlebars @@ -1,4 +1,4 @@ -_SchemaValidator( +schemas.SchemaValidatorClsFactory( {{#if getUniqueItems}} unique_items=True, {{/if}} diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/var_equals_cls.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/var_equals_cls.handlebars index b25c7275648..eccd201f244 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/var_equals_cls.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/var_equals_cls.handlebars @@ -1 +1 @@ -{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}} = {{#if complexType}}{{complexType}}{{else}}{{#if isNullable}}Nullable{{/if}}{{#if getIsNull}}None{{/if}}{{#if isAnyType}}AnyType{{/if}}{{#if isMap}}Dict{{/if}}{{#if isArray}}List{{/if}}{{#if isString}}Str{{/if}}{{#if isByteArray}}Str{{/if}}{{#if getIsUuid}}UUID{{/if}}{{#if isDate}}Date{{/if}}{{#if isDateTime}}DateTime{{/if}}{{#if isDecimal}}Decimal{{/if}}{{#if isUnboundedInteger}}Int{{/if}}{{#if isShort}}Int32{{/if}}{{#if isLong}}Int64{{/if}}{{#if isFloat}}Float32{{/if}}{{#if isDouble}}Float64{{/if}}{{#if isNumber}}Number{{/if}}{{#if isBoolean}}Bool{{/if}}{{#if isBinary}}Binary{{/if}}Schema{{/if}} +{{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}{{else}}{{baseName}}{{/if}}{{/if}} = {{#if complexType}}{{complexType}}{{else}}schemas.{{#if isNullable}}Nullable{{/if}}{{#if getIsNull}}None{{/if}}{{#if isAnyType}}AnyType{{/if}}{{#if isMap}}Dict{{/if}}{{#if isArray}}List{{/if}}{{#if isString}}Str{{/if}}{{#if isByteArray}}Str{{/if}}{{#if getIsUuid}}UUID{{/if}}{{#if isDate}}Date{{/if}}{{#if isDateTime}}DateTime{{/if}}{{#if isDecimal}}Decimal{{/if}}{{#if isUnboundedInteger}}Int{{/if}}{{#if isShort}}Int32{{/if}}{{#if isLong}}Int64{{/if}}{{#if isFloat}}Float32{{/if}}{{#if isDouble}}Float64{{/if}}{{#if isNumber}}Number{{/if}}{{#if isBoolean}}Bool{{/if}}{{#if isBinary}}Binary{{/if}}Schema{{/if}} diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars index 98271f43460..3b3243439c4 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars @@ -1,54 +1,54 @@ {{#if isArray}} -List{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.List{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isMap}} -Dict{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Dict{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isString}} -Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isByteArray}} -Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Str{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isUnboundedInteger}} -Int{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Int{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isNumber}} -Number{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Number{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#isShort}} -Int32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Int32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/isShort}} {{#isLong}} -Int64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Int64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/isLong}} {{#isFloat}} -Float32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Float32{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/isFloat}} {{#isDouble}} -Float64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Float64{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/isDouble}} {{#if getIsUuid}} -UUID{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.UUID{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isDate}} -Date{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Date{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isDateTime}} -DateTime{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.DateTime{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isDecimal}} -Decimal{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Decimal{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isBoolean}} -Bool{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Bool{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isBinary}} -Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if isNull}} -None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} +schemas.None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if getHasMultipleTypes}} -Schema +schemas.Schema {{/if}} 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 456190c266a..9116f664bc2 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -7,9 +7,7 @@ from datetime import date, datetime, timedelta # noqa: F401 import functools import decimal import io -import os import re -import tempfile import typing import uuid @@ -439,7 +437,7 @@ class Validator(typing.Protocol): pass -def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: +def SchemaValidatorClsFactory(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: class SchemaValidator(ValidatorBase): @classmethod def _validate( @@ -457,7 +455,7 @@ def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, li return SchemaValidator -def _SchemaTypeChecker(union_type_cls: typing.Union[typing.Any]) -> Validator: +def SchemaTypeCheckerClsFactory(union_type_cls: typing.Union[typing.Any]) -> Validator: if typing.get_origin(union_type_cls) is typing.Union: union_classes = typing.get_args(union_type_cls) else: @@ -556,7 +554,7 @@ class EnumMakerInterface(Validator): pass -def _SchemaEnumMaker(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: +def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: class SchemaEnumMaker(EnumMakerBase): @classmethod @property @@ -1726,7 +1724,7 @@ class ComposedBase(Discriminable): # DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase class ComposedSchema( - _SchemaTypeChecker(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), + SchemaTypeCheckerClsFactory(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), ComposedBase, DictBase, ListBase, @@ -1750,7 +1748,7 @@ class ComposedSchema( class ListSchema( - _SchemaTypeChecker(typing.Union[tuple]), + SchemaTypeCheckerClsFactory(typing.Union[tuple]), ListBase, Schema ): @@ -1764,7 +1762,7 @@ class ListSchema( class NoneSchema( - _SchemaTypeChecker(typing.Union[NoneClass]), + SchemaTypeCheckerClsFactory(typing.Union[NoneClass]), NoneBase, Schema ): @@ -1778,7 +1776,7 @@ class NoneSchema( class NumberSchema( - _SchemaTypeChecker(typing.Union[decimal.Decimal]), + SchemaTypeCheckerClsFactory(typing.Union[decimal.Decimal]), NumberBase, Schema ): @@ -1839,7 +1837,7 @@ class IntSchema(IntBase, NumberSchema): class Int32Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-2147483648), inclusive_maximum=decimal.Decimal(2147483647) ), @@ -1855,7 +1853,7 @@ class Int32Schema( class Int64Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-9223372036854775808), inclusive_maximum=decimal.Decimal(9223372036854775807) ), @@ -1871,7 +1869,7 @@ class Int64Schema( class Float32Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38), inclusive_maximum=decimal.Decimal(3.4028234663852886e+38) ), @@ -1891,7 +1889,7 @@ class Float32Schema( class Float64Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308), inclusive_maximum=decimal.Decimal(1.7976931348623157E+308) ), @@ -1911,7 +1909,7 @@ class Float64Schema( class StrSchema( - _SchemaTypeChecker(typing.Union[str]), + SchemaTypeCheckerClsFactory(typing.Union[str]), StrBase, Schema ): @@ -1963,7 +1961,7 @@ class DecimalSchema(DecimalBase, StrSchema): class BytesSchema( - _SchemaTypeChecker(typing.Union[bytes]), + SchemaTypeCheckerClsFactory(typing.Union[bytes]), Schema, ): """ @@ -1974,7 +1972,7 @@ class BytesSchema( class FileSchema( - _SchemaTypeChecker(typing.Union[FileIO]), + SchemaTypeCheckerClsFactory(typing.Union[FileIO]), Schema, ): """ @@ -2003,7 +2001,7 @@ class BinaryBase: class BinarySchema( - _SchemaTypeChecker(typing.Union[bytes, FileIO]), + SchemaTypeCheckerClsFactory(typing.Union[bytes, FileIO]), ComposedBase, BinaryBase, Schema, @@ -2035,7 +2033,7 @@ class BinarySchema( class BoolSchema( - _SchemaTypeChecker(typing.Union[BoolClass]), + SchemaTypeCheckerClsFactory(typing.Union[BoolClass]), BoolBase, Schema ): @@ -2049,7 +2047,7 @@ class BoolSchema( class AnyTypeSchema( - _SchemaTypeChecker( + SchemaTypeCheckerClsFactory( typing.Union[frozendict, tuple, decimal.Decimal, str, BoolClass, NoneClass, bytes, FileIO] ), DictBase, @@ -2064,7 +2062,7 @@ class AnyTypeSchema( class DictSchema( - _SchemaTypeChecker(typing.Union[frozendict]), + SchemaTypeCheckerClsFactory(typing.Union[frozendict]), DictBase, Schema ): diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithFalseDoesNotMatch0.md b/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithFalseDoesNotMatch0.md index 7c403b9a359..c8f63aa8393 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithFalseDoesNotMatch0.md +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithFalseDoesNotMatch0.md @@ -2,7 +2,7 @@ Type | Description | Notes ------------- | ------------- | ------------- -**bool** | | must be one of [BoolClass.FALSE, ] +**bool** | | must be one of [schemas.BoolClass.FALSE, ] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithTrueDoesNotMatch1.md b/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithTrueDoesNotMatch1.md index 879a398921c..0ca2930b800 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithTrueDoesNotMatch1.md +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/docs/models/EnumWithTrueDoesNotMatch1.md @@ -2,7 +2,7 @@ Type | Description | Notes ------------- | ------------- | ------------- -**bool** | | must be one of [BoolClass.TRUE, ] +**bool** | | must be one of [schemas.BoolClass.TRUE, ] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py index 5f7428df6f0..66dea6ef2f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py @@ -20,74 +20,29 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AdditionalpropertiesAllowsASchemaWhichShouldValidate( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - foo = AnyTypeSchema - bar = AnyTypeSchema - _additional_properties = BoolSchema + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema + _additional_properties = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - foo: typing.Union[foo, Unset] = unset, - bar: typing.Union[bar, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AdditionalpropertiesAllowsASchemaWhichShouldValidate': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py index f51599e5a37..a623cad348f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py @@ -20,72 +20,27 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AdditionalpropertiesAreAllowedByDefault( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - foo = AnyTypeSchema - bar = AnyTypeSchema + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - foo: typing.Union[foo, Unset] = unset, - bar: typing.Union[bar, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AdditionalpropertiesAreAllowedByDefault': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py index 7353e1a2495..f1c840eae87 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py @@ -20,70 +20,25 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AdditionalpropertiesCanExistByItself( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _additional_properties = BoolSchema + _additional_properties = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AdditionalpropertiesCanExistByItself': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py index 6f0c865a804..5f051b61741 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AdditionalpropertiesShouldNotLookInApplicators( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _additional_properties = BoolSchema + _additional_properties = schemas.BoolSchema @classmethod @property @@ -92,16 +47,16 @@ class AdditionalpropertiesShouldNotLookInApplicators( class all_of_0( - AnyTypeSchema + schemas.AnyTypeSchema ): - foo = AnyTypeSchema + foo = schemas.AnyTypeSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_0': return super().__new__( cls, @@ -125,8 +80,8 @@ class AdditionalpropertiesShouldNotLookInApplicators( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AdditionalpropertiesShouldNotLookInApplicators': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py index 9e0a845425b..97382488cd1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class Allof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,19 +46,19 @@ class Allof( class all_of_0( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "bar", } - bar = IntSchema + bar = schemas.IntSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], bar: bar, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_0': return super().__new__( cls, @@ -115,19 +70,19 @@ class Allof( class all_of_1( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo", } - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], foo: foo, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -152,8 +107,8 @@ class Allof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Allof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py index f8f82209f04..ad1f3f337e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofCombinedWithAnyofOneof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class AllofCombinedWithAnyofOneof( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_0': return super().__new__( cls, @@ -112,17 +67,17 @@ class AllofCombinedWithAnyofOneof( class one_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=5, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_0': return super().__new__( cls, @@ -133,17 +88,17 @@ class AllofCombinedWithAnyofOneof( class any_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=3, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_0': return super().__new__( cls, @@ -168,8 +123,8 @@ class AllofCombinedWithAnyofOneof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofCombinedWithAnyofOneof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py index 6b725ef420e..0630a3b0f7e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofSimpleTypes( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class AllofSimpleTypes( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=30, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_0': return super().__new__( cls, @@ -112,17 +67,17 @@ class AllofSimpleTypes( class all_of_1( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_minimum=20, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -146,8 +101,8 @@ class AllofSimpleTypes( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofSimpleTypes': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py index 5a823f5b5e9..45912efcd9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofWithBaseSchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,7 +34,7 @@ class AllofWithBaseSchema( _required_property_names = { "bar", } - bar = IntSchema + bar = schemas.IntSchema @classmethod @property @@ -95,19 +50,19 @@ class AllofWithBaseSchema( class all_of_0( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo", } - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], foo: foo, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_0': return super().__new__( cls, @@ -119,19 +74,19 @@ class AllofWithBaseSchema( class all_of_1( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "baz", } - baz = NoneSchema + baz = schemas.NoneSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], baz: baz, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -157,8 +112,8 @@ class AllofWithBaseSchema( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], bar: bar, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofWithBaseSchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py index f38bf6f3926..7d92e3dbd5f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofWithOneEmptySchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +43,7 @@ class AllofWithOneEmptySchema( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -104,8 +59,8 @@ class AllofWithOneEmptySchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofWithOneEmptySchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py index 78af6a9ae37..19eae944ebf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofWithTheFirstEmptySchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,8 +43,8 @@ class AllofWithTheFirstEmptySchema( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema - all_of_1 = NumberSchema + all_of_0 = schemas.AnyTypeSchema + all_of_1 = schemas.NumberSchema return { 'allOf': [ all_of_0, @@ -106,8 +61,8 @@ class AllofWithTheFirstEmptySchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofWithTheFirstEmptySchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py index ef7e080a995..66af6a567d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofWithTheLastEmptySchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,8 +43,8 @@ class AllofWithTheLastEmptySchema( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = NumberSchema - all_of_1 = AnyTypeSchema + all_of_0 = schemas.NumberSchema + all_of_1 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -106,8 +61,8 @@ class AllofWithTheLastEmptySchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofWithTheLastEmptySchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py index dce2e854f53..f29590f4f31 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AllofWithTwoEmptySchemas( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,8 +43,8 @@ class AllofWithTwoEmptySchemas( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema - all_of_1 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema + all_of_1 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -106,8 +61,8 @@ class AllofWithTwoEmptySchemas( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AllofWithTwoEmptySchemas': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py index abefcd4238f..577786e449c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class Anyof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,21 +43,21 @@ class Anyof( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - any_of_0 = IntSchema + any_of_0 = schemas.IntSchema class any_of_1( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_minimum=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_1': return super().__new__( cls, @@ -126,8 +81,8 @@ class Anyof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Anyof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py index b8522a1062e..cf5c3467e55 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AnyofComplexTypes( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,19 +46,19 @@ class AnyofComplexTypes( class any_of_0( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "bar", } - bar = IntSchema + bar = schemas.IntSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], bar: bar, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_0': return super().__new__( cls, @@ -115,19 +70,19 @@ class AnyofComplexTypes( class any_of_1( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo", } - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], foo: foo, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_1': return super().__new__( cls, @@ -152,8 +107,8 @@ class AnyofComplexTypes( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AnyofComplexTypes': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py index 8a47aed7163..d4cbe1b9eef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AnyofWithBaseSchema( - ComposedBase, - StrSchema + schemas.ComposedBase, + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -92,17 +47,17 @@ class AnyofWithBaseSchema( class any_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_length=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_0': return super().__new__( cls, @@ -113,17 +68,17 @@ class AnyofWithBaseSchema( class any_of_1( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=4, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_1': return super().__new__( cls, @@ -147,7 +102,7 @@ class AnyofWithBaseSchema( def __new__( cls, *args: typing.Union[str, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'AnyofWithBaseSchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py index c68ede29d28..0e7c29446bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class AnyofWithOneEmptySchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,8 +43,8 @@ class AnyofWithOneEmptySchema( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - any_of_0 = NumberSchema - any_of_1 = AnyTypeSchema + any_of_0 = schemas.NumberSchema + any_of_1 = schemas.AnyTypeSchema return { 'allOf': [ ], @@ -106,8 +61,8 @@ class AnyofWithOneEmptySchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AnyofWithOneEmptySchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py index 36f1c01424a..0f56fa788b5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py @@ -20,60 +20,15 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class ArrayTypeMatchesArrays( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _items = AnyTypeSchema + _items = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py index 405d65fe299..1e218b8f480 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -BooleanTypeMatchesBooleans = BoolSchema +from unit_test_api import schemas # noqa: F401 +BooleanTypeMatchesBooleans = schemas.BoolSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py index 5ae8498de17..09e968cb9c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class ByInt( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class ByInt( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ByInt': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py index c5692a559b1..677eecaf805 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class ByNumber( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=1.5, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class ByNumber( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ByNumber': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py index 03b8054a9af..5743b70fbe6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class BySmallNumber( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=0.00010, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class BySmallNumber( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'BySmallNumber': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py index d2a861677dd..b0a32a2a426 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -DateTimeFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +DateTimeFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py index 69fcb222399..8f0febee19a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -EmailFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +EmailFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py index 65b18883b74..7f508ccd26b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class EnumWith0DoesNotMatchFalse( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 0: "POSITIVE_0", } ), - NumberSchema + schemas.NumberSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py index 48a26545d5e..1ce0cd52887 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class EnumWith1DoesNotMatchTrue( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 1: "POSITIVE_1", } ), - NumberSchema + schemas.NumberSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py index d8394a82a9a..3c72ce518b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py @@ -20,62 +20,17 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class EnumWithEscapedCharacters( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "foo\nbar": "FOO_BAR", "foo\rbar": "FOO_BAR", } ), - StrSchema + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py index e58c3e0f3b1..003abd164a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class EnumWithFalseDoesNotMatch0( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ - BoolClass.FALSE: "FALSE", + schemas.BoolClass.FALSE: "FALSE", } ), - BoolSchema + schemas.BoolSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,4 +40,4 @@ class EnumWithFalseDoesNotMatch0( @classmethod @property def FALSE(cls): - return cls(BoolClass.FALSE) + return cls(schemas.BoolClass.FALSE) diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py index 750921e6038..a126b87aa68 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class EnumWithTrueDoesNotMatch1( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ - BoolClass.TRUE: "TRUE", + schemas.BoolClass.TRUE: "TRUE", } ), - BoolSchema + schemas.BoolSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,4 +40,4 @@ class EnumWithTrueDoesNotMatch1( @classmethod @property def TRUE(cls): - return cls(BoolClass.TRUE) + return cls(schemas.BoolClass.TRUE) diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py index b0503b13d05..fd05d7bd956 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class EnumsInProperties( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,12 +37,12 @@ class EnumsInProperties( class foo( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "foo": "FOO", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -97,12 +52,12 @@ class EnumsInProperties( class bar( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "bar": "BAR", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -115,9 +70,9 @@ class EnumsInProperties( cls, *args: typing.Union[dict, frozendict, ], bar: bar, - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'EnumsInProperties': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py index 122f5b7854b..7f506d43ba9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class ForbiddenProperty( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,7 +34,7 @@ class ForbiddenProperty( class foo( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -93,7 +48,7 @@ class ForbiddenProperty( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - not_schema = AnyTypeSchema + not_schema = schemas.AnyTypeSchema return { 'allOf': [ ], @@ -108,8 +63,8 @@ class ForbiddenProperty( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'foo': return super().__new__( cls, @@ -121,9 +76,9 @@ class ForbiddenProperty( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ForbiddenProperty': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py index c9e0496649e..fc836685464 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -HostnameFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +HostnameFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py index 825e64271a6..4df7928ec7b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -IntegerTypeMatchesIntegers = IntSchema +from unit_test_api import schemas # noqa: F401 +IntegerTypeMatchesIntegers = schemas.IntSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py index 053368514d1..dc11cd9b316 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( multiple_of=0.123456789, ), - IntSchema + schemas.IntSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py index 827fe681241..b07a0f2fa9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class InvalidStringValueForDefault( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,19 +34,19 @@ class InvalidStringValueForDefault( class bar( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=4, ), - StrSchema + schemas.StrSchema ): pass def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - bar: typing.Union[bar, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'InvalidStringValueForDefault': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py index 59928308a3d..92ac68fe66a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -Ipv4Format = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +Ipv4Format = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py index 79234be74fe..ec484a1d8a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -Ipv6Format = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +Ipv6Format = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py index d2fe143e890..0b6d36075f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -JsonPointerFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +JsonPointerFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py index 5df92433e0d..651d24c98e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MaximumValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=3.0, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MaximumValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MaximumValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py index 950d86909f5..fde99535961 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MaximumValidationWithUnsignedInteger( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=300, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MaximumValidationWithUnsignedInteger( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MaximumValidationWithUnsignedInteger': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py index c972ac75f4a..e919b51d7da 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MaxitemsValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_items=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MaxitemsValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MaxitemsValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py index de4c7a9acbb..013a7388af7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MaxlengthValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_length=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MaxlengthValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MaxlengthValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py index c601df9f01c..34eaf327403 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class Maxproperties0MeansTheObjectIsEmpty( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_properties=0, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class Maxproperties0MeansTheObjectIsEmpty( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Maxproperties0MeansTheObjectIsEmpty': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py index f88050876c7..2ad1aa8ab4b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MaxpropertiesValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_properties=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MaxpropertiesValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MaxpropertiesValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py index 2b4610a446e..a238eee2e15 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MinimumValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_minimum=1.1, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MinimumValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MinimumValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py index 8e7bc84dd4c..e2cf67e3627 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MinimumValidationWithSignedInteger( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_minimum=-2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MinimumValidationWithSignedInteger( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MinimumValidationWithSignedInteger': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py index b2311506841..292d316a87c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MinitemsValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_items=1, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MinitemsValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MinitemsValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py index 38933cceefb..d73097f0a72 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MinlengthValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MinlengthValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MinlengthValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py index 38e91f35b5a..dc67d8aa6e6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class MinpropertiesValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_properties=1, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class MinpropertiesValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MinpropertiesValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py index b876c72078d..c91df0e87f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class ModelNot( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +43,7 @@ class ModelNot( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - not_schema = IntSchema + not_schema = schemas.IntSchema return { 'allOf': [ ], @@ -103,8 +58,8 @@ class ModelNot( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ModelNot': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py index 0a8b1d0d356..333defc08b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class NestedAllofToCheckValidationSemantics( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,7 +46,7 @@ class NestedAllofToCheckValidationSemantics( class all_of_0( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -105,7 +60,7 @@ class NestedAllofToCheckValidationSemantics( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = NoneSchema + all_of_0 = schemas.NoneSchema return { 'allOf': [ all_of_0, @@ -121,8 +76,8 @@ class NestedAllofToCheckValidationSemantics( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_0': return super().__new__( cls, @@ -145,8 +100,8 @@ class NestedAllofToCheckValidationSemantics( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NestedAllofToCheckValidationSemantics': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py index 99edb748805..aeb640615df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class NestedAnyofToCheckValidationSemantics( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,7 +46,7 @@ class NestedAnyofToCheckValidationSemantics( class any_of_0( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -105,7 +60,7 @@ class NestedAnyofToCheckValidationSemantics( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - any_of_0 = NoneSchema + any_of_0 = schemas.NoneSchema return { 'allOf': [ ], @@ -121,8 +76,8 @@ class NestedAnyofToCheckValidationSemantics( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'any_of_0': return super().__new__( cls, @@ -145,8 +100,8 @@ class NestedAnyofToCheckValidationSemantics( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NestedAnyofToCheckValidationSemantics': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py index c26c7882238..78adba40585 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class NestedItems( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,16 +34,16 @@ class NestedItems( class _items( - ListSchema + schemas.ListSchema ): class _items( - ListSchema + schemas.ListSchema ): class _items( - ListSchema + schemas.ListSchema ): - _items = NumberSchema + _items = schemas.NumberSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py index 7a0d8bb3711..40d14c5bb72 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class NestedOneofToCheckValidationSemantics( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,7 +46,7 @@ class NestedOneofToCheckValidationSemantics( class one_of_0( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -105,7 +60,7 @@ class NestedOneofToCheckValidationSemantics( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_0 = NoneSchema + one_of_0 = schemas.NoneSchema return { 'allOf': [ ], @@ -121,8 +76,8 @@ class NestedOneofToCheckValidationSemantics( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_0': return super().__new__( cls, @@ -145,8 +100,8 @@ class NestedOneofToCheckValidationSemantics( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NestedOneofToCheckValidationSemantics': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py index 7457e5eaf9a..64db8b1d799 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class NotMoreComplexSchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class NotMoreComplexSchema( class not_schema( - DictSchema + schemas.DictSchema ): - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'not_schema': return super().__new__( cls, @@ -124,8 +79,8 @@ class NotMoreComplexSchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NotMoreComplexSchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py index 0ee14c8573c..2083901ce84 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class NulCharactersInStrings( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "hello\x00there": "HELLOTHERE", } ), - StrSchema + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py index 1c634f9eb14..0752cbb82d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -NullTypeMatchesOnlyTheNullObject = NoneSchema +from unit_test_api import schemas # noqa: F401 +NullTypeMatchesOnlyTheNullObject = schemas.NoneSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py index dda953a7cd9..49491275db1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -NumberTypeMatchesNumbers = NumberSchema +from unit_test_api import schemas # noqa: F401 +NumberTypeMatchesNumbers = schemas.NumberSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py index 62b75e4b468..2d1376684cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py @@ -20,72 +20,27 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class ObjectPropertiesValidation( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - foo = IntSchema - bar = StrSchema + foo = schemas.IntSchema + bar = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - foo: typing.Union[foo, Unset] = unset, - bar: typing.Union[bar, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ObjectPropertiesValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py index 8d55aac39f6..35d564664ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class Oneof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,21 +43,21 @@ class Oneof( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_0 = IntSchema + one_of_0 = schemas.IntSchema class one_of_1( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_minimum=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_1': return super().__new__( cls, @@ -126,8 +81,8 @@ class Oneof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Oneof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py index a2c54eceb35..dd6de9e766d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class OneofComplexTypes( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,19 +46,19 @@ class OneofComplexTypes( class one_of_0( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "bar", } - bar = IntSchema + bar = schemas.IntSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], bar: bar, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_0': return super().__new__( cls, @@ -115,19 +70,19 @@ class OneofComplexTypes( class one_of_1( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo", } - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], foo: foo, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_1': return super().__new__( cls, @@ -152,8 +107,8 @@ class OneofComplexTypes( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'OneofComplexTypes': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py index 27157345bb8..abe35b57d10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class OneofWithBaseSchema( - ComposedBase, - StrSchema + schemas.ComposedBase, + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -92,17 +47,17 @@ class OneofWithBaseSchema( class one_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=2, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_0': return super().__new__( cls, @@ -113,17 +68,17 @@ class OneofWithBaseSchema( class one_of_1( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_length=4, ), - AnyTypeSchema + schemas.AnyTypeSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_1': return super().__new__( cls, @@ -147,7 +102,7 @@ class OneofWithBaseSchema( def __new__( cls, *args: typing.Union[str, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'OneofWithBaseSchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py index 03231ab1592..b2968356c1f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class OneofWithEmptySchema( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,8 +43,8 @@ class OneofWithEmptySchema( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_0 = NumberSchema - one_of_1 = AnyTypeSchema + one_of_0 = schemas.NumberSchema + one_of_1 = schemas.AnyTypeSchema return { 'allOf': [ ], @@ -106,8 +61,8 @@ class OneofWithEmptySchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'OneofWithEmptySchema': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py index 1c2607f2dae..36a0548d5b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class OneofWithRequired( - ComposedBase, - DictSchema + schemas.ComposedBase, + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -92,7 +47,7 @@ class OneofWithRequired( class one_of_0( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "bar", @@ -102,8 +57,8 @@ class OneofWithRequired( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_0': return super().__new__( cls, @@ -114,7 +69,7 @@ class OneofWithRequired( class one_of_1( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo", @@ -124,8 +79,8 @@ class OneofWithRequired( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_1': return super().__new__( cls, @@ -149,8 +104,8 @@ class OneofWithRequired( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'OneofWithRequired': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py index cedc5529c77..2764902b555 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class PatternIsNotAnchored( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'a+', # noqa: E501 }], ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,8 +40,8 @@ class PatternIsNotAnchored( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'PatternIsNotAnchored': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py index 2e80e68fc4d..c60d56a1985 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class PatternValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^a*$', # noqa: E501 }], ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,8 +40,8 @@ class PatternValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'PatternValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py index 3440c7c59f3..88a52e529cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class PropertiesWithEscapedCharacters( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - foobar = NumberSchema + foobar = schemas.NumberSchema locals()["foo\nbar"] = foobar del locals()['foobar'] """ @@ -89,7 +44,7 @@ class PropertiesWithEscapedCharacters( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - foobar = NumberSchema + foobar = schemas.NumberSchema locals()["foo\"bar"] = foobar del locals()['foobar'] """ @@ -102,7 +57,7 @@ class PropertiesWithEscapedCharacters( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - foo_bar = NumberSchema + foo_bar = schemas.NumberSchema locals()["foo\\bar"] = foo_bar del locals()['foo_bar'] """ @@ -115,7 +70,7 @@ class PropertiesWithEscapedCharacters( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - foobar = NumberSchema + foobar = schemas.NumberSchema locals()["foo\rbar"] = foobar del locals()['foobar'] """ @@ -128,7 +83,7 @@ class PropertiesWithEscapedCharacters( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - foobar = NumberSchema + foobar = schemas.NumberSchema locals()["foo\tbar"] = foobar del locals()['foobar'] """ @@ -141,7 +96,7 @@ class PropertiesWithEscapedCharacters( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - foobar = NumberSchema + foobar = schemas.NumberSchema locals()["foo\fbar"] = foobar del locals()['foobar'] """ @@ -158,8 +113,8 @@ class PropertiesWithEscapedCharacters( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'PropertiesWithEscapedCharacters': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py index 0b78a1b9b4d..7f8368b89ef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class PropertyNamedRefThatIsNotAReference( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - ref = StrSchema + ref = schemas.StrSchema locals()["$ref"] = ref del locals()['ref'] """ @@ -93,8 +48,8 @@ class PropertyNamedRefThatIsNotAReference( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'PropertyNamedRefThatIsNotAReference': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py index 06a4940e935..6cd3ac22e94 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInAdditionalproperties( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -86,8 +41,8 @@ class RefInAdditionalproperties( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RefInAdditionalproperties': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py index 692e23e079a..b1a05ec43b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInAllof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -103,8 +58,8 @@ class RefInAllof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RefInAllof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py index 50a541d05dd..ff2e25955b7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInAnyof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -103,8 +58,8 @@ class RefInAnyof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RefInAnyof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py index e9c980b72ce..c9b7fac1055 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInItems( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py index f44600d0cad..2049b2cf41f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInNot( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -102,8 +57,8 @@ class RefInNot( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RefInNot': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py index 073d08ab9a7..e477c65eeca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInOneof( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -103,8 +58,8 @@ class RefInOneof( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RefInOneof': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py index 9dfabb68918..627798ddcfd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RefInProperty( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,9 +40,9 @@ class RefInProperty( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - a: typing.Union['PropertyNamedRefThatIsNotAReference', Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + a: typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RefInProperty': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py index 3a5232f50ed..a4f7d169d9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py @@ -20,70 +20,25 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RequiredDefaultValidation( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - foo = AnyTypeSchema + foo = schemas.AnyTypeSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RequiredDefaultValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py index 9af5f5c08f2..f5b3b3ef892 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RequiredValidation( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,16 +34,16 @@ class RequiredValidation( _required_property_names = { "foo", } - foo = AnyTypeSchema - bar = AnyTypeSchema + foo = schemas.AnyTypeSchema + bar = schemas.AnyTypeSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], foo: foo, - bar: typing.Union[bar, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RequiredValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py index 1c9b31e6c39..787355e0288 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py @@ -20,70 +20,25 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RequiredWithEmptyArray( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - foo = AnyTypeSchema + foo = schemas.AnyTypeSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RequiredWithEmptyArray': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py index a463b8335ff..ab6c4cb0e41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class RequiredWithEscapedCharacters( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,8 +43,8 @@ class RequiredWithEscapedCharacters( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'RequiredWithEscapedCharacters': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py index 53f2c567d22..4f1fa2e8b84 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class SimpleEnumValidation( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 1: "POSITIVE_1", 2: "POSITIVE_2", 3: "POSITIVE_3", } ), - NumberSchema + schemas.NumberSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py index 7f9e3f1d4b7..6f11c4a6a69 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -StringTypeMatchesStrings = StrSchema +from unit_test_api import schemas # noqa: F401 +StringTypeMatchesStrings = schemas.StrSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py index 342399c3dd7..404c3ce8fc4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,10 +34,10 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( class alpha( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=3, ), - NumberSchema + schemas.NumberSchema ): pass @@ -90,9 +45,9 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( def __new__( cls, *args: typing.Union[dict, frozendict, ], - alpha: typing.Union[alpha, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + alpha: typing.Union[alpha, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py index b44bd081856..a4e8c844879 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py @@ -20,58 +20,13 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class UniqueitemsFalseValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,8 +37,8 @@ class UniqueitemsFalseValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'UniqueitemsFalseValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py index 799794310f0..1aaecb681f1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 class UniqueitemsValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( unique_items=True, ), - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,8 +38,8 @@ class UniqueitemsValidation( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'UniqueitemsValidation': return super().__new__( cls, diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py index 8599fa87d50..4187491a8b5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -UriFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +UriFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py index 791ac4d70a6..1c808d7dc65 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -UriReferenceFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +UriReferenceFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py index 8a2e90d1064..f4aea46e1bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -UriTemplateFormat = AnyTypeSchema +from unit_test_api import schemas # noqa: F401 +UriTemplateFormat = schemas.AnyTypeSchema diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py index 90e76a2f361..02230646c37 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate @@ -86,8 +41,8 @@ request_body_additionalproperties_allows_a_schema_which_should_validate = api_cl @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py index fa14d63a28c..be236397e47 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault @@ -86,8 +41,8 @@ request_body_additionalproperties_are_allowed_by_default = api_client.RequestBod @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py index 4e61a65baaa..4235d6c78f8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself @@ -86,8 +41,8 @@ request_body_additionalproperties_can_exist_by_itself = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py index ae5ebb1c2ad..3e352aa7b47 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators @@ -86,8 +41,8 @@ request_body_additionalproperties_should_not_look_in_applicators = api_client.Re @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py index 2c38c175c0a..d3fd04720ff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof @@ -86,8 +41,8 @@ request_body_allof_combined_with_anyof_oneof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py index d5f8781c9a7..a1d430f1b70 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof import Allof @@ -86,8 +41,8 @@ request_body_allof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py index ae2443b5a13..c61ecd6d316 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_simple_types import AllofSimpleTypes @@ -86,8 +41,8 @@ request_body_allof_simple_types = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py index fadb6357836..857701ba023 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema @@ -86,8 +41,8 @@ request_body_allof_with_base_schema = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py index 10fa686e01b..6fb02388708 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema @@ -86,8 +41,8 @@ request_body_allof_with_one_empty_schema = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py index b2c628fa6b1..d26c8d9bf76 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema @@ -86,8 +41,8 @@ request_body_allof_with_the_first_empty_schema = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py index b62de7505cc..e06e8c64d9c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema @@ -86,8 +41,8 @@ request_body_allof_with_the_last_empty_schema = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py index 49fda00c7c5..c7c13b638b0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas @@ -86,8 +41,8 @@ request_body_allof_with_two_empty_schemas = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py index aa646b10c5a..7c4a87b7ca7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof_complex_types import AnyofComplexTypes @@ -86,8 +41,8 @@ request_body_anyof_complex_types = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py index e2e13787ecb..ebf4a4ca7dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof import Anyof @@ -86,8 +41,8 @@ request_body_anyof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py index 09c0df211f0..b468a189867 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py index b9c1c646541..f593df74ca5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema @@ -86,8 +41,8 @@ request_body_anyof_with_one_empty_schema = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py index 9b35c195f45..f24fbae2a34 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays @@ -86,8 +41,8 @@ request_body_array_type_matches_arrays = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py index eaeddf056ce..0d5ce92edce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = BoolSchema +SchemaForRequestBodyApplicationJson = schemas.BoolSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py index da465baf814..b249e0daa2a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.by_int import ByInt @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py index e4018c8981f..fe085b6d95a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.by_number import ByNumber @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py index 0d1d6c63655..eff0bc86a52 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.by_small_number import BySmallNumber @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py index 6a3ffe8cd15..19dc9672dd2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py index 1046d6a7ae0..60e33704f1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py index c65aac87238..fc6d97257ac 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py index 1471083703d..5ea1ef3d6f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py index e7366bd66a0..a33d40a29a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py index 44bd86aa92a..43532845e9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py index 3ac7be5a839..3256f2e78d3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py index f733f175882..1cb02e45867 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enums_in_properties import EnumsInProperties @@ -86,8 +41,8 @@ request_body_enums_in_properties = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py index 0bc2cc47e00..36efd59dc4d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.forbidden_property import ForbiddenProperty @@ -86,8 +41,8 @@ request_body_forbidden_property = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py index c5dd2f74bdf..bb83c2d7a75 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py index 158d3e024fc..f948f0a90a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = IntSchema +SchemaForRequestBodyApplicationJson = schemas.IntSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py index 36bf1453909..ee78c14d4dd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py index cda891c5392..8004e0edfc8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault @@ -86,8 +41,8 @@ request_body_invalid_string_value_for_default = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py index 9e4cf7c9c76..d3dada47efa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py index 61a3fa9e36f..33f07e3c4c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py index 14a8b9e859c..c9f060d144a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py index 2956035f0b8..995874eb128 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maximum_validation import MaximumValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py index 1ef1a1d15f3..36c1b870d1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py index 1c0da6f1dfd..e18d20871be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxitems_validation import MaxitemsValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py index 498a9c83ad0..7f3005860be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxlength_validation import MaxlengthValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py index a85a80570c5..257315b5de9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py index bad44f61bf2..5b94327feee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py index f4a52c64f9a..91c362b4196 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minimum_validation import MinimumValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py index 6a5b1ab3618..9f2826e0bf2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py index ebc1b96d346..ef87348e9ea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minitems_validation import MinitemsValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py index f76136b678f..2fbaba805fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minlength_validation import MinlengthValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py index 321a41ff7e4..d9ad990f9d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minproperties_validation import MinpropertiesValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py index b2c22e4209d..d70f6661eb6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics @@ -86,8 +41,8 @@ request_body_nested_allof_to_check_validation_semantics = api_client.RequestBody @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py index e6494e8d614..137462a0da5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics @@ -86,8 +41,8 @@ request_body_nested_anyof_to_check_validation_semantics = api_client.RequestBody @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py index bb6f1292376..f5b1e3dd930 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_items import NestedItems @@ -86,8 +41,8 @@ request_body_nested_items = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py index 7eb47e2949a..0313dbcee3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics @@ -86,8 +41,8 @@ request_body_nested_oneof_to_check_validation_semantics = api_client.RequestBody @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py index f398402853c..eb67ce68486 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path @@ -72,7 +27,7 @@ from . import path class SchemaForRequestBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -89,17 +44,17 @@ class SchemaForRequestBodyApplicationJson( class not_schema( - DictSchema + schemas.DictSchema ): - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'not_schema': return super().__new__( cls, @@ -122,8 +77,8 @@ class SchemaForRequestBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationJson': return super().__new__( cls, @@ -145,8 +100,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -180,7 +135,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py index 706fc6f255a..b975a9e5d5f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path @@ -72,7 +27,7 @@ from . import path class SchemaForRequestBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -86,7 +41,7 @@ class SchemaForRequestBodyApplicationJson( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - not_schema = IntSchema + not_schema = schemas.IntSchema return { 'allOf': [ ], @@ -101,8 +56,8 @@ class SchemaForRequestBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationJson': return super().__new__( cls, @@ -124,8 +79,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -159,7 +114,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py index 7c849667cf4..37f485cf1f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py index e362cb328ba..c64683b8fe4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = NoneSchema +SchemaForRequestBodyApplicationJson = schemas.NoneSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py index 0a396818b4d..eeee2fa09a5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = NumberSchema +SchemaForRequestBodyApplicationJson = schemas.NumberSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py index f660d51b2f6..728d52cc877 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation @@ -86,8 +41,8 @@ request_body_object_properties_validation = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py index 8502086bc89..d6acc1e031c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = DictSchema +SchemaForRequestBodyApplicationJson = schemas.DictSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py index bc59d0e01af..d90c7d8298f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_complex_types import OneofComplexTypes @@ -86,8 +41,8 @@ request_body_oneof_complex_types = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py index c32b09c126f..a08202edb58 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof import Oneof @@ -86,8 +41,8 @@ request_body_oneof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py index ac820f32b8b..8af45f64bf0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py index 4067cc1635c..8f199c88c9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema @@ -86,8 +41,8 @@ request_body_oneof_with_empty_schema = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py index db316375fab..1bf9a26e2eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_with_required import OneofWithRequired @@ -86,8 +41,8 @@ request_body_oneof_with_required = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py index bb01a42157a..49150b3babe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py index c4692fff3dc..05a4f74e83d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.pattern_validation import PatternValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py index 3724cae494d..ddb05255d05 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters @@ -86,8 +41,8 @@ request_body_properties_with_escaped_characters = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py index 5db72c836b0..9f2c818968e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference @@ -86,8 +41,8 @@ request_body_property_named_ref_that_is_not_a_reference = api_client.RequestBody @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py index b1a05478d78..4808966317a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties @@ -86,8 +41,8 @@ request_body_ref_in_additionalproperties = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py index 95958b12f4e..a3635f746de 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_allof import RefInAllof @@ -86,8 +41,8 @@ request_body_ref_in_allof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py index 53d0187eba6..246f1323dd9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_anyof import RefInAnyof @@ -86,8 +41,8 @@ request_body_ref_in_anyof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py index 39cb325b445..7dbccc28af9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_items import RefInItems @@ -86,8 +41,8 @@ request_body_ref_in_items = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py index 42d8a981428..e3dae39f53b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference @@ -74,7 +29,7 @@ from . import path class SchemaForRequestBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -102,8 +57,8 @@ class SchemaForRequestBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationJson': return super().__new__( cls, @@ -125,8 +80,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -160,7 +115,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py index c724eb044f3..287c40636aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_oneof import RefInOneof @@ -86,8 +41,8 @@ request_body_ref_in_oneof = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py index b2be00ae0f1..d3b71bf127b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_property import RefInProperty @@ -86,8 +41,8 @@ request_body_ref_in_property = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py index 45133111cfa..c7c340ad77d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.required_default_validation import RequiredDefaultValidation @@ -86,8 +41,8 @@ request_body_required_default_validation = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py index f0d29e266e0..5380647d471 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.required_validation import RequiredValidation @@ -86,8 +41,8 @@ request_body_required_validation = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py index d195d0912b3..d3067628f04 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray @@ -86,8 +41,8 @@ request_body_required_with_empty_array = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py index 73d3dd4ce64..eed26f08cfd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path @@ -72,7 +27,7 @@ from . import path class SchemaForRequestBodyApplicationJson( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo\"bar", @@ -86,8 +41,8 @@ class SchemaForRequestBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationJson': return super().__new__( cls, @@ -109,8 +64,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -144,7 +99,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py index cd38823be18..6b022bdaa5d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.simple_enum_validation import SimpleEnumValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py index ad299ad6e52..f845f2f53e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = StrSchema +SchemaForRequestBodyApplicationJson = schemas.StrSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py index ea5e31a2aa8..4aaeaa819c2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing @@ -86,8 +41,8 @@ request_body_the_default_keyword_does_not_do_anything_if_the_property_is_missing @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py index aaae042b868..6765814373b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py index e0af6993efe..37605355021 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation @@ -86,8 +41,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py index 5993ec503b2..01b97052b30 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py index 80c89797938..280f24db3fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py index 7124ca2e512..605a2d7c667 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -84,8 +39,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -119,7 +74,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py index 36185d8a055..094786d50fc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_allows_a_schema_which_should_validate import AdditionalpropertiesAllowsASchemaWhichShouldValidate @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py index dc27d7071e4..d5112dc6697 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_are_allowed_by_default import AdditionalpropertiesAreAllowedByDefault @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py index b2b8f76b494..e52b2a21c12 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_can_exist_by_itself import AdditionalpropertiesCanExistByItself @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py index 1501ef9f43f..72923f9f50a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.additionalproperties_should_not_look_in_applicators import AdditionalpropertiesShouldNotLookInApplicators @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py index 3ee54252bdc..e4a44c8fd1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_combined_with_anyof_oneof import AllofCombinedWithAnyofOneof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py index 94b2478cda3..fdb813db919 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof import Allof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py index 214bfef81b2..9305acd013b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_simple_types import AllofSimpleTypes @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py index d5ba0f9d65b..c46dca1fe4e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_base_schema import AllofWithBaseSchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py index 53d8946cd57..91e2902878b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_one_empty_schema import AllofWithOneEmptySchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py index 72f1845f65e..7bb228ae17c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_the_first_empty_schema import AllofWithTheFirstEmptySchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py index ea846203fa1..045a83b23b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_the_last_empty_schema import AllofWithTheLastEmptySchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py index b35ceca0d2b..b382b79889f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.allof_with_two_empty_schemas import AllofWithTwoEmptySchemas @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py index d5ebdb0e5b2..e0a1c1ecafb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof_complex_types import AnyofComplexTypes @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py index abf0514355d..8bad1542b6e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof import Anyof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py index 614e87e6e86..8e841500173 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof_with_base_schema import AnyofWithBaseSchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py index c6dd97da8ac..048c2c48a6d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.anyof_with_one_empty_schema import AnyofWithOneEmptySchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py index ba12aa68ed1..d0683ac383a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.array_type_matches_arrays import ArrayTypeMatchesArrays @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py index c026d519854..df2f1cbaec9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = BoolSchema +SchemaFor200ResponseBodyApplicationJson = schemas.BoolSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py index b334a7f5c36..959f445f707 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.by_int import ByInt @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py index a0cfd0bdbfa..1263e0ee1e4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.by_number import ByNumber @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py index b5756a7934e..85ad4ea96b2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.by_small_number import BySmallNumber @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py index 2ba5d0b3960..37d5e22b5cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py index d187896eb01..2c8276aa28a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py index cbe22f82eb6..0d4e17df049 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with0_does_not_match_false import EnumWith0DoesNotMatchFalse @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py index fd306cd79a7..6245a3d534a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with1_does_not_match_true import EnumWith1DoesNotMatchTrue @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py index e9a4fe6ac7b..fa444681e7b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with_escaped_characters import EnumWithEscapedCharacters @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py index e75706d9ba0..c7373d37c9d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with_false_does_not_match0 import EnumWithFalseDoesNotMatch0 @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py index 766859fa56e..bfedee46425 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enum_with_true_does_not_match1 import EnumWithTrueDoesNotMatch1 @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py index 900fcad48d1..135e6537344 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.enums_in_properties import EnumsInProperties @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py index ce35dafdd65..c32cd7282ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.forbidden_property import ForbiddenProperty @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py index ad7cedf12b4..08c599b0d60 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py index 3ab0307360a..79f4bf86133 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = IntSchema +SchemaFor200ResponseBodyApplicationJson = schemas.IntSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py index 351c83e06e2..b258e3492c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.invalid_instance_should_not_raise_error_when_float_division_inf import InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py index eda9da89747..bf0c091007d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.invalid_string_value_for_default import InvalidStringValueForDefault @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py index 9afb0788b03..62d8e3c84c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py index 05aefb953aa..578c9afa19a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py index 994ce2dac53..d1a55d4d5b7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py index 521984fd517..fe03bb7ea00 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maximum_validation import MaximumValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py index 2ee5ddd8f02..d9a10024b4e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maximum_validation_with_unsigned_integer import MaximumValidationWithUnsignedInteger @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py index 02684659e04..e2f7636b0af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxitems_validation import MaxitemsValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py index 97b9518e749..b3444cd961e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxlength_validation import MaxlengthValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py index 39dea15cb21..b56965a841d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxproperties0_means_the_object_is_empty import Maxproperties0MeansTheObjectIsEmpty @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py index 588b5229ba1..1adad80efe2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.maxproperties_validation import MaxpropertiesValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py index a59210c8198..c9b5692c2e7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minimum_validation import MinimumValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py index de43ec9a47a..41ff5806729 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minimum_validation_with_signed_integer import MinimumValidationWithSignedInteger @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py index 92c757f53a4..6c1f8b8c8d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minitems_validation import MinitemsValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py index d47fc7b6852..4484fbdc572 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minlength_validation import MinlengthValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py index 5bbbb6c419c..c3b0a8020f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.minproperties_validation import MinpropertiesValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py index d7de733fb05..65d7370dc4a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_allof_to_check_validation_semantics import NestedAllofToCheckValidationSemantics @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py index a15f0e76b51..5a7956ed234 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_anyof_to_check_validation_semantics import NestedAnyofToCheckValidationSemantics @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py index 350957bb13c..29e8ff39257 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_items import NestedItems @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py index 13b86c98719..90e5b088c84 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nested_oneof_to_check_validation_semantics import NestedOneofToCheckValidationSemantics @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py index a75a347f5b5..4248fff5e99 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path class SchemaFor200ResponseBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -88,17 +43,17 @@ class SchemaFor200ResponseBodyApplicationJson( class not_schema( - DictSchema + schemas.DictSchema ): - foo = StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'not_schema': return super().__new__( cls, @@ -121,8 +76,8 @@ class SchemaFor200ResponseBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyApplicationJson': return super().__new__( cls, @@ -138,7 +93,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py index 3840b9327ae..34e393a94df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path class SchemaFor200ResponseBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -85,7 +40,7 @@ class SchemaFor200ResponseBodyApplicationJson( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - not_schema = IntSchema + not_schema = schemas.IntSchema return { 'allOf': [ ], @@ -100,8 +55,8 @@ class SchemaFor200ResponseBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyApplicationJson': return super().__new__( cls, @@ -117,7 +72,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py index 08c40c2beae..79ac8030150 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.nul_characters_in_strings import NulCharactersInStrings @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py index 6c5460f7ba7..7bfd385d09f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = NoneSchema +SchemaFor200ResponseBodyApplicationJson = schemas.NoneSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py index a5abe2fb8bf..54ab18b95b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = NumberSchema +SchemaFor200ResponseBodyApplicationJson = schemas.NumberSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py index 2392b4c6a84..d4379ba3a05 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.object_properties_validation import ObjectPropertiesValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py index 6e8cdfc60ab..0f9da0ffd5a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = DictSchema +SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py index 35cc3f58012..0ade36af478 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_complex_types import OneofComplexTypes @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py index 9f941b9519b..3912ae24baf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof import Oneof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py index 57cf903e5db..4a47687a327 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_with_base_schema import OneofWithBaseSchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py index 0d81de5d3d1..5dea25e5b44 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_with_empty_schema import OneofWithEmptySchema @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py index c160e6b2473..f8591ed0b7e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.oneof_with_required import OneofWithRequired @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py index f85706ba556..f226827721d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.pattern_is_not_anchored import PatternIsNotAnchored @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py index acc692992c5..afbf86f07dd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.pattern_validation import PatternValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py index 2cd1df2ebe8..5d6286f70b2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.properties_with_escaped_characters import PropertiesWithEscapedCharacters @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py index 5d67cea9df1..0c2f17cab4e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py index 62829e286d8..badcba4e363 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_additionalproperties import RefInAdditionalproperties @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py index 0679f690087..0e370307f6f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_allof import RefInAllof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py index 95727405f5b..7fa0886af93 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_anyof import RefInAnyof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py index 8acd0d809aa..ade1cf8e824 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_items import RefInItems @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py index be153d05fb9..9fc253d0996 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.property_named_ref_that_is_not_a_reference import PropertyNamedRefThatIsNotAReference @@ -73,7 +28,7 @@ from . import path class SchemaFor200ResponseBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -101,8 +56,8 @@ class SchemaFor200ResponseBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyApplicationJson': return super().__new__( cls, @@ -118,7 +73,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py index 8150d3a37df..ec8e4d0875f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_oneof import RefInOneof @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py index 033258cf8eb..3eca41ea9da 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.ref_in_property import RefInProperty @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py index fb93be44040..4b51b1c28e5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.required_default_validation import RequiredDefaultValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py index 23c9ce0d57a..76acf7d65dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.required_validation import RequiredValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py index 6a70c6a2557..340c5453f15 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.required_with_empty_array import RequiredWithEmptyArray @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py index 7f3c87f7534..12feab523f9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path class SchemaFor200ResponseBodyApplicationJson( - AnyTypeSchema + schemas.AnyTypeSchema ): _required_property_names = { "foo\"bar", @@ -85,8 +40,8 @@ class SchemaFor200ResponseBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyApplicationJson': return super().__new__( cls, @@ -102,7 +57,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py index dca25af8f89..73287713217 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.simple_enum_validation import SimpleEnumValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py index 42892aa3253..e512b52a099 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = StrSchema +SchemaFor200ResponseBodyApplicationJson = schemas.StrSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py index 24eb6d4b4d4..cf247a97b4b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.the_default_keyword_does_not_do_anything_if_the_property_is_missing import TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py index c06564cf679..b3d119fb604 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.uniqueitems_false_validation import UniqueitemsFalseValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py index a57f2baf53e..7aa88d1ccde 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from unit_test_api.model.uniqueitems_validation import UniqueitemsValidation @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py index 84382812460..80c69ec32c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py index 1f825310909..d737a66d654 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py index 17f871056e7..72eefc23a4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py @@ -19,56 +19,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from unit_test_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from unit_test_api import schemas # noqa: F401 from . import path -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -77,7 +32,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py index 78cbd7b4f4f..70bf81ac722 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py @@ -14,9 +14,7 @@ from datetime import date, datetime, timedelta # noqa: F401 import functools import decimal import io -import os import re -import tempfile import typing import uuid @@ -446,7 +444,7 @@ class Validator(typing.Protocol): pass -def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: +def SchemaValidatorClsFactory(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: class SchemaValidator(ValidatorBase): @classmethod def _validate( @@ -464,7 +462,7 @@ def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, li return SchemaValidator -def _SchemaTypeChecker(union_type_cls: typing.Union[typing.Any]) -> Validator: +def SchemaTypeCheckerClsFactory(union_type_cls: typing.Union[typing.Any]) -> Validator: if typing.get_origin(union_type_cls) is typing.Union: union_classes = typing.get_args(union_type_cls) else: @@ -563,7 +561,7 @@ class EnumMakerInterface(Validator): pass -def _SchemaEnumMaker(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: +def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: class SchemaEnumMaker(EnumMakerBase): @classmethod @property @@ -1733,7 +1731,7 @@ class ComposedBase(Discriminable): # DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase class ComposedSchema( - _SchemaTypeChecker(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), + SchemaTypeCheckerClsFactory(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), ComposedBase, DictBase, ListBase, @@ -1757,7 +1755,7 @@ class ComposedSchema( class ListSchema( - _SchemaTypeChecker(typing.Union[tuple]), + SchemaTypeCheckerClsFactory(typing.Union[tuple]), ListBase, Schema ): @@ -1771,7 +1769,7 @@ class ListSchema( class NoneSchema( - _SchemaTypeChecker(typing.Union[NoneClass]), + SchemaTypeCheckerClsFactory(typing.Union[NoneClass]), NoneBase, Schema ): @@ -1785,7 +1783,7 @@ class NoneSchema( class NumberSchema( - _SchemaTypeChecker(typing.Union[decimal.Decimal]), + SchemaTypeCheckerClsFactory(typing.Union[decimal.Decimal]), NumberBase, Schema ): @@ -1846,7 +1844,7 @@ class IntSchema(IntBase, NumberSchema): class Int32Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-2147483648), inclusive_maximum=decimal.Decimal(2147483647) ), @@ -1862,7 +1860,7 @@ class Int32Schema( class Int64Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-9223372036854775808), inclusive_maximum=decimal.Decimal(9223372036854775807) ), @@ -1878,7 +1876,7 @@ class Int64Schema( class Float32Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38), inclusive_maximum=decimal.Decimal(3.4028234663852886e+38) ), @@ -1898,7 +1896,7 @@ class Float32Schema( class Float64Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308), inclusive_maximum=decimal.Decimal(1.7976931348623157E+308) ), @@ -1918,7 +1916,7 @@ class Float64Schema( class StrSchema( - _SchemaTypeChecker(typing.Union[str]), + SchemaTypeCheckerClsFactory(typing.Union[str]), StrBase, Schema ): @@ -1970,7 +1968,7 @@ class DecimalSchema(DecimalBase, StrSchema): class BytesSchema( - _SchemaTypeChecker(typing.Union[bytes]), + SchemaTypeCheckerClsFactory(typing.Union[bytes]), Schema, ): """ @@ -1981,7 +1979,7 @@ class BytesSchema( class FileSchema( - _SchemaTypeChecker(typing.Union[FileIO]), + SchemaTypeCheckerClsFactory(typing.Union[FileIO]), Schema, ): """ @@ -2010,7 +2008,7 @@ class BinaryBase: class BinarySchema( - _SchemaTypeChecker(typing.Union[bytes, FileIO]), + SchemaTypeCheckerClsFactory(typing.Union[bytes, FileIO]), ComposedBase, BinaryBase, Schema, @@ -2042,7 +2040,7 @@ class BinarySchema( class BoolSchema( - _SchemaTypeChecker(typing.Union[BoolClass]), + SchemaTypeCheckerClsFactory(typing.Union[BoolClass]), BoolBase, Schema ): @@ -2056,7 +2054,7 @@ class BoolSchema( class AnyTypeSchema( - _SchemaTypeChecker( + SchemaTypeCheckerClsFactory( typing.Union[frozendict, tuple, decimal.Decimal, str, BoolClass, NoneClass, bytes, FileIO] ), DictBase, @@ -2071,7 +2069,7 @@ class AnyTypeSchema( class DictSchema( - _SchemaTypeChecker(typing.Union[frozendict]), + SchemaTypeCheckerClsFactory(typing.Union[frozendict]), DictBase, Schema ): diff --git a/samples/openapi3/client/petstore/python-experimental/docs/models/BooleanEnum.md b/samples/openapi3/client/petstore/python-experimental/docs/models/BooleanEnum.md index 9b9dc348584..61b8e47b6e0 100644 --- a/samples/openapi3/client/petstore/python-experimental/docs/models/BooleanEnum.md +++ b/samples/openapi3/client/petstore/python-experimental/docs/models/BooleanEnum.md @@ -2,7 +2,7 @@ Type | Description | Notes ------------- | ------------- | ------------- -**bool** | | must be one of [BoolClass.TRUE, ] +**bool** | | must be one of [schemas.BoolClass.TRUE, ] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/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 8339daf8f7e..0defc155e86 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class AdditionalPropertiesClass( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,16 +34,16 @@ class AdditionalPropertiesClass( class map_property( - DictSchema + schemas.DictSchema ): - _additional_properties = StrSchema + _additional_properties = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'map_property': return super().__new__( cls, @@ -99,21 +54,21 @@ class AdditionalPropertiesClass( class map_of_map_property( - DictSchema + schemas.DictSchema ): class _additional_properties( - DictSchema + schemas.DictSchema ): - _additional_properties = StrSchema + _additional_properties = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> '_additional_properties': return super().__new__( cls, @@ -126,8 +81,8 @@ class AdditionalPropertiesClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'map_of_map_property': return super().__new__( cls, @@ -135,14 +90,14 @@ class AdditionalPropertiesClass( _configuration=_configuration, **kwargs, ) - anytype_1 = AnyTypeSchema - map_with_undeclared_properties_anytype_1 = DictSchema - map_with_undeclared_properties_anytype_2 = DictSchema - map_with_undeclared_properties_anytype_3 = DictSchema + anytype_1 = schemas.AnyTypeSchema + map_with_undeclared_properties_anytype_1 = schemas.DictSchema + map_with_undeclared_properties_anytype_2 = schemas.DictSchema + map_with_undeclared_properties_anytype_3 = schemas.DictSchema class empty_map( - DictSchema + schemas.DictSchema ): _additional_properties = None @@ -150,7 +105,7 @@ class AdditionalPropertiesClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'empty_map': return super().__new__( cls, @@ -160,16 +115,16 @@ class AdditionalPropertiesClass( class map_with_undeclared_properties_string( - DictSchema + schemas.DictSchema ): - _additional_properties = StrSchema + _additional_properties = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'map_with_undeclared_properties_string': return super().__new__( cls, @@ -182,16 +137,16 @@ class AdditionalPropertiesClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - map_property: typing.Union[map_property, Unset] = unset, - map_of_map_property: typing.Union[map_of_map_property, Unset] = unset, - anytype_1: typing.Union[anytype_1, Unset] = unset, - map_with_undeclared_properties_anytype_1: typing.Union[map_with_undeclared_properties_anytype_1, Unset] = unset, - map_with_undeclared_properties_anytype_2: typing.Union[map_with_undeclared_properties_anytype_2, Unset] = unset, - map_with_undeclared_properties_anytype_3: typing.Union[map_with_undeclared_properties_anytype_3, Unset] = unset, - empty_map: typing.Union[empty_map, Unset] = unset, - map_with_undeclared_properties_string: typing.Union[map_with_undeclared_properties_string, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + map_property: typing.Union[map_property, schemas.Unset] = schemas.unset, + map_of_map_property: typing.Union[map_of_map_property, schemas.Unset] = schemas.unset, + anytype_1: typing.Union[anytype_1, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_1: typing.Union[map_with_undeclared_properties_anytype_1, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_2: typing.Union[map_with_undeclared_properties_anytype_2, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_anytype_3: typing.Union[map_with_undeclared_properties_anytype_3, schemas.Unset] = schemas.unset, + empty_map: typing.Union[empty_map, schemas.Unset] = schemas.unset, + map_with_undeclared_properties_string: typing.Union[map_with_undeclared_properties_string, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AdditionalPropertiesClass': return super().__new__( cls, 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 cf4ff6075bc..e2898abed71 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class AdditionalPropertiesWithArrayOfEnums( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,7 +34,7 @@ class AdditionalPropertiesWithArrayOfEnums( class _additional_properties( - ListSchema + schemas.ListSchema ): @classmethod @@ -91,8 +46,8 @@ class AdditionalPropertiesWithArrayOfEnums( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AdditionalPropertiesWithArrayOfEnums': return super().__new__( cls, 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 8aabd4c6e1b..1a9705f99f4 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 @@ -20,70 +20,25 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Address( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _additional_properties = IntSchema + _additional_properties = schemas.IntSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Address': return super().__new__( cls, 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 a217e8dd00b..3e1eec243f6 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Animal( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,8 +34,8 @@ class Animal( _required_property_names = { "className", } - className = StrSchema - color = StrSchema + className = schemas.StrSchema + color = schemas.StrSchema @classmethod @property @@ -97,9 +52,9 @@ class Animal( cls, *args: typing.Union[dict, frozendict, ], className: className, - color: typing.Union[color, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + color: typing.Union[color, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Animal': return super().__new__( cls, 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 dc1e04af56e..c2de6b81aeb 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class AnimalFarm( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py index 885b1b96798..2c811031a42 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class AnyTypeNotString( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +43,7 @@ class AnyTypeNotString( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - not_schema = StrSchema + not_schema = schemas.StrSchema return { 'allOf': [ ], @@ -103,8 +58,8 @@ class AnyTypeNotString( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'AnyTypeNotString': return super().__new__( cls, 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 62fc4e31daa..5c885ad71b1 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 @@ -20,75 +20,30 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ApiResponse( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - code = Int32Schema - type = StrSchema - message = StrSchema + code = schemas.Int32Schema + type = schemas.StrSchema + message = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - code: typing.Union[code, Unset] = unset, - type: typing.Union[type, Unset] = unset, - message: typing.Union[message, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + code: typing.Union[code, schemas.Unset] = schemas.unset, + type: typing.Union[type, schemas.Unset] = schemas.unset, + message: typing.Union[message, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ApiResponse': return super().__new__( cls, 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 2adc8424cf1..5a984056d67 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Apple( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,18 +40,18 @@ class Apple( class cultivar( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^[a-zA-Z\s]*$', # noqa: E501 }], ), - StrSchema + schemas.StrSchema ): pass class origin( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^[A-Z\s]*$', # noqa: E501 'flags': ( @@ -104,16 +59,16 @@ class Apple( ) }], ), - StrSchema + schemas.StrSchema ): pass def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - origin: typing.Union[origin, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + origin: typing.Union[origin, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Apple': return super().__new__( cls, 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 a0e8fc08228..f2ad69d5fb5 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class AppleReq( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,8 +34,8 @@ class AppleReq( _required_property_names = { "cultivar", } - cultivar = StrSchema - mealy = BoolSchema + cultivar = schemas.StrSchema + mealy = schemas.BoolSchema _additional_properties = None @@ -88,8 +43,8 @@ class AppleReq( cls, *args: typing.Union[dict, frozendict, ], cultivar: cultivar, - mealy: typing.Union[mealy, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, + mealy: typing.Union[mealy, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'AppleReq': return super().__new__( cls, 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 427e3a78492..09325769e6c 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 @@ -20,60 +20,15 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ArrayHoldingAnyType( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _items = AnyTypeSchema + _items = schemas.AnyTypeSchema 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 4d961402e33..eb708875621 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ArrayOfArrayOfNumberOnly( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,22 +34,22 @@ class ArrayOfArrayOfNumberOnly( class ArrayArrayNumber( - ListSchema + schemas.ListSchema ): class _items( - ListSchema + schemas.ListSchema ): - _items = NumberSchema + _items = schemas.NumberSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - ArrayArrayNumber: typing.Union[ArrayArrayNumber, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + ArrayArrayNumber: typing.Union[ArrayArrayNumber, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ArrayOfArrayOfNumberOnly': return super().__new__( cls, 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 55735ae7a1f..7342af137ed 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ArrayOfEnums( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 cf97c7288ac..2269118aaaf 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ArrayOfNumberOnly( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,17 +34,17 @@ class ArrayOfNumberOnly( class ArrayNumber( - ListSchema + schemas.ListSchema ): - _items = NumberSchema + _items = schemas.NumberSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - ArrayNumber: typing.Union[ArrayNumber, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + ArrayNumber: typing.Union[ArrayNumber, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ArrayOfNumberOnly': return super().__new__( cls, 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 92af59070d9..29da070719f 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ArrayTest( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,29 +34,29 @@ class ArrayTest( class array_of_string( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema class array_array_of_integer( - ListSchema + schemas.ListSchema ): class _items( - ListSchema + schemas.ListSchema ): - _items = Int64Schema + _items = schemas.Int64Schema class array_array_of_model( - ListSchema + schemas.ListSchema ): class _items( - ListSchema + schemas.ListSchema ): @classmethod @@ -113,11 +68,11 @@ class ArrayTest( def __new__( cls, *args: typing.Union[dict, frozendict, ], - array_of_string: typing.Union[array_of_string, Unset] = unset, - array_array_of_integer: typing.Union[array_array_of_integer, Unset] = unset, - array_array_of_model: typing.Union[array_array_of_model, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + array_of_string: typing.Union[array_of_string, schemas.Unset] = schemas.unset, + array_array_of_integer: typing.Union[array_array_of_integer, schemas.Unset] = schemas.unset, + array_array_of_model: typing.Union[array_array_of_model, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ArrayTest': return super().__new__( cls, 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 02df64785d0..54334d1b2cd 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ArrayWithValidationsInItems( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_items=2, ), - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,9 +37,9 @@ class ArrayWithValidationsInItems( class _items( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=7, ), - Int64Schema + schemas.Int64Schema ): pass 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 c5161b5ff0a..7b7e741a695 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Banana( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,15 +34,15 @@ class Banana( _required_property_names = { "lengthCm", } - lengthCm = NumberSchema + lengthCm = schemas.NumberSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], lengthCm: lengthCm, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Banana': return super().__new__( cls, 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 802bc131716..2e357b19571 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class BananaReq( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,8 +34,8 @@ class BananaReq( _required_property_names = { "lengthCm", } - lengthCm = NumberSchema - sweet = BoolSchema + lengthCm = schemas.NumberSchema + sweet = schemas.BoolSchema _additional_properties = None @@ -88,8 +43,8 @@ class BananaReq( cls, *args: typing.Union[dict, frozendict, ], lengthCm: lengthCm, - sweet: typing.Union[sweet, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, + sweet: typing.Union[sweet, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'BananaReq': return super().__new__( cls, 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 5d00a2a89d4..eac319090ba 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -Bar = StrSchema +from petstore_api import schemas # noqa: F401 +Bar = schemas.StrSchema 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 2ea340b0d62..5b6c95bab40 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class BasquePig( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,12 +37,12 @@ class BasquePig( class className( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "BasquePig": "BASQUE_PIG", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -100,8 +55,8 @@ class BasquePig( cls, *args: typing.Union[dict, frozendict, ], className: className, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'BasquePig': return super().__new__( cls, 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 4c79b9b00a1..d1421594993 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -Boolean = BoolSchema +from petstore_api import schemas # noqa: F401 +Boolean = schemas.BoolSchema 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 a223a2ce062..a66c440b788 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 @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class BooleanEnum( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ - BoolClass.TRUE: "TRUE", + schemas.BoolClass.TRUE: "TRUE", } ), - BoolSchema + schemas.BoolSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,4 +40,4 @@ class BooleanEnum( @classmethod @property def TRUE(cls): - return cls(BoolClass.TRUE) + return cls(schemas.BoolClass.TRUE) 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 56cf406a703..177eb086c0f 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 @@ -20,81 +20,36 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Capitalization( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - smallCamel = StrSchema - CapitalCamel = StrSchema - small_Snake = StrSchema - Capital_Snake = StrSchema - SCA_ETH_Flow_Points = StrSchema - ATT_NAME = StrSchema + smallCamel = schemas.StrSchema + CapitalCamel = schemas.StrSchema + small_Snake = schemas.StrSchema + Capital_Snake = schemas.StrSchema + SCA_ETH_Flow_Points = schemas.StrSchema + ATT_NAME = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - smallCamel: typing.Union[smallCamel, Unset] = unset, - CapitalCamel: typing.Union[CapitalCamel, Unset] = unset, - small_Snake: typing.Union[small_Snake, Unset] = unset, - Capital_Snake: typing.Union[Capital_Snake, Unset] = unset, - SCA_ETH_Flow_Points: typing.Union[SCA_ETH_Flow_Points, Unset] = unset, - ATT_NAME: typing.Union[ATT_NAME, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + smallCamel: typing.Union[smallCamel, schemas.Unset] = schemas.unset, + CapitalCamel: typing.Union[CapitalCamel, schemas.Unset] = schemas.unset, + small_Snake: typing.Union[small_Snake, schemas.Unset] = schemas.unset, + Capital_Snake: typing.Union[Capital_Snake, schemas.Unset] = schemas.unset, + SCA_ETH_Flow_Points: typing.Union[SCA_ETH_Flow_Points, schemas.Unset] = schemas.unset, + ATT_NAME: typing.Union[ATT_NAME, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Capitalization': return super().__new__( cls, 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 59bdb64b372..fe20d7a5dcc 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Cat( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class Cat( class all_of_1( - DictSchema + schemas.DictSchema ): - declawed = BoolSchema + declawed = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - declawed: typing.Union[declawed, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + declawed: typing.Union[declawed, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -126,8 +81,8 @@ class Cat( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Cat': return super().__new__( cls, 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 43fc31b9963..2f5cdbaed5c 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Category( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,17 +34,17 @@ class Category( _required_property_names = { "name", } - id = Int64Schema - name = StrSchema + id = schemas.Int64Schema + name = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], name: name, - id: typing.Union[id, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + id: typing.Union[id, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Category': return super().__new__( cls, 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 e46622a4019..49778c3f6dd 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ChildCat( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class ChildCat( class all_of_1( - DictSchema + schemas.DictSchema ): - name = StrSchema + name = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - name: typing.Union[name, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + name: typing.Union[name, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -126,8 +81,8 @@ class ChildCat( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ChildCat': return super().__new__( cls, 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 d7cf4de512e..e6be19f19bf 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ClassModel( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -78,14 +33,14 @@ class ClassModel( Model for testing model with "_class" property """ - _class = StrSchema + _class = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _class: typing.Union[_class, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _class: typing.Union[_class, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ClassModel': return super().__new__( cls, 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 13ad5e5ff35..e6230a487b5 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 @@ -20,71 +20,26 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Client( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - client = StrSchema + client = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - client: typing.Union[client, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + client: typing.Union[client, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Client': return super().__new__( cls, 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 27e37eccac6..adcc3f52259 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComplexQuadrilateral( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class ComplexQuadrilateral( class all_of_1( - DictSchema + schemas.DictSchema ): class quadrilateralType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "ComplexQuadrilateral": "COMPLEX_QUADRILATERAL", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -113,9 +68,9 @@ class ComplexQuadrilateral( def __new__( cls, *args: typing.Union[dict, frozendict, ], - quadrilateralType: typing.Union[quadrilateralType, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + quadrilateralType: typing.Union[quadrilateralType, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -140,8 +95,8 @@ class ComplexQuadrilateral( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ComplexQuadrilateral': return super().__new__( cls, 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 6f0ec3ddc2c..1442ffb6405 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedAnyOfDifferentTypesNoValidations( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,27 +43,27 @@ class ComposedAnyOfDifferentTypesNoValidations( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - any_of_0 = DictSchema - any_of_1 = DateSchema - any_of_2 = DateTimeSchema - any_of_3 = BinarySchema - any_of_4 = StrSchema - any_of_5 = StrSchema - any_of_6 = DictSchema - any_of_7 = BoolSchema - any_of_8 = NoneSchema + any_of_0 = schemas.DictSchema + any_of_1 = schemas.DateSchema + any_of_2 = schemas.DateTimeSchema + any_of_3 = schemas.BinarySchema + any_of_4 = schemas.StrSchema + any_of_5 = schemas.StrSchema + any_of_6 = schemas.DictSchema + any_of_7 = schemas.BoolSchema + any_of_8 = schemas.NoneSchema class any_of_9( - ListSchema + schemas.ListSchema ): - _items = AnyTypeSchema - any_of_10 = NumberSchema - any_of_11 = Float32Schema - any_of_12 = Float64Schema - any_of_13 = IntSchema - any_of_14 = Int32Schema - any_of_15 = Int64Schema + _items = schemas.AnyTypeSchema + any_of_10 = schemas.NumberSchema + any_of_11 = schemas.Float32Schema + any_of_12 = schemas.Float64Schema + any_of_13 = schemas.IntSchema + any_of_14 = schemas.Int32Schema + any_of_15 = schemas.Int64Schema return { 'allOf': [ ], @@ -139,8 +94,8 @@ class ComposedAnyOfDifferentTypesNoValidations( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ComposedAnyOfDifferentTypesNoValidations': return super().__new__( cls, 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 221abb75d3e..ebe610a68bb 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 @@ -20,60 +20,15 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedArray( - ListSchema + schemas.ListSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _items = AnyTypeSchema + _items = schemas.AnyTypeSchema 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 e10ccf6b241..eac8101306d 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 @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedBool( - ComposedBase, - BoolSchema + schemas.ComposedBase, + schemas.BoolSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +44,7 @@ class ComposedBool( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -105,7 +60,7 @@ class ComposedBool( def __new__( cls, *args: typing.Union[bool, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'ComposedBool': return super().__new__( cls, 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 b2b2e0678d8..f152620974a 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 @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedNone( - ComposedBase, - NoneSchema + schemas.ComposedBase, + schemas.NoneSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +44,7 @@ class ComposedNone( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -105,7 +60,7 @@ class ComposedNone( def __new__( cls, *args: typing.Union[None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'ComposedNone': return super().__new__( cls, 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 87202b73eb8..736e9a33cec 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 @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedNumber( - ComposedBase, - NumberSchema + schemas.ComposedBase, + schemas.NumberSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +44,7 @@ class ComposedNumber( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -105,7 +60,7 @@ class ComposedNumber( def __new__( cls, *args: typing.Union[float, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'ComposedNumber': return super().__new__( cls, 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 13aaa49b717..e9064b09d66 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 @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedObject( - ComposedBase, - DictSchema + schemas.ComposedBase, + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +44,7 @@ class ComposedObject( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -105,8 +60,8 @@ class ComposedObject( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ComposedObject': return super().__new__( cls, 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 d3e1baa38e7..8f6552b9b17 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedOneOfDifferentTypes( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -90,24 +45,24 @@ class ComposedOneOfDifferentTypes( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_2 = NoneSchema - one_of_3 = DateSchema + one_of_2 = schemas.NoneSchema + one_of_3 = schemas.DateSchema class one_of_4( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_properties=4, min_properties=4, ), - DictSchema + schemas.DictSchema ): def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'one_of_4': return super().__new__( cls, @@ -118,22 +73,22 @@ class ComposedOneOfDifferentTypes( class one_of_5( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_items=4, min_items=4, ), - ListSchema + schemas.ListSchema ): - _items = AnyTypeSchema + _items = schemas.AnyTypeSchema class one_of_6( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^2020.*', # noqa: E501 }], ), - DateTimeSchema + schemas.DateTimeSchema ): pass return { @@ -157,8 +112,8 @@ class ComposedOneOfDifferentTypes( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ComposedOneOfDifferentTypes': return super().__new__( cls, 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 1c739ac3cf1..0265fd01381 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 @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ComposedString( - ComposedBase, - StrSchema + schemas.ComposedBase, + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +44,7 @@ class ComposedString( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - all_of_0 = AnyTypeSchema + all_of_0 = schemas.AnyTypeSchema return { 'allOf': [ all_of_0, @@ -105,7 +60,7 @@ class ComposedString( def __new__( cls, *args: typing.Union[str, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'ComposedString': return super().__new__( cls, 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 0844fa544bb..4cc1f5da963 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 @@ -20,62 +20,17 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Currency( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "eur": "EUR", "usd": "USD", } ), - StrSchema + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 bc5ffc28d53..bd728d85242 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class DanishPig( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,12 +37,12 @@ class DanishPig( class className( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "DanishPig": "DANISH_PIG", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -100,8 +55,8 @@ class DanishPig( cls, *args: typing.Union[dict, frozendict, ], className: className, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'DanishPig': return super().__new__( cls, 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 a4cc1eea68d..141ffbb4614 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -DateTimeTest = DateTimeSchema +from petstore_api import schemas # noqa: F401 +DateTimeTest = schemas.DateTimeSchema 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 f4c7c07278b..8a316ec82d2 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 @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class DateTimeWithValidations( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^2020.*', # noqa: E501 }], ), - DateTimeSchema + schemas.DateTimeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 f3dceba1cd5..74aed262e35 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 @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class DateWithValidations( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^2020.*', # noqa: E501 }], ), - DateSchema + schemas.DateSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 1bae8338481..8f883920ed2 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -DecimalPayload = DecimalSchema +from petstore_api import schemas # noqa: F401 +DecimalPayload = schemas.DecimalSchema 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 8bb69282e3f..248ed5ba55a 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Dog( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class Dog( class all_of_1( - DictSchema + schemas.DictSchema ): - breed = StrSchema + breed = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - breed: typing.Union[breed, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + breed: typing.Union[breed, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -126,8 +81,8 @@ class Dog( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Dog': return super().__new__( cls, 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 c3cb01e0aed..c95e4138f48 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Drawing( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -94,7 +49,7 @@ class Drawing( class shapes( - ListSchema + schemas.ListSchema ): @classmethod @@ -111,12 +66,12 @@ class Drawing( def __new__( cls, *args: typing.Union[dict, frozendict, ], - mainShape: typing.Union['Shape', Unset] = unset, - shapeOrNull: typing.Union['ShapeOrNull', Unset] = unset, - nullableShape: typing.Union['NullableShape', Unset] = unset, - shapes: typing.Union[shapes, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + mainShape: typing.Union['Shape', schemas.Unset] = schemas.unset, + shapeOrNull: typing.Union['ShapeOrNull', schemas.Unset] = schemas.unset, + nullableShape: typing.Union['NullableShape', schemas.Unset] = schemas.unset, + shapes: typing.Union[shapes, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Drawing': return super().__new__( cls, 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 be4182fe233..a32e72ee36d 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class EnumArrays( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,13 +34,13 @@ class EnumArrays( class just_symbol( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ ">=": "GREATER_THAN_EQUALS", "$": "DOLLAR", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -100,18 +55,18 @@ class EnumArrays( class array_enum( - ListSchema + schemas.ListSchema ): class _items( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "fish": "FISH", "crab": "CRAB", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -128,10 +83,10 @@ class EnumArrays( def __new__( cls, *args: typing.Union[dict, frozendict, ], - just_symbol: typing.Union[just_symbol, Unset] = unset, - array_enum: typing.Union[array_enum, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + just_symbol: typing.Union[just_symbol, schemas.Unset] = schemas.unset, + array_enum: typing.Union[array_enum, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'EnumArrays': return super().__new__( cls, 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 019001d2088..8ee77bafca1 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class EnumClass( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "_abc": "_ABC", "-efg": "EFG", "(xyz)": "XYZ", } ), - StrSchema + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 bd2dfb95b93..bba0d93e31b 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class EnumTest( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,14 +37,14 @@ class EnumTest( class enum_string( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "UPPER": "UPPER", "lower": "LOWER", "": "EMPTY", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -109,14 +64,14 @@ class EnumTest( class enum_string_required( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "UPPER": "UPPER", "lower": "LOWER", "": "EMPTY", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -136,13 +91,13 @@ class EnumTest( class enum_integer( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 1: "POSITIVE_1", -1: "NEGATIVE_1", } ), - Int32Schema + schemas.Int32Schema ): @classmethod @@ -157,13 +112,13 @@ class EnumTest( class enum_number( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 1.1: "POSITIVE_1_PT_1", -1.2: "NEGATIVE_1_PT_2", } ), - Float64Schema + schemas.Float64Schema ): @classmethod @@ -206,16 +161,16 @@ class EnumTest( cls, *args: typing.Union[dict, frozendict, ], enum_string_required: enum_string_required, - enum_string: typing.Union[enum_string, Unset] = unset, - enum_integer: typing.Union[enum_integer, Unset] = unset, - enum_number: typing.Union[enum_number, Unset] = unset, - stringEnum: typing.Union['StringEnum', Unset] = unset, - IntegerEnum: typing.Union['IntegerEnum', Unset] = unset, - StringEnumWithDefaultValue: typing.Union['StringEnumWithDefaultValue', Unset] = unset, - IntegerEnumWithDefaultValue: typing.Union['IntegerEnumWithDefaultValue', Unset] = unset, - IntegerEnumOneValue: typing.Union['IntegerEnumOneValue', Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + enum_string: typing.Union[enum_string, schemas.Unset] = schemas.unset, + enum_integer: typing.Union[enum_integer, schemas.Unset] = schemas.unset, + enum_number: typing.Union[enum_number, schemas.Unset] = schemas.unset, + stringEnum: typing.Union['StringEnum', schemas.Unset] = schemas.unset, + IntegerEnum: typing.Union['IntegerEnum', schemas.Unset] = schemas.unset, + StringEnumWithDefaultValue: typing.Union['StringEnumWithDefaultValue', schemas.Unset] = schemas.unset, + IntegerEnumWithDefaultValue: typing.Union['IntegerEnumWithDefaultValue', schemas.Unset] = schemas.unset, + IntegerEnumOneValue: typing.Union['IntegerEnumOneValue', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'EnumTest': return super().__new__( cls, 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 70784a497cf..b796849f4fe 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class EquilateralTriangle( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class EquilateralTriangle( class all_of_1( - DictSchema + schemas.DictSchema ): class triangleType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "EquilateralTriangle": "EQUILATERAL_TRIANGLE", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -113,9 +68,9 @@ class EquilateralTriangle( def __new__( cls, *args: typing.Union[dict, frozendict, ], - triangleType: typing.Union[triangleType, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + triangleType: typing.Union[triangleType, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -140,8 +95,8 @@ class EquilateralTriangle( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'EquilateralTriangle': return super().__new__( cls, 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 3e68cefa31e..4675122b17d 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class File( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -78,15 +33,15 @@ class File( Must be named `File` for test. """ - sourceURI = StrSchema + sourceURI = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - sourceURI: typing.Union[sourceURI, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + sourceURI: typing.Union[sourceURI, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'File': return super().__new__( cls, 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 ce058035357..d7189da18fd 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class FileSchemaTestClass( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -84,7 +39,7 @@ class FileSchemaTestClass( class files( - ListSchema + schemas.ListSchema ): @classmethod @@ -96,10 +51,10 @@ class FileSchemaTestClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - file: typing.Union['File', Unset] = unset, - files: typing.Union[files, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + file: typing.Union['File', schemas.Unset] = schemas.unset, + files: typing.Union[files, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'FileSchemaTestClass': return super().__new__( cls, 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 8d650b5604a..90bdc953c71 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 @@ -20,71 +20,26 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Foo( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - bar = StrSchema + bar = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - bar: typing.Union[bar, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Foo': return super().__new__( cls, 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 5223a21aa99..d590de8cdbc 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class FormatTest( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -85,45 +40,45 @@ class FormatTest( class integer( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=100, inclusive_minimum=10, multiple_of=2, ), - IntSchema + schemas.IntSchema ): pass - int32 = Int32Schema + int32 = schemas.Int32Schema class int32withValidations( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=200, inclusive_minimum=20, ), - Int32Schema + schemas.Int32Schema ): pass - int64 = Int64Schema + int64 = schemas.Int64Schema class number( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=543.2, inclusive_minimum=32.1, multiple_of=32.5, ), - NumberSchema + schemas.NumberSchema ): pass class _float( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=987.6, inclusive_minimum=54.3, ), - Float32Schema + schemas.Float32Schema ): pass locals()["float"] = _float @@ -138,31 +93,31 @@ class FormatTest( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - float32 = Float32Schema + float32 = schemas.Float32Schema class double( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=123.4, inclusive_minimum=67.8, ), - Float64Schema + schemas.Float64Schema ): pass - float64 = Float64Schema + float64 = schemas.Float64Schema class arrayWithUniqueItems( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( unique_items=True, ), - ListSchema + schemas.ListSchema ): - _items = NumberSchema + _items = schemas.NumberSchema class string( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'[a-z]', # noqa: E501 'flags': ( @@ -170,40 +125,40 @@ class FormatTest( ) }], ), - StrSchema + schemas.StrSchema ): pass - byte = StrSchema - binary = BinarySchema - date = DateSchema - dateTime = DateTimeSchema - uuid = UUIDSchema - uuidNoExample = UUIDSchema + byte = schemas.StrSchema + binary = schemas.BinarySchema + date = schemas.DateSchema + dateTime = schemas.DateTimeSchema + uuid = schemas.UUIDSchema + uuidNoExample = schemas.UUIDSchema class password( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_length=64, min_length=10, ), - StrSchema + schemas.StrSchema ): pass class pattern_with_digits( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^\d{10}$', # noqa: E501 }], ), - StrSchema + schemas.StrSchema ): pass class pattern_with_digits_and_delimiter( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^image_\d{1,3}$', # noqa: E501 'flags': ( @@ -211,10 +166,10 @@ class FormatTest( ) }], ), - StrSchema + schemas.StrSchema ): pass - noneProp = NoneSchema + noneProp = schemas.NoneSchema def __new__( @@ -224,24 +179,24 @@ class FormatTest( number: number, password: password, byte: byte, - integer: typing.Union[integer, Unset] = unset, - int32: typing.Union[int32, Unset] = unset, - int32withValidations: typing.Union[int32withValidations, Unset] = unset, - int64: typing.Union[int64, Unset] = unset, - float32: typing.Union[float32, Unset] = unset, - double: typing.Union[double, Unset] = unset, - float64: typing.Union[float64, Unset] = unset, - arrayWithUniqueItems: typing.Union[arrayWithUniqueItems, Unset] = unset, - string: typing.Union[string, Unset] = unset, - binary: typing.Union[binary, Unset] = unset, - dateTime: typing.Union[dateTime, Unset] = unset, - uuid: typing.Union[uuid, Unset] = unset, - uuidNoExample: typing.Union[uuidNoExample, Unset] = unset, - pattern_with_digits: typing.Union[pattern_with_digits, Unset] = unset, - pattern_with_digits_and_delimiter: typing.Union[pattern_with_digits_and_delimiter, Unset] = unset, - noneProp: typing.Union[noneProp, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + integer: typing.Union[integer, schemas.Unset] = schemas.unset, + int32: typing.Union[int32, schemas.Unset] = schemas.unset, + int32withValidations: typing.Union[int32withValidations, schemas.Unset] = schemas.unset, + int64: typing.Union[int64, schemas.Unset] = schemas.unset, + float32: typing.Union[float32, schemas.Unset] = schemas.unset, + double: typing.Union[double, schemas.Unset] = schemas.unset, + float64: typing.Union[float64, schemas.Unset] = schemas.unset, + arrayWithUniqueItems: typing.Union[arrayWithUniqueItems, schemas.Unset] = schemas.unset, + string: typing.Union[string, schemas.Unset] = schemas.unset, + binary: typing.Union[binary, schemas.Unset] = schemas.unset, + dateTime: typing.Union[dateTime, schemas.Unset] = schemas.unset, + uuid: typing.Union[uuid, schemas.Unset] = schemas.unset, + uuidNoExample: typing.Union[uuidNoExample, schemas.Unset] = schemas.unset, + pattern_with_digits: typing.Union[pattern_with_digits, schemas.Unset] = schemas.unset, + pattern_with_digits_and_delimiter: typing.Union[pattern_with_digits_and_delimiter, schemas.Unset] = schemas.unset, + noneProp: typing.Union[noneProp, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'FormatTest': return super().__new__( cls, 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 bd6051a6616..9607f9ea3f7 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Fruit( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - color = StrSchema + color = schemas.StrSchema @classmethod @property @@ -105,9 +60,9 @@ class Fruit( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - color: typing.Union[color, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + color: typing.Union[color, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Fruit': return super().__new__( cls, 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 94fe77750dd..089319357f9 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class FruitReq( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +43,7 @@ class FruitReq( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_0 = NoneSchema + one_of_0 = schemas.NoneSchema return { 'allOf': [ ], @@ -106,8 +61,8 @@ class FruitReq( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'FruitReq': return super().__new__( cls, 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 cd2ab6559f4..a6428fee12a 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class GmFruit( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - color = StrSchema + color = schemas.StrSchema @classmethod @property @@ -105,9 +60,9 @@ class GmFruit( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - color: typing.Union[color, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + color: typing.Union[color, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'GmFruit': return super().__new__( cls, 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 cf3394375a2..d70add0b679 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class GrandparentAnimal( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,7 +34,7 @@ class GrandparentAnimal( _required_property_names = { "pet_type", } - pet_type = StrSchema + pet_type = schemas.StrSchema @classmethod @property @@ -96,8 +51,8 @@ class GrandparentAnimal( cls, *args: typing.Union[dict, frozendict, ], pet_type: pet_type, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'GrandparentAnimal': return super().__new__( cls, 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 4830db9c7d4..cd5ecba45b5 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 @@ -20,73 +20,28 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class HasOnlyReadOnly( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - bar = StrSchema - foo = StrSchema + bar = schemas.StrSchema + foo = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - bar: typing.Union[bar, Unset] = unset, - foo: typing.Union[foo, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + foo: typing.Union[foo, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'HasOnlyReadOnly': return super().__new__( cls, 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 c48f1c3803c..2ccffdf9a0a 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class HealthCheckResult( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,16 +36,16 @@ class HealthCheckResult( class NullableMessage( - _SchemaTypeChecker(typing.Union[NoneClass, str, ]), - StrBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), + schemas.StrBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[str, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'NullableMessage': return super().__new__( cls, @@ -102,9 +57,9 @@ class HealthCheckResult( def __new__( cls, *args: typing.Union[dict, frozendict, ], - NullableMessage: typing.Union[NullableMessage, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + NullableMessage: typing.Union[NullableMessage, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'HealthCheckResult': return super().__new__( cls, 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 2fc839f1da3..9f9a92fe57b 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IntegerEnum( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 0: "POSITIVE_0", 1: "POSITIVE_1", 2: "POSITIVE_2", } ), - IntSchema + schemas.IntSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 33659622629..c97bc61c49a 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IntegerEnumBig( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 10: "POSITIVE_10", 11: "POSITIVE_11", 12: "POSITIVE_12", } ), - IntSchema + schemas.IntSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 706ea7f682a..05967e28a0a 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 @@ -20,61 +20,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IntegerEnumOneValue( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 0: "POSITIVE_0", } ), - IntSchema + schemas.IntSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 c4aac3b348c..f9ea4aae076 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IntegerEnumWithDefaultValue( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 0: "POSITIVE_0", 1: "POSITIVE_1", 2: "POSITIVE_2", } ), - IntSchema + schemas.IntSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 0915ff33f97..ebc4f29c944 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IntegerMax10( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=10, ), - Int64Schema + schemas.Int64Schema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 cb59a2b7db3..0ec5463ddc2 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IntegerMin15( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_minimum=15, ), - Int64Schema + schemas.Int64Schema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 3168ac85313..1f9d682e5ad 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class IsoscelesTriangle( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class IsoscelesTriangle( class all_of_1( - DictSchema + schemas.DictSchema ): class triangleType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "IsoscelesTriangle": "ISOSCELES_TRIANGLE", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -113,9 +68,9 @@ class IsoscelesTriangle( def __new__( cls, *args: typing.Union[dict, frozendict, ], - triangleType: typing.Union[triangleType, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + triangleType: typing.Union[triangleType, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -140,8 +95,8 @@ class IsoscelesTriangle( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'IsoscelesTriangle': return super().__new__( cls, 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 a2eb42d4dbb..94834004335 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Mammal( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -116,8 +71,8 @@ class Mammal( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Mammal': return super().__new__( cls, 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 a9f8383cb5a..54355084aa7 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class MapTest( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,21 +34,21 @@ class MapTest( class map_map_of_string( - DictSchema + schemas.DictSchema ): class _additional_properties( - DictSchema + schemas.DictSchema ): - _additional_properties = StrSchema + _additional_properties = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> '_additional_properties': return super().__new__( cls, @@ -106,8 +61,8 @@ class MapTest( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'map_map_of_string': return super().__new__( cls, @@ -118,18 +73,18 @@ class MapTest( class map_of_enum_string( - DictSchema + schemas.DictSchema ): class _additional_properties( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "UPPER": "UPPER", "lower": "LOWER", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -146,8 +101,8 @@ class MapTest( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'map_of_enum_string': return super().__new__( cls, @@ -158,16 +113,16 @@ class MapTest( class direct_map( - DictSchema + schemas.DictSchema ): - _additional_properties = BoolSchema + _additional_properties = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'direct_map': return super().__new__( cls, @@ -185,12 +140,12 @@ class MapTest( def __new__( cls, *args: typing.Union[dict, frozendict, ], - map_map_of_string: typing.Union[map_map_of_string, Unset] = unset, - map_of_enum_string: typing.Union[map_of_enum_string, Unset] = unset, - direct_map: typing.Union[direct_map, Unset] = unset, - indirect_map: typing.Union['StringBooleanMap', Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + map_map_of_string: typing.Union[map_map_of_string, schemas.Unset] = schemas.unset, + map_of_enum_string: typing.Union[map_of_enum_string, schemas.Unset] = schemas.unset, + direct_map: typing.Union[direct_map, schemas.Unset] = schemas.unset, + indirect_map: typing.Union['StringBooleanMap', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MapTest': return super().__new__( cls, 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 70477d2f5aa..f141798dacf 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 @@ -20,68 +20,23 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class MixedPropertiesAndAdditionalPropertiesClass( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - uuid = UUIDSchema - dateTime = DateTimeSchema + uuid = schemas.UUIDSchema + dateTime = schemas.DateTimeSchema class map( - DictSchema + schemas.DictSchema ): @classmethod @@ -93,8 +48,8 @@ class MixedPropertiesAndAdditionalPropertiesClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'map': return super().__new__( cls, @@ -107,11 +62,11 @@ class MixedPropertiesAndAdditionalPropertiesClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - uuid: typing.Union[uuid, Unset] = unset, - dateTime: typing.Union[dateTime, Unset] = unset, - map: typing.Union[map, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + uuid: typing.Union[uuid, schemas.Unset] = schemas.unset, + dateTime: typing.Union[dateTime, schemas.Unset] = schemas.unset, + map: typing.Union[map, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MixedPropertiesAndAdditionalPropertiesClass': return super().__new__( cls, 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 c559fbc1168..0247071bcb5 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Model200Response( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -78,8 +33,8 @@ class Model200Response( model with an invalid class name for python, starts with a number """ - name = Int32Schema - _class = StrSchema + name = schemas.Int32Schema + _class = schemas.StrSchema locals()["class"] = _class del locals()['_class'] """ @@ -96,9 +51,9 @@ class Model200Response( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - name: typing.Union[name, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + name: typing.Union[name, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Model200Response': return super().__new__( cls, 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 1f9d1eca367..b00ba744e21 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ModelReturn( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -78,7 +33,7 @@ class ModelReturn( Model for testing reserved words """ - _return = Int32Schema + _return = schemas.Int32Schema locals()["return"] = _return del locals()['_return'] """ @@ -95,8 +50,8 @@ class ModelReturn( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ModelReturn': return super().__new__( cls, 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 2a01c981b5f..ed72ef47f52 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Money( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -80,7 +35,7 @@ class Money( "amount", "currency", } - amount = DecimalSchema + amount = schemas.DecimalSchema @classmethod @property @@ -93,8 +48,8 @@ class Money( *args: typing.Union[dict, frozendict, ], amount: amount, currency: currency, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Money': return super().__new__( cls, 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 525d2e29df9..01474ce7c76 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Name( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,9 +36,9 @@ class Name( _required_property_names = { "name", } - name = Int32Schema - snake_case = Int32Schema - _property = StrSchema + name = schemas.Int32Schema + snake_case = schemas.Int32Schema + _property = schemas.StrSchema locals()["property"] = _property del locals()['_property'] """ @@ -101,9 +56,9 @@ class Name( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], name: name, - snake_case: typing.Union[snake_case, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + snake_case: typing.Union[snake_case, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Name': return super().__new__( cls, 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 fc1acc5a062..6e9b6b5fa18 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class NoAdditionalProperties( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,8 +34,8 @@ class NoAdditionalProperties( _required_property_names = { "id", } - id = Int64Schema - petId = Int64Schema + id = schemas.Int64Schema + petId = schemas.Int64Schema _additional_properties = None @@ -88,8 +43,8 @@ class NoAdditionalProperties( cls, *args: typing.Union[dict, frozendict, ], id: id, - petId: typing.Union[petId, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, + petId: typing.Union[petId, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'NoAdditionalProperties': return super().__new__( cls, 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 71559959bdb..7229b9367e6 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class NullableClass( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,16 +34,16 @@ class NullableClass( class integer_prop( - _SchemaTypeChecker(typing.Union[NoneClass, decimal.Decimal, ]), - IntBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, decimal.Decimal, ]), + schemas.IntBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[int, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'integer_prop': return super().__new__( cls, @@ -98,16 +53,16 @@ class NullableClass( class number_prop( - _SchemaTypeChecker(typing.Union[NoneClass, decimal.Decimal, ]), - NumberBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, decimal.Decimal, ]), + schemas.NumberBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[float, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'number_prop': return super().__new__( cls, @@ -117,16 +72,16 @@ class NullableClass( class boolean_prop( - _SchemaTypeChecker(typing.Union[NoneClass, BoolClass, ]), - BoolBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, schemas.BoolClass, ]), + schemas.BoolBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[bool, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'boolean_prop': return super().__new__( cls, @@ -136,16 +91,16 @@ class NullableClass( class string_prop( - _SchemaTypeChecker(typing.Union[NoneClass, str, ]), - StrBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), + schemas.StrBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[str, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'string_prop': return super().__new__( cls, @@ -155,16 +110,16 @@ class NullableClass( class date_prop( - _SchemaTypeChecker(typing.Union[NoneClass, str, ]), - DateBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), + schemas.DateBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'date_prop': return super().__new__( cls, @@ -174,16 +129,16 @@ class NullableClass( class datetime_prop( - _SchemaTypeChecker(typing.Union[NoneClass, str, ]), - DateTimeBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), + schemas.DateTimeBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'datetime_prop': return super().__new__( cls, @@ -193,16 +148,16 @@ class NullableClass( class array_nullable_prop( - _SchemaTypeChecker(typing.Union[tuple, NoneClass, ]), - ListBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[tuple, schemas.NoneClass, ]), + schemas.ListBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[list, tuple, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'array_nullable_prop': return super().__new__( cls, @@ -212,16 +167,16 @@ class NullableClass( class array_and_items_nullable_prop( - _SchemaTypeChecker(typing.Union[tuple, NoneClass, ]), - ListBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[tuple, schemas.NoneClass, ]), + schemas.ListBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[list, tuple, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'array_and_items_nullable_prop': return super().__new__( cls, @@ -231,22 +186,22 @@ class NullableClass( class array_items_nullable( - ListSchema + schemas.ListSchema ): class _items( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> '_items': return super().__new__( cls, @@ -257,18 +212,18 @@ class NullableClass( class object_nullable_prop( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): - _additional_properties = DictSchema + _additional_properties = schemas.DictSchema def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'object_nullable_prop': return super().__new__( cls, @@ -279,25 +234,25 @@ class NullableClass( class object_and_items_nullable_prop( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): class _additional_properties( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> '_additional_properties': return super().__new__( cls, @@ -309,8 +264,8 @@ class NullableClass( def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'object_and_items_nullable_prop': return super().__new__( cls, @@ -321,22 +276,22 @@ class NullableClass( class object_items_nullable( - DictSchema + schemas.DictSchema ): class _additional_properties( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> '_additional_properties': return super().__new__( cls, @@ -349,8 +304,8 @@ class NullableClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'object_items_nullable': return super().__new__( cls, @@ -361,17 +316,17 @@ class NullableClass( class _additional_properties( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> '_additional_properties': return super().__new__( cls, @@ -384,20 +339,20 @@ class NullableClass( def __new__( cls, *args: typing.Union[dict, frozendict, ], - integer_prop: typing.Union[integer_prop, Unset] = unset, - number_prop: typing.Union[number_prop, Unset] = unset, - boolean_prop: typing.Union[boolean_prop, Unset] = unset, - string_prop: typing.Union[string_prop, Unset] = unset, - date_prop: typing.Union[date_prop, Unset] = unset, - datetime_prop: typing.Union[datetime_prop, Unset] = unset, - array_nullable_prop: typing.Union[array_nullable_prop, Unset] = unset, - array_and_items_nullable_prop: typing.Union[array_and_items_nullable_prop, Unset] = unset, - array_items_nullable: typing.Union[array_items_nullable, Unset] = unset, - object_nullable_prop: typing.Union[object_nullable_prop, Unset] = unset, - object_and_items_nullable_prop: typing.Union[object_and_items_nullable_prop, Unset] = unset, - object_items_nullable: typing.Union[object_items_nullable, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + integer_prop: typing.Union[integer_prop, schemas.Unset] = schemas.unset, + number_prop: typing.Union[number_prop, schemas.Unset] = schemas.unset, + boolean_prop: typing.Union[boolean_prop, schemas.Unset] = schemas.unset, + string_prop: typing.Union[string_prop, schemas.Unset] = schemas.unset, + date_prop: typing.Union[date_prop, schemas.Unset] = schemas.unset, + datetime_prop: typing.Union[datetime_prop, schemas.Unset] = schemas.unset, + array_nullable_prop: typing.Union[array_nullable_prop, schemas.Unset] = schemas.unset, + array_and_items_nullable_prop: typing.Union[array_and_items_nullable_prop, schemas.Unset] = schemas.unset, + array_items_nullable: typing.Union[array_items_nullable, schemas.Unset] = schemas.unset, + object_nullable_prop: typing.Union[object_nullable_prop, schemas.Unset] = schemas.unset, + object_and_items_nullable_prop: typing.Union[object_and_items_nullable_prop, schemas.Unset] = schemas.unset, + object_items_nullable: typing.Union[object_items_nullable, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NullableClass': return super().__new__( cls, 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 c5f29819849..ebda08ad66c 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class NullableShape( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -90,7 +45,7 @@ class NullableShape( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_2 = NoneSchema + one_of_2 = schemas.NoneSchema return { 'allOf': [ ], @@ -108,8 +63,8 @@ class NullableShape( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NullableShape': return super().__new__( cls, 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 7cf3c74f318..32f98f4b32e 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class NullableString( - _SchemaTypeChecker(typing.Union[NoneClass, str, ]), - StrBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), + schemas.StrBase, + schemas.NoneBase, + schemas.Schema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,7 +38,7 @@ class NullableString( def __new__( cls, *args: typing.Union[str, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'NullableString': return super().__new__( cls, 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 47361523e04..c36e2132e38 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -Number = NumberSchema +from petstore_api import schemas # noqa: F401 +Number = schemas.NumberSchema 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 6f4036faa4f..cf455a1846a 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 @@ -20,71 +20,26 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class NumberOnly( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - JustNumber = NumberSchema + JustNumber = schemas.NumberSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - JustNumber: typing.Union[JustNumber, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + JustNumber: typing.Union[JustNumber, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'NumberOnly': return super().__new__( cls, 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 3963b0b297d..05644bc96fc 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 @@ -20,60 +20,15 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class NumberWithValidations( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=20, inclusive_minimum=10, ), - NumberSchema + schemas.NumberSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 d8eec30dee1..1cc96ae0a0a 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -ObjectInterface = DictSchema +from petstore_api import schemas # noqa: F401 +ObjectInterface = schemas.DictSchema 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 11de28c5997..71781ca27ad 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ObjectModelWithRefProps( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,18 +38,18 @@ class ObjectModelWithRefProps( @property def myNumber(cls) -> typing.Type['NumberWithValidations']: return NumberWithValidations - myString = StrSchema - myBoolean = BoolSchema + myString = schemas.StrSchema + myBoolean = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - myNumber: typing.Union['NumberWithValidations', Unset] = unset, - myString: typing.Union[myString, Unset] = unset, - myBoolean: typing.Union[myBoolean, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + myNumber: typing.Union['NumberWithValidations', schemas.Unset] = schemas.unset, + myString: typing.Union[myString, schemas.Unset] = schemas.unset, + myBoolean: typing.Union[myBoolean, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ObjectModelWithRefProps': return super().__new__( cls, 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 69264d1642a..f3a89e973a5 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 @@ -20,64 +20,19 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ObjectWithDecimalProperties( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - length = DecimalSchema - width = DecimalSchema + length = schemas.DecimalSchema + width = schemas.DecimalSchema @classmethod @property @@ -88,11 +43,11 @@ class ObjectWithDecimalProperties( def __new__( cls, *args: typing.Union[dict, frozendict, ], - length: typing.Union[length, Unset] = unset, - width: typing.Union[width, Unset] = unset, - cost: typing.Union['Money', Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + length: typing.Union[length, schemas.Unset] = schemas.unset, + width: typing.Union[width, schemas.Unset] = schemas.unset, + cost: typing.Union['Money', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ObjectWithDecimalProperties': return super().__new__( cls, 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 682753cc697..4e7589a7b7d 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ObjectWithDifficultlyNamedProps( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,7 +36,7 @@ class ObjectWithDifficultlyNamedProps( _required_property_names = { "123-list", } - special_property_name = Int64Schema + special_property_name = schemas.Int64Schema locals()["$special[property.name]"] = special_property_name del locals()['special_property_name'] """ @@ -94,7 +49,7 @@ class ObjectWithDifficultlyNamedProps( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - _123_list = StrSchema + _123_list = schemas.StrSchema locals()["123-list"] = _123_list del locals()['_123_list'] """ @@ -107,7 +62,7 @@ class ObjectWithDifficultlyNamedProps( - _from_openapi_data these are passed in in a dict in the first positional argument *arg If the property is required and was not passed in, an exception will be thrown """ - _123_number = IntSchema + _123_number = schemas.IntSchema locals()["123Number"] = _123_number del locals()['_123_number'] """ @@ -125,8 +80,8 @@ class ObjectWithDifficultlyNamedProps( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ObjectWithDifficultlyNamedProps': return super().__new__( cls, 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 77c106cd10a..546855545b4 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ObjectWithInlineCompositionProperty( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,7 +34,7 @@ class ObjectWithInlineCompositionProperty( class someProp( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -96,10 +51,10 @@ class ObjectWithInlineCompositionProperty( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -117,8 +72,8 @@ class ObjectWithInlineCompositionProperty( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'someProp': return super().__new__( cls, @@ -131,9 +86,9 @@ class ObjectWithInlineCompositionProperty( def __new__( cls, *args: typing.Union[dict, frozendict, ], - someProp: typing.Union[someProp, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + someProp: typing.Union[someProp, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ObjectWithInlineCompositionProperty': return super().__new__( cls, 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 1eb29795fb0..802952b133b 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ObjectWithValidations( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_properties=2, ), - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -84,8 +39,8 @@ class ObjectWithValidations( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ObjectWithValidations': return super().__new__( cls, 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 c7a69be9164..fbf1173c179 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 @@ -20,77 +20,32 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Order( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - id = Int64Schema - petId = Int64Schema - quantity = Int32Schema - shipDate = DateTimeSchema + id = schemas.Int64Schema + petId = schemas.Int64Schema + quantity = schemas.Int32Schema + shipDate = schemas.DateTimeSchema class status( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "placed": "PLACED", "approved": "APPROVED", "delivered": "DELIVERED", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -107,20 +62,20 @@ class Order( @property def DELIVERED(cls): return cls("delivered") - complete = BoolSchema + complete = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - id: typing.Union[id, Unset] = unset, - petId: typing.Union[petId, Unset] = unset, - quantity: typing.Union[quantity, Unset] = unset, - shipDate: typing.Union[shipDate, Unset] = unset, - status: typing.Union[status, Unset] = unset, - complete: typing.Union[complete, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + id: typing.Union[id, schemas.Unset] = schemas.unset, + petId: typing.Union[petId, schemas.Unset] = schemas.unset, + quantity: typing.Union[quantity, schemas.Unset] = schemas.unset, + shipDate: typing.Union[shipDate, schemas.Unset] = schemas.unset, + status: typing.Union[status, schemas.Unset] = schemas.unset, + complete: typing.Union[complete, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Order': return super().__new__( cls, 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 50bae9f0b7e..70d5b021fb1 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 @@ -20,57 +20,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ParentPet( - ComposedBase, - DictSchema + schemas.ComposedBase, + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -113,8 +68,8 @@ class ParentPet( def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ParentPet': return super().__new__( cls, 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 c81afee4f72..87937656a92 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Pet( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,23 +37,23 @@ class Pet( "photoUrls", "name", } - id = Int64Schema + id = schemas.Int64Schema @classmethod @property def category(cls) -> typing.Type['Category']: return Category - name = StrSchema + name = schemas.StrSchema class photoUrls( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema class tags( - ListSchema + schemas.ListSchema ): @classmethod @@ -108,14 +63,14 @@ class Pet( class status( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "available": "AVAILABLE", "pending": "PENDING", "sold": "SOLD", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -139,12 +94,12 @@ class Pet( *args: typing.Union[dict, frozendict, ], photoUrls: photoUrls, name: name, - id: typing.Union[id, Unset] = unset, - category: typing.Union['Category', Unset] = unset, - tags: typing.Union[tags, Unset] = unset, - status: typing.Union[status, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + id: typing.Union[id, schemas.Unset] = schemas.unset, + category: typing.Union['Category', schemas.Unset] = schemas.unset, + tags: typing.Union[tags, schemas.Unset] = schemas.unset, + status: typing.Union[status, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Pet': return super().__new__( cls, 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 ef89f2a9bd0..140b00d61e7 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Pig( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -114,8 +69,8 @@ class Pig( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Pig': return super().__new__( cls, 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 99e382ec645..284c35766d0 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Player( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -78,7 +33,7 @@ class Player( a model that includes a self reference this forces properties and additionalProperties to be lazy loaded in python models because the Player class has not fully loaded when defining properties """ - name = StrSchema + name = schemas.StrSchema @classmethod @property @@ -89,10 +44,10 @@ class Player( def __new__( cls, *args: typing.Union[dict, frozendict, ], - name: typing.Union[name, Unset] = unset, - enemyPlayer: typing.Union['Player', Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + name: typing.Union[name, schemas.Unset] = schemas.unset, + enemyPlayer: typing.Union['Player', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Player': return super().__new__( cls, 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 ac2bba6417a..b7ec65c5dda 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Quadrilateral( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -114,8 +69,8 @@ class Quadrilateral( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Quadrilateral': return super().__new__( cls, 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 ed64e8ca026..42db3ffe2ef 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class QuadrilateralInterface( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,27 +38,27 @@ class QuadrilateralInterface( class shapeType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "Quadrilateral": "QUADRILATERAL", } ), - StrSchema + schemas.StrSchema ): @classmethod @property def QUADRILATERAL(cls): return cls("Quadrilateral") - quadrilateralType = StrSchema + quadrilateralType = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], shapeType: shapeType, quadrilateralType: quadrilateralType, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'QuadrilateralInterface': return super().__new__( cls, 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 496b72a0529..1842374d782 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 @@ -20,73 +20,28 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ReadOnlyFirst( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - bar = StrSchema - baz = StrSchema + bar = schemas.StrSchema + baz = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - bar: typing.Union[bar, Unset] = unset, - baz: typing.Union[baz, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + bar: typing.Union[bar, schemas.Unset] = schemas.unset, + baz: typing.Union[baz, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ReadOnlyFirst': return super().__new__( cls, 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 62c8afa8de3..9e8869e1c6d 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ScaleneTriangle( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class ScaleneTriangle( class all_of_1( - DictSchema + schemas.DictSchema ): class triangleType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "ScaleneTriangle": "SCALENE_TRIANGLE", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -113,9 +68,9 @@ class ScaleneTriangle( def __new__( cls, *args: typing.Union[dict, frozendict, ], - triangleType: typing.Union[triangleType, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + triangleType: typing.Union[triangleType, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -140,8 +95,8 @@ class ScaleneTriangle( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ScaleneTriangle': return super().__new__( cls, 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 c14b212935a..41777e512d8 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Shape( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -114,8 +69,8 @@ class Shape( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Shape': return super().__new__( cls, 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 e08380258fd..544c5812bad 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class ShapeOrNull( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -100,7 +55,7 @@ class ShapeOrNull( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - one_of_0 = NoneSchema + one_of_0 = schemas.NoneSchema return { 'allOf': [ ], @@ -118,8 +73,8 @@ class ShapeOrNull( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'ShapeOrNull': return super().__new__( cls, 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 9f2ad6437bd..98d0fe79d3e 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class SimpleQuadrilateral( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,17 +46,17 @@ class SimpleQuadrilateral( class all_of_1( - DictSchema + schemas.DictSchema ): class quadrilateralType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "SimpleQuadrilateral": "SIMPLE_QUADRILATERAL", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -113,9 +68,9 @@ class SimpleQuadrilateral( def __new__( cls, *args: typing.Union[dict, frozendict, ], - quadrilateralType: typing.Union[quadrilateralType, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + quadrilateralType: typing.Union[quadrilateralType, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'all_of_1': return super().__new__( cls, @@ -140,8 +95,8 @@ class SimpleQuadrilateral( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SimpleQuadrilateral': return super().__new__( cls, 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 d7a74609692..69156fed573 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class SomeObject( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -103,8 +58,8 @@ class SomeObject( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SomeObject': return super().__new__( cls, 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 696e59a4e42..7bd46973e63 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class SpecialModelName( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -78,15 +33,15 @@ class SpecialModelName( model with an invalid class name for python """ - a = StrSchema + a = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - a: typing.Union[a, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + a: typing.Union[a, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SpecialModelName': return super().__new__( cls, 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 f3dc03700e3..f9f8a37cc05 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 @@ -20,50 +20,5 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) -String = StrSchema +from petstore_api import schemas # noqa: F401 +String = schemas.StrSchema 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 1ef5b11d746..f377c5120a0 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 @@ -20,70 +20,25 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class StringBooleanMap( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - _additional_properties = BoolSchema + _additional_properties = schemas.BoolSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'StringBooleanMap': return super().__new__( cls, 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 4f23fa3c0da..036354de0f3 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class StringEnum( - _SchemaTypeChecker(typing.Union[NoneClass, str, ]), - _SchemaEnumMaker( + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ - NoneClass.NONE: "NONE", + schemas.NoneClass.NONE: "NONE", "placed": "PLACED", "approved": "APPROVED", "delivered": "DELIVERED", @@ -81,9 +36,9 @@ class StringEnum( "double quote \n with newline": "DOUBLE_QUOTE_WITH_NEWLINE", } ), - StrBase, - NoneBase, - Schema + schemas.StrBase, + schemas.NoneBase, + schemas.Schema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -129,7 +84,7 @@ class StringEnum( def __new__( cls, *args: typing.Union[str, None, ], - _configuration: typing.Optional[Configuration] = None, + _configuration: typing.Optional[schemas.Configuration] = None, ) -> 'StringEnum': return super().__new__( cls, 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 519bf0b4b5e..bdeb021d30b 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 @@ -20,63 +20,18 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class StringEnumWithDefaultValue( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "placed": "PLACED", "approved": "APPROVED", "delivered": "DELIVERED", } ), - StrSchema + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 9b41e07bf05..9e9be83150a 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 @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class StringWithValidation( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=7, ), - StrSchema + schemas.StrSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 f9fbfb67d3c..86f5e4de1b2 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 @@ -20,73 +20,28 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Tag( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - id = Int64Schema - name = StrSchema + id = schemas.Int64Schema + name = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - id: typing.Union[id, Unset] = unset, - name: typing.Union[name, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + id: typing.Union[id, schemas.Unset] = schemas.unset, + name: typing.Union[name, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Tag': return super().__new__( cls, 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 7686cdd34cf..305d4dce011 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Triangle( - ComposedSchema + schemas.ComposedSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -116,8 +71,8 @@ class Triangle( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Triangle': return super().__new__( cls, 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 d7be2c2b55b..10c84a835e9 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class TriangleInterface( - AnyTypeSchema + schemas.AnyTypeSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -83,27 +38,27 @@ class TriangleInterface( class shapeType( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "Triangle": "TRIANGLE", } ), - StrSchema + schemas.StrSchema ): @classmethod @property def TRIANGLE(cls): return cls("Triangle") - triangleType = StrSchema + triangleType = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], shapeType: shapeType, triangleType: triangleType, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'TriangleInterface': return super().__new__( cls, 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 ccfd2f66c8c..f68e27b3a87 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 @@ -20,85 +20,40 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class User( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ - id = Int64Schema - username = StrSchema - firstName = StrSchema - lastName = StrSchema - email = StrSchema - password = StrSchema - phone = StrSchema - userStatus = Int32Schema - objectWithNoDeclaredProps = DictSchema + id = schemas.Int64Schema + username = schemas.StrSchema + firstName = schemas.StrSchema + lastName = schemas.StrSchema + email = schemas.StrSchema + password = schemas.StrSchema + phone = schemas.StrSchema + userStatus = schemas.Int32Schema + objectWithNoDeclaredProps = schemas.DictSchema class objectWithNoDeclaredPropsNullable( - _SchemaTypeChecker(typing.Union[frozendict, NoneClass, ]), - DictBase, - NoneBase, - Schema + schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict, schemas.NoneClass, ]), + schemas.DictBase, + schemas.NoneBase, + schemas.Schema ): def __new__( cls, *args: typing.Union[dict, frozendict, None, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'objectWithNoDeclaredPropsNullable': return super().__new__( cls, @@ -106,11 +61,11 @@ class User( _configuration=_configuration, **kwargs, ) - anyTypeProp = AnyTypeSchema + anyTypeProp = schemas.AnyTypeSchema class anyTypeExceptNullProp( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -124,7 +79,7 @@ class User( # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading - not_schema = NoneSchema + not_schema = schemas.NoneSchema return { 'allOf': [ ], @@ -139,8 +94,8 @@ class User( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'anyTypeExceptNullProp': return super().__new__( cls, @@ -148,27 +103,27 @@ class User( _configuration=_configuration, **kwargs, ) - anyTypePropNullable = AnyTypeSchema + anyTypePropNullable = schemas.AnyTypeSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - id: typing.Union[id, Unset] = unset, - username: typing.Union[username, Unset] = unset, - firstName: typing.Union[firstName, Unset] = unset, - lastName: typing.Union[lastName, Unset] = unset, - email: typing.Union[email, Unset] = unset, - password: typing.Union[password, Unset] = unset, - phone: typing.Union[phone, Unset] = unset, - userStatus: typing.Union[userStatus, Unset] = unset, - objectWithNoDeclaredProps: typing.Union[objectWithNoDeclaredProps, Unset] = unset, - objectWithNoDeclaredPropsNullable: typing.Union[objectWithNoDeclaredPropsNullable, Unset] = unset, - anyTypeProp: typing.Union[anyTypeProp, Unset] = unset, - anyTypeExceptNullProp: typing.Union[anyTypeExceptNullProp, Unset] = unset, - anyTypePropNullable: typing.Union[anyTypePropNullable, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + id: typing.Union[id, schemas.Unset] = schemas.unset, + username: typing.Union[username, schemas.Unset] = schemas.unset, + firstName: typing.Union[firstName, schemas.Unset] = schemas.unset, + lastName: typing.Union[lastName, schemas.Unset] = schemas.unset, + email: typing.Union[email, schemas.Unset] = schemas.unset, + password: typing.Union[password, schemas.Unset] = schemas.unset, + phone: typing.Union[phone, schemas.Unset] = schemas.unset, + userStatus: typing.Union[userStatus, schemas.Unset] = schemas.unset, + objectWithNoDeclaredProps: typing.Union[objectWithNoDeclaredProps, schemas.Unset] = schemas.unset, + objectWithNoDeclaredPropsNullable: typing.Union[objectWithNoDeclaredPropsNullable, schemas.Unset] = schemas.unset, + anyTypeProp: typing.Union[anyTypeProp, schemas.Unset] = schemas.unset, + anyTypeExceptNullProp: typing.Union[anyTypeExceptNullProp, schemas.Unset] = schemas.unset, + anyTypePropNullable: typing.Union[anyTypePropNullable, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'User': return super().__new__( cls, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py index c80979f32fb..df6fef491eb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py @@ -20,59 +20,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class UUIDString( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - UUIDSchema + schemas.UUIDSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech 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 2f0798f0a09..4ecfae94f0d 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Whale( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -79,17 +34,17 @@ class Whale( _required_property_names = { "className", } - hasBaleen = BoolSchema - hasTeeth = BoolSchema + hasBaleen = schemas.BoolSchema + hasTeeth = schemas.BoolSchema class className( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "whale": "WHALE", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -102,10 +57,10 @@ class Whale( cls, *args: typing.Union[dict, frozendict, ], className: className, - hasBaleen: typing.Union[hasBaleen, Unset] = unset, - hasTeeth: typing.Union[hasTeeth, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + hasBaleen: typing.Union[hasBaleen, schemas.Unset] = schemas.unset, + hasTeeth: typing.Union[hasTeeth, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Whale': return super().__new__( cls, 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 9a179381ac9..d26ac7ce578 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 @@ -20,56 +20,11 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 class Zebra( - DictSchema + schemas.DictSchema ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,14 +37,14 @@ class Zebra( class type( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "plains": "PLAINS", "mountain": "MOUNTAIN", "grevys": "GREVYS", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -109,12 +64,12 @@ class Zebra( class className( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "zebra": "ZEBRA", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -127,9 +82,9 @@ class Zebra( cls, *args: typing.Union[dict, frozendict, ], className: className, - type: typing.Union[type, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + type: typing.Union[type, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'Zebra': return super().__new__( cls, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py index a95b5d7eb1f..74d1fa32fc4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.client import Client @@ -90,7 +45,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py index 15696b43df2..91a0a6e7590 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.client import Client @@ -90,7 +45,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py index 51d3874b038..a7416cce36d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -72,7 +27,7 @@ from . import path class SchemaForRequestBodyApplicationXWwwFormUrlencoded( - DictSchema + schemas.DictSchema ): _required_property_names = { "number", @@ -83,41 +38,41 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class integer( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=100, inclusive_minimum=10, ), - IntSchema + schemas.IntSchema ): pass class int32( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=200, inclusive_minimum=20, ), - Int32Schema + schemas.Int32Schema ): pass - int64 = Int64Schema + int64 = schemas.Int64Schema class number( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=543.2, inclusive_minimum=32.1, ), - NumberSchema + schemas.NumberSchema ): pass class _float( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=987.6, ), - Float32Schema + schemas.Float32Schema ): pass locals()["float"] = _float @@ -135,17 +90,17 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class double( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=123.4, inclusive_minimum=67.8, ), - Float64Schema + schemas.Float64Schema ): pass class string( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'[a-z]', # noqa: E501 'flags': ( @@ -153,35 +108,35 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( ) }], ), - StrSchema + schemas.StrSchema ): pass class pattern_without_delimiter( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( regex=[{ 'pattern': r'^[A-Z].*', # noqa: E501 }], ), - StrSchema + schemas.StrSchema ): pass - byte = StrSchema - binary = BinarySchema - date = DateSchema - dateTime = DateTimeSchema + byte = schemas.StrSchema + binary = schemas.BinarySchema + date = schemas.DateSchema + dateTime = schemas.DateTimeSchema class password( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( max_length=64, min_length=10, ), - StrSchema + schemas.StrSchema ): pass - callback = StrSchema + callback = schemas.StrSchema def __new__( @@ -191,17 +146,17 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( pattern_without_delimiter: pattern_without_delimiter, byte: byte, double: double, - integer: typing.Union[integer, Unset] = unset, - int32: typing.Union[int32, Unset] = unset, - int64: typing.Union[int64, Unset] = unset, - string: typing.Union[string, Unset] = unset, - binary: typing.Union[binary, Unset] = unset, - date: typing.Union[date, Unset] = unset, - dateTime: typing.Union[dateTime, Unset] = unset, - password: typing.Union[password, Unset] = unset, - callback: typing.Union[callback, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + integer: typing.Union[integer, schemas.Unset] = schemas.unset, + int32: typing.Union[int32, schemas.Unset] = schemas.unset, + int64: typing.Union[int64, schemas.Unset] = schemas.unset, + string: typing.Union[string, schemas.Unset] = schemas.unset, + binary: typing.Union[binary, schemas.Unset] = schemas.unset, + date: typing.Union[date, schemas.Unset] = schemas.unset, + dateTime: typing.Union[dateTime, schemas.Unset] = schemas.unset, + password: typing.Union[password, schemas.Unset] = schemas.unset, + callback: typing.Union[callback, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded': return super().__new__( cls, @@ -238,8 +193,8 @@ _auth = [ @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -250,8 +205,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -267,7 +222,7 @@ class BaseApi(api_client.Api): def _endpoint_parameters( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,7 +243,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -326,7 +281,7 @@ class EndpointParameters(BaseApi): def endpoint_parameters( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -348,7 +303,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py index 9b23cf165a8..3381a2e81fc 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -72,18 +27,18 @@ from . import path class EnumQueryStringArraySchema( - ListSchema + schemas.ListSchema ): class _items( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ ">": "GREATER_THAN", "$": "DOLLAR", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -98,14 +53,14 @@ class EnumQueryStringArraySchema( class EnumQueryStringSchema( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "_abc": "_ABC", "-efg": "EFG", "(xyz)": "XYZ", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -125,13 +80,13 @@ class EnumQueryStringSchema( class EnumQueryIntegerSchema( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 1: "POSITIVE_1", -2: "NEGATIVE_2", } ), - Int32Schema + schemas.Int32Schema ): @classmethod @@ -146,13 +101,13 @@ class EnumQueryIntegerSchema( class EnumQueryDoubleSchema( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ 1.1: "POSITIVE_1_PT_1", -1.2: "NEGATIVE_1_PT_2", } ), - Float64Schema + schemas.Float64Schema ): @classmethod @@ -213,18 +168,18 @@ request_query_enum_query_double = api_client.QueryParameter( class EnumHeaderStringArraySchema( - ListSchema + schemas.ListSchema ): class _items( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ ">": "GREATER_THAN", "$": "DOLLAR", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -239,14 +194,14 @@ class EnumHeaderStringArraySchema( class EnumHeaderStringSchema( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "_abc": "_ABC", "-efg": "EFG", "(xyz)": "XYZ", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -296,23 +251,23 @@ request_header_enum_header_string = api_client.HeaderParameter( class SchemaForRequestBodyApplicationXWwwFormUrlencoded( - DictSchema + schemas.DictSchema ): class enum_form_string_array( - ListSchema + schemas.ListSchema ): class _items( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ ">": "GREATER_THAN", "$": "DOLLAR", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -327,14 +282,14 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class enum_form_string( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "_abc": "_ABC", "-efg": "EFG", "(xyz)": "XYZ", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -356,10 +311,10 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __new__( cls, *args: typing.Union[dict, frozendict, ], - enum_form_string_array: typing.Union[enum_form_string_array, Unset] = unset, - enum_form_string: typing.Union[enum_form_string, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + enum_form_string_array: typing.Union[enum_form_string_array, schemas.Unset] = schemas.unset, + enum_form_string: typing.Union[enum_form_string, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded': return super().__new__( cls, @@ -382,8 +337,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -394,8 +349,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -411,7 +366,7 @@ class BaseApi(api_client.Api): def _enum_parameters( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), header_params: RequestHeaderParams = frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -438,8 +393,8 @@ class BaseApi(api_client.Api): request_query_enum_query_integer, request_query_enum_query_double, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() @@ -452,8 +407,8 @@ class BaseApi(api_client.Api): request_header_enum_header_string_array, request_header_enum_header_string, ): - parameter_data = header_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = header_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _headers.extend(serialized_data) @@ -461,7 +416,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -498,7 +453,7 @@ class EnumParameters(BaseApi): def enum_parameters( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), header_params: RequestHeaderParams = frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -524,7 +479,7 @@ class ApiForget(BaseApi): def get( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), header_params: RequestHeaderParams = frozendict(), content_type: str = 'application/x-www-form-urlencoded', diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py index 594d1681b68..6a9858d7cc9 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py @@ -19,60 +19,15 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # query params -RequiredStringGroupSchema = IntSchema -RequiredInt64GroupSchema = Int64Schema -StringGroupSchema = IntSchema -Int64GroupSchema = Int64Schema +RequiredStringGroupSchema = schemas.IntSchema +RequiredInt64GroupSchema = schemas.Int64Schema +StringGroupSchema = schemas.IntSchema +Int64GroupSchema = schemas.Int64Schema RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', { @@ -121,8 +76,8 @@ request_query_int64_group = api_client.QueryParameter( explode=True, ) # header params -RequiredBooleanGroupSchema = BoolSchema -BooleanGroupSchema = BoolSchema +RequiredBooleanGroupSchema = schemas.BoolSchema +BooleanGroupSchema = schemas.BoolSchema RequestRequiredHeaderParams = typing.TypedDict( 'RequestRequiredHeaderParams', { @@ -161,8 +116,8 @@ _auth = [ @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -202,8 +157,8 @@ class BaseApi(api_client.Api): request_query_string_group, request_query_int64_group, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() @@ -216,8 +171,8 @@ class BaseApi(api_client.Api): request_header_required_boolean_group, request_header_boolean_group, ): - parameter_data = header_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = header_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _headers.extend(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py index cf0ab562259..bcfd8d90081 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _additional_properties_with_array_of_enums( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -137,7 +92,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_additional_properties_with_array_of_enums.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -174,7 +129,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): def additional_properties_with_array_of_enums( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,7 +154,7 @@ class ApiForget(BaseApi): def get( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py index a6168efa0fa..61969d6bf36 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.file_schema_test_class import FileSchemaTestClass @@ -86,8 +41,8 @@ request_body_file_schema_test_class = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -121,7 +76,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py index 71789128b2c..192529c3797 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.user import User from . import path # query params -QuerySchema = StrSchema +QuerySchema = schemas.StrSchema RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', { @@ -113,8 +68,8 @@ request_body_user = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -151,8 +106,8 @@ class BaseApi(api_client.Api): for parameter in ( request_query_query, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() @@ -163,7 +118,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py index 258bee18e90..603378d2d29 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py @@ -18,59 +18,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # query params -SomeVarSchema = StrSchema -SomeVarSchema = StrSchema -SomeVarSchema = StrSchema +SomeVarSchema = schemas.StrSchema +SomeVarSchema = schemas.StrSchema +SomeVarSchema = schemas.StrSchema RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', { @@ -117,8 +72,8 @@ request_query_some_var3 = api_client.QueryParameter( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -155,8 +110,8 @@ class BaseApi(api_client.Api): request_query_some_var2, request_query_some_var3, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py index 0e33fe25a40..f501c44f0de 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.client import Client @@ -93,7 +48,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -139,7 +94,7 @@ class BaseApi(api_client.Api): for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py index 2df23002913..97a29c5f8c7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py @@ -18,57 +18,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # path params -IdSchema = StrSchema +IdSchema = schemas.StrSchema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -98,8 +53,8 @@ request_path_id = api_client.PathParameter( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -110,8 +65,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_default = api_client.OpenApiResponse( @@ -149,8 +104,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py index 8e79cb29546..e6ebc6d51d6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.health_check_result import HealthCheckResult @@ -79,7 +34,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py index 91f30ae3e9f..2dd100d7d6a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -72,16 +27,16 @@ from . import path class SchemaForRequestBodyApplicationJson( - DictSchema + schemas.DictSchema ): - _additional_properties = StrSchema + _additional_properties = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationJson': return super().__new__( cls, @@ -103,8 +58,8 @@ request_body_request_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -139,7 +94,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py index 1889ba7a731..c9bea3bbddd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -72,7 +27,7 @@ from . import path class CompositionAtRootSchema( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -89,10 +44,10 @@ class CompositionAtRootSchema( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -110,8 +65,8 @@ class CompositionAtRootSchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'CompositionAtRootSchema': return super().__new__( cls, @@ -122,12 +77,12 @@ class CompositionAtRootSchema( class CompositionInPropertySchema( - DictSchema + schemas.DictSchema ): class someProp( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -144,10 +99,10 @@ class CompositionInPropertySchema( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -165,8 +120,8 @@ class CompositionInPropertySchema( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'someProp': return super().__new__( cls, @@ -179,9 +134,9 @@ class CompositionInPropertySchema( def __new__( cls, *args: typing.Union[dict, frozendict, ], - someProp: typing.Union[someProp, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + someProp: typing.Union[someProp, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'CompositionInPropertySchema': return super().__new__( cls, @@ -225,7 +180,7 @@ request_query_composition_in_property = api_client.QueryParameter( class SchemaForRequestBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -242,10 +197,10 @@ class SchemaForRequestBodyApplicationJson( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -263,8 +218,8 @@ class SchemaForRequestBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationJson': return super().__new__( cls, @@ -275,12 +230,12 @@ class SchemaForRequestBodyApplicationJson( class SchemaForRequestBodyMultipartFormData( - DictSchema + schemas.DictSchema ): class someProp( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -297,10 +252,10 @@ class SchemaForRequestBodyMultipartFormData( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -318,8 +273,8 @@ class SchemaForRequestBodyMultipartFormData( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'someProp': return super().__new__( cls, @@ -332,9 +287,9 @@ class SchemaForRequestBodyMultipartFormData( def __new__( cls, *args: typing.Union[dict, frozendict, ], - someProp: typing.Union[someProp, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + someProp: typing.Union[someProp, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyMultipartFormData': return super().__new__( cls, @@ -356,7 +311,7 @@ request_body_any_type = api_client.RequestBody( class SchemaFor200ResponseBodyApplicationJson( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -373,10 +328,10 @@ class SchemaFor200ResponseBodyApplicationJson( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -394,8 +349,8 @@ class SchemaFor200ResponseBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyApplicationJson': return super().__new__( cls, @@ -406,12 +361,12 @@ class SchemaFor200ResponseBodyApplicationJson( class SchemaFor200ResponseBodyMultipartFormData( - DictSchema + schemas.DictSchema ): class someProp( - ComposedSchema + schemas.ComposedSchema ): @classmethod @@ -428,10 +383,10 @@ class SchemaFor200ResponseBodyMultipartFormData( class all_of_0( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( min_length=1, ), - StrSchema + schemas.StrSchema ): pass return { @@ -449,8 +404,8 @@ class SchemaFor200ResponseBodyMultipartFormData( def __new__( cls, *args: typing.Union[dict, frozendict, str, date, datetime, int, float, decimal.Decimal, None, list, tuple, bytes], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'someProp': return super().__new__( cls, @@ -463,9 +418,9 @@ class SchemaFor200ResponseBodyMultipartFormData( def __new__( cls, *args: typing.Union[dict, frozendict, ], - someProp: typing.Union[someProp, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + someProp: typing.Union[someProp, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyMultipartFormData': return super().__new__( cls, @@ -483,7 +438,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationJson, SchemaFor200ResponseBodyMultipartFormData, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -508,7 +463,7 @@ class BaseApi(api_client.Api): def _inline_composition( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -533,8 +488,8 @@ class BaseApi(api_client.Api): request_query_composition_at_root, request_query_composition_in_property, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() @@ -550,7 +505,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_any_type.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -587,7 +542,7 @@ class InlineComposition(BaseApi): def inline_composition( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -614,7 +569,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py index 929801a1881..2251490e0c8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -72,14 +27,14 @@ from . import path class SchemaForRequestBodyApplicationXWwwFormUrlencoded( - DictSchema + schemas.DictSchema ): _required_property_names = { "param", "param2", } - param = StrSchema - param2 = StrSchema + param = schemas.StrSchema + param2 = schemas.StrSchema def __new__( @@ -87,8 +42,8 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( *args: typing.Union[dict, frozendict, ], param: param, param2: param2, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded': return super().__new__( cls, @@ -111,8 +66,8 @@ request_body_body = api_client.RequestBody( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -127,7 +82,7 @@ class BaseApi(api_client.Api): def _json_form_data( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -149,7 +104,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -186,7 +141,7 @@ class JsonFormData(BaseApi): def json_form_data( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -209,7 +164,7 @@ class ApiForget(BaseApi): def get( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py index 53b7421e018..b7dcad33b8a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJsonCharsetutf8 = AnyTypeSchema +SchemaForRequestBodyApplicationJsonCharsetutf8 = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -78,7 +33,7 @@ request_body_body = api_client.RequestBody( schema=SchemaForRequestBodyApplicationJsonCharsetutf8), }, ) -SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJsonCharsetutf8 = schemas.AnyTypeSchema @dataclass @@ -87,7 +42,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJsonCharsetutf8, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -109,7 +64,7 @@ class BaseApi(api_client.Api): def _json_with_charset( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -135,7 +90,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -172,7 +127,7 @@ class JsonWithCharset(BaseApi): def json_with_charset( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -197,7 +152,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py index cc833d99196..ffa04ff1011 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py @@ -18,52 +18,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -71,17 +26,17 @@ from . import path class MapBeanSchema( - DictSchema + schemas.DictSchema ): - keyword = StrSchema + keyword = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - keyword: typing.Union[keyword, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + keyword: typing.Union[keyword, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'MapBeanSchema': return super().__new__( cls, @@ -119,8 +74,8 @@ request_query_map_bean = api_client.QueryParameter( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -156,8 +111,8 @@ class BaseApi(api_client.Api): for parameter in ( request_query_map_bean, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py index 7b8b548f294..db4994fa7bd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py @@ -19,61 +19,16 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # query params -Model1Schema = StrSchema -ABSchema = StrSchema -AbSchema = StrSchema -ModelSelfSchema = StrSchema -ABSchema = StrSchema +Model1Schema = schemas.StrSchema +ABSchema = schemas.StrSchema +AbSchema = schemas.StrSchema +ModelSelfSchema = schemas.StrSchema +ABSchema = schemas.StrSchema RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', { @@ -127,10 +82,10 @@ request_query_a_b2 = api_client.QueryParameter( explode=True, ) # header params -Model1Schema = StrSchema -ABSchema = StrSchema -ModelSelfSchema = StrSchema -ABSchema = StrSchema +Model1Schema = schemas.StrSchema +ABSchema = schemas.StrSchema +ModelSelfSchema = schemas.StrSchema +ABSchema = schemas.StrSchema RequestRequiredHeaderParams = typing.TypedDict( 'RequestRequiredHeaderParams', { @@ -173,11 +128,11 @@ request_header_a_b4 = api_client.HeaderParameter( schema=ABSchema, ) # path params -Model1Schema = StrSchema -ABSchema = StrSchema -AbSchema = StrSchema -ModelSelfSchema = StrSchema -ABSchema = StrSchema +Model1Schema = schemas.StrSchema +ABSchema = schemas.StrSchema +AbSchema = schemas.StrSchema +ModelSelfSchema = schemas.StrSchema +ABSchema = schemas.StrSchema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -231,11 +186,11 @@ request_path_a_b6 = api_client.PathParameter( required=True, ) # cookie params -Model1Schema = StrSchema -ABSchema = StrSchema -AbSchema = StrSchema -ModelSelfSchema = StrSchema -ABSchema = StrSchema +Model1Schema = schemas.StrSchema +ABSchema = schemas.StrSchema +AbSchema = schemas.StrSchema +ModelSelfSchema = schemas.StrSchema +ABSchema = schemas.StrSchema RequestRequiredCookieParams = typing.TypedDict( 'RequestRequiredCookieParams', { @@ -289,7 +244,7 @@ request_cookie_a_b8 = api_client.CookieParameter( explode=True, ) # body param -SchemaForRequestBodyApplicationJson = AnyTypeSchema +SchemaForRequestBodyApplicationJson = schemas.AnyTypeSchema request_body_body = api_client.RequestBody( @@ -298,7 +253,7 @@ request_body_body = api_client.RequestBody( schema=SchemaForRequestBodyApplicationJson), }, ) -SchemaFor200ResponseBodyApplicationJson = AnyTypeSchema +SchemaFor200ResponseBodyApplicationJson = schemas.AnyTypeSchema @dataclass @@ -307,7 +262,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -329,7 +284,7 @@ class BaseApi(api_client.Api): def _parameter_collisions( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), header_params: RequestHeaderParams = frozendict(), path_params: RequestPathParams = frozendict(), @@ -363,8 +318,8 @@ class BaseApi(api_client.Api): request_path__self3, request_path_a_b6, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -380,8 +335,8 @@ class BaseApi(api_client.Api): request_query__self, request_query_a_b2, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() @@ -396,8 +351,8 @@ class BaseApi(api_client.Api): request_header__self2, request_header_a_b4, ): - parameter_data = header_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = header_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _headers.extend(serialized_data) @@ -408,7 +363,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -445,7 +400,7 @@ class ParameterCollisions(BaseApi): def parameter_collisions( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), header_params: RequestHeaderParams = frozendict(), path_params: RequestPathParams = frozendict(), @@ -478,7 +433,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict(), header_params: RequestHeaderParams = frozendict(), path_params: RequestPathParams = frozendict(), diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index e2de1c3f69c..9a188409d3b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.api_response import ApiResponse from . import path # path params -PetIdSchema = Int64Schema +PetIdSchema = schemas.Int64Schema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -100,22 +55,22 @@ request_path_pet_id = api_client.PathParameter( class SchemaForRequestBodyMultipartFormData( - DictSchema + schemas.DictSchema ): _required_property_names = { "requiredFile", } - additionalMetadata = StrSchema - requiredFile = BinarySchema + additionalMetadata = schemas.StrSchema + requiredFile = schemas.BinarySchema def __new__( cls, *args: typing.Union[dict, frozendict, ], requiredFile: requiredFile, - additionalMetadata: typing.Union[additionalMetadata, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + additionalMetadata: typing.Union[additionalMetadata, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyMultipartFormData': return super().__new__( cls, @@ -145,7 +100,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -167,7 +122,7 @@ class BaseApi(api_client.Api): def _upload_file_with_required_file( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -191,8 +146,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_pet_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -208,7 +163,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -246,7 +201,7 @@ class UploadFileWithRequiredFile(BaseApi): def upload_file_with_required_file( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -273,7 +228,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py index ffe24d4f2cf..c6d3cc78a34 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py @@ -18,52 +18,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.foo import Foo @@ -100,8 +55,8 @@ request_query_map_bean = api_client.QueryParameter( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -137,8 +92,8 @@ class BaseApi(api_client.Api): for parameter in ( request_query_map_bean, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py index c6bf9245a40..03c650eccde 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.array_of_enums import ArrayOfEnums @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _array_of_enums( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -137,7 +92,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_array_of_enums.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -174,7 +129,7 @@ class ArrayOfEnums(BaseApi): def array_of_enums( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,7 +154,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py index c334f9afea7..e962dbf797e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.animal_farm import AnimalFarm @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _array_model( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -173,7 +128,7 @@ class ArrayModel(BaseApi): def array_model( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -198,7 +153,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py index 2835dc88e13..806d4d8d957 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = BoolSchema +SchemaForRequestBodyApplicationJson = schemas.BoolSchema request_body_body = api_client.RequestBody( @@ -78,7 +33,7 @@ request_body_body = api_client.RequestBody( schema=SchemaForRequestBodyApplicationJson), }, ) -SchemaFor200ResponseBodyApplicationJson = BoolSchema +SchemaFor200ResponseBodyApplicationJson = schemas.BoolSchema @dataclass @@ -87,7 +42,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -109,7 +64,7 @@ class BaseApi(api_client.Api): def _boolean( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -134,7 +89,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -171,7 +126,7 @@ class Boolean(BaseApi): def boolean( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -196,7 +151,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py index 2ef1e260fd3..f2e21c3c863 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.composed_one_of_different_types import ComposedOneOfDifferentTypes @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _composed_one_of_different_types( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_composed_one_of_different_types.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -173,7 +128,7 @@ class ComposedOneOfDifferentTypes(BaseApi): def composed_one_of_different_types( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -198,7 +153,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py index 602f5f591c1..5c29e0633fc 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.string_enum import StringEnum @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _string_enum( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -173,7 +128,7 @@ class StringEnum(BaseApi): def string_enum( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -198,7 +153,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py index 64b14013395..71826c27301 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.mammal import Mammal @@ -90,7 +45,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -135,7 +90,7 @@ class BaseApi(api_client.Api): for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py index ce3a1321358..b36c8b2c55c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.number_with_validations import NumberWithValidations @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _number_with_validations( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -173,7 +128,7 @@ class NumberWithValidations(BaseApi): def number_with_validations( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -198,7 +153,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py index 02cc89cbaf1..5be8afb9730 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps @@ -89,7 +44,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -111,7 +66,7 @@ class BaseApi(api_client.Api): def _object_model_with_ref_props( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -136,7 +91,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -173,7 +128,7 @@ class ObjectModelWithRefProps(BaseApi): def object_model_with_ref_props( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -198,7 +153,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py index 69013147fe9..6c1336131a0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationJson = StrSchema +SchemaForRequestBodyApplicationJson = schemas.StrSchema request_body_body = api_client.RequestBody( @@ -78,7 +33,7 @@ request_body_body = api_client.RequestBody( schema=SchemaForRequestBodyApplicationJson), }, ) -SchemaFor200ResponseBodyApplicationJson = StrSchema +SchemaFor200ResponseBodyApplicationJson = schemas.StrSchema @dataclass @@ -87,7 +42,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -109,7 +64,7 @@ class BaseApi(api_client.Api): def _string( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -134,7 +89,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -171,7 +126,7 @@ class String(BaseApi): def string( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -196,7 +151,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py index 5e0556a00ac..fe75af208a9 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -74,10 +29,10 @@ from . import path class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse body: typing.Union[ - Unset, - Unset, + schemas.Unset, + schemas.Unset, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py index 304b7a36de3..712c8058362 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py @@ -18,52 +18,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.string_with_validation import StringWithValidation @@ -73,33 +28,33 @@ from . import path class PipeSchema( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema class IoutilSchema( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema class HttpSchema( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema class UrlSchema( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema class ContextSchema( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema RefParamSchema = StringWithValidation RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', @@ -168,8 +123,8 @@ request_query_ref_param = api_client.QueryParameter( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -209,8 +164,8 @@ class BaseApi(api_client.Api): request_query_context, request_query_ref_param, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py index 378de877970..e5d2dfb469f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # body param -SchemaForRequestBodyApplicationOctetStream = BinarySchema +SchemaForRequestBodyApplicationOctetStream = schemas.BinarySchema request_body_body = api_client.RequestBody( @@ -79,7 +34,7 @@ request_body_body = api_client.RequestBody( }, required=True, ) -SchemaFor200ResponseBodyApplicationOctetStream = BinarySchema +SchemaFor200ResponseBodyApplicationOctetStream = schemas.BinarySchema @dataclass @@ -88,7 +43,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationOctetStream, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -134,7 +89,7 @@ class BaseApi(api_client.Api): for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py index 1fd71b845fb..398f3828689 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.api_response import ApiResponse @@ -74,22 +29,22 @@ from . import path class SchemaForRequestBodyMultipartFormData( - DictSchema + schemas.DictSchema ): _required_property_names = { "file", } - additionalMetadata = StrSchema - file = BinarySchema + additionalMetadata = schemas.StrSchema + file = schemas.BinarySchema def __new__( cls, *args: typing.Union[dict, frozendict, ], file: file, - additionalMetadata: typing.Union[additionalMetadata, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + additionalMetadata: typing.Union[additionalMetadata, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyMultipartFormData': return super().__new__( cls, @@ -116,7 +71,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -138,7 +93,7 @@ class BaseApi(api_client.Api): def _upload_file( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -164,7 +119,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -201,7 +156,7 @@ class UploadFile(BaseApi): def upload_file( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -226,7 +181,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py index 943bc558f19..bdde2ed8b47 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.api_response import ApiResponse @@ -74,22 +29,22 @@ from . import path class SchemaForRequestBodyMultipartFormData( - DictSchema + schemas.DictSchema ): class files( - ListSchema + schemas.ListSchema ): - _items = BinarySchema + _items = schemas.BinarySchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - files: typing.Union[files, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + files: typing.Union[files, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyMultipartFormData': return super().__new__( cls, @@ -115,7 +70,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -137,7 +92,7 @@ class BaseApi(api_client.Api): def _upload_files( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -163,7 +118,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -200,7 +155,7 @@ class UploadFiles(BaseApi): def upload_files( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -225,7 +180,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py index 7c6e6f694cf..23420d9da9b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.foo import Foo @@ -73,7 +28,7 @@ from . import path class SchemaFor0ResponseBodyApplicationJson( - DictSchema + schemas.DictSchema ): @classmethod @@ -85,9 +40,9 @@ class SchemaFor0ResponseBodyApplicationJson( def __new__( cls, *args: typing.Union[dict, frozendict, ], - string: typing.Union['Foo', Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + string: typing.Union['Foo', schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor0ResponseBodyApplicationJson': return super().__new__( cls, @@ -104,7 +59,7 @@ class ApiResponseForDefault(api_client.ApiResponse): body: typing.Union[ SchemaFor0ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_default = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py index 9911a88a849..eeb05fabece 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.pet import Pet @@ -103,8 +58,8 @@ _servers = ( @dataclass class ApiResponseFor200(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -115,8 +70,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor405(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_405 = api_client.OpenApiResponse( @@ -153,7 +108,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py index f70fae43607..c76058b50f3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.pet import Pet @@ -103,8 +58,8 @@ _servers = ( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -115,8 +70,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -127,8 +82,8 @@ _response_for_404 = api_client.OpenApiResponse( @dataclass class ApiResponseFor405(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_405 = api_client.OpenApiResponse( @@ -165,7 +120,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py index 156bd888b79..8c53cf2ada2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.pet import Pet @@ -74,19 +29,19 @@ from . import path class StatusSchema( - ListSchema + schemas.ListSchema ): class _items( - _SchemaEnumMaker( + schemas.SchemaEnumMakerClsFactory( enum_value_to_name={ "available": "AVAILABLE", "pending": "PENDING", "sold": "SOLD", } ), - StrSchema + schemas.StrSchema ): @classmethod @@ -134,7 +89,7 @@ _auth = [ class SchemaFor200ResponseBodyApplicationXml( - ListSchema + schemas.ListSchema ): @classmethod @@ -144,7 +99,7 @@ class SchemaFor200ResponseBodyApplicationXml( class SchemaFor200ResponseBodyApplicationJson( - ListSchema + schemas.ListSchema ): @classmethod @@ -160,7 +115,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationXml, SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -177,8 +132,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -220,8 +175,8 @@ class BaseApi(api_client.Api): for parameter in ( request_query_status, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py index fceade9d640..5390ff21730 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.pet import Pet @@ -74,9 +29,9 @@ from . import path class TagsSchema( - ListSchema + schemas.ListSchema ): - _items = StrSchema + _items = schemas.StrSchema RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', { @@ -108,7 +63,7 @@ _auth = [ class SchemaFor200ResponseBodyApplicationXml( - ListSchema + schemas.ListSchema ): @classmethod @@ -118,7 +73,7 @@ class SchemaFor200ResponseBodyApplicationXml( class SchemaFor200ResponseBodyApplicationJson( - ListSchema + schemas.ListSchema ): @classmethod @@ -134,7 +89,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationXml, SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -151,8 +106,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -194,8 +149,8 @@ class BaseApi(api_client.Api): for parameter in ( request_query_tags, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py index 0c5f7bf9e2b..30e3db865aa 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # header params -ApiKeySchema = StrSchema +ApiKeySchema = schemas.StrSchema RequestRequiredHeaderParams = typing.TypedDict( 'RequestRequiredHeaderParams', { @@ -94,7 +49,7 @@ request_header_api_key = api_client.HeaderParameter( schema=ApiKeySchema, ) # path params -PetIdSchema = Int64Schema +PetIdSchema = schemas.Int64Schema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -127,8 +82,8 @@ _auth = [ @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -165,8 +120,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_pet_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -178,8 +133,8 @@ class BaseApi(api_client.Api): for parameter in ( request_header_api_key, ): - parameter_data = header_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = header_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _headers.extend(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py index 7b10df913c3..9439d9543de 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.pet import Pet from . import path # path params -PetIdSchema = Int64Schema +PetIdSchema = schemas.Int64Schema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -110,7 +65,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationXml, SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -127,8 +82,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -139,8 +94,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -183,8 +138,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_pet_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py index 615138955ae..959f19d747a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py @@ -19,57 +19,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # path params -PetIdSchema = Int64Schema +PetIdSchema = schemas.Int64Schema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -98,19 +53,19 @@ request_path_pet_id = api_client.PathParameter( class SchemaForRequestBodyApplicationXWwwFormUrlencoded( - DictSchema + schemas.DictSchema ): - name = StrSchema - status = StrSchema + name = schemas.StrSchema + status = schemas.StrSchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - name: typing.Union[name, Unset] = unset, - status: typing.Union[status, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + name: typing.Union[name, schemas.Unset] = schemas.unset, + status: typing.Union[status, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyApplicationXWwwFormUrlencoded': return super().__new__( cls, @@ -136,8 +91,8 @@ _auth = [ @dataclass class ApiResponseFor405(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_405 = api_client.OpenApiResponse( @@ -152,7 +107,7 @@ class BaseApi(api_client.Api): def _update_pet_with_form( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -174,8 +129,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_pet_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -188,7 +143,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -226,7 +181,7 @@ class UpdatePetWithForm(BaseApi): def update_pet_with_form( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -250,7 +205,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, Unset] = unset, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py index 70360584968..521ecfcbcc9 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.api_response import ApiResponse from . import path # path params -PetIdSchema = Int64Schema +PetIdSchema = schemas.Int64Schema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -100,19 +55,19 @@ request_path_pet_id = api_client.PathParameter( class SchemaForRequestBodyMultipartFormData( - DictSchema + schemas.DictSchema ): - additionalMetadata = StrSchema - file = BinarySchema + additionalMetadata = schemas.StrSchema + file = schemas.BinarySchema def __new__( cls, *args: typing.Union[dict, frozendict, ], - additionalMetadata: typing.Union[additionalMetadata, Unset] = unset, - file: typing.Union[file, Unset] = unset, - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + additionalMetadata: typing.Union[additionalMetadata, schemas.Unset] = schemas.unset, + file: typing.Union[file, schemas.Unset] = schemas.unset, + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaForRequestBodyMultipartFormData': return super().__new__( cls, @@ -142,7 +97,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -164,7 +119,7 @@ class BaseApi(api_client.Api): def _upload_image( self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -188,8 +143,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_pet_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -205,7 +160,7 @@ class BaseApi(api_client.Api): _fields = None _body = None - if body is not unset: + if body is not schemas.unset: serialized_data = request_body_body.serialize(body, content_type) _headers.add('Content-Type', content_type) if 'fields' in serialized_data: @@ -243,7 +198,7 @@ class UploadImage(BaseApi): def upload_image( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -270,7 +225,7 @@ class ApiForpost(BaseApi): def post( self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, Unset] = unset, + body: typing.Union[SchemaForRequestBodyMultipartFormData, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py index 76bb8cb6557..74fb8f997a3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -74,16 +29,16 @@ _auth = [ class SchemaFor200ResponseBodyApplicationJson( - DictSchema + schemas.DictSchema ): - _additional_properties = Int32Schema + _additional_properties = schemas.Int32Schema def __new__( cls, *args: typing.Union[dict, frozendict, ], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Type[Schema], + _configuration: typing.Optional[schemas.Configuration] = None, + **kwargs: typing.Type[schemas.Schema], ) -> 'SchemaFor200ResponseBodyApplicationJson': return super().__new__( cls, @@ -99,7 +54,7 @@ class ApiResponseFor200(api_client.ApiResponse): body: typing.Union[ SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py index 517097f3f6a..cc9b2b2c645 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.order import Order @@ -92,7 +47,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationXml, SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -109,8 +64,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -154,7 +109,7 @@ class BaseApi(api_client.Api): for accept_content_type in accept_content_types: _headers.add('Accept', accept_content_type) - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py index dbf2e8ebc6d..72b9f43b769 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py @@ -18,57 +18,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # path params -OrderIdSchema = StrSchema +OrderIdSchema = schemas.StrSchema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -98,8 +53,8 @@ request_path_order_id = api_client.PathParameter( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -110,8 +65,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -147,8 +102,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_order_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py index cd42414dac3..241bc82f92a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.order import Order @@ -74,11 +29,11 @@ from . import path class OrderIdSchema( - _SchemaValidator( + schemas.SchemaValidatorClsFactory( inclusive_maximum=5, inclusive_minimum=1, ), - Int64Schema + schemas.Int64Schema ): pass RequestRequiredPathParams = typing.TypedDict( @@ -116,7 +71,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationXml, SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -133,8 +88,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -145,8 +100,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -189,8 +144,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_order_id, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py index c236d076556..cdf0d1961b2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.user import User @@ -86,8 +41,8 @@ request_body_user = api_client.RequestBody( @dataclass class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_default = api_client.OpenApiResponse( @@ -122,7 +77,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py index d7c4dff4527..b9c8533fbc8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.user import User @@ -74,7 +29,7 @@ from . import path class SchemaForRequestBodyApplicationJson( - ListSchema + schemas.ListSchema ): @classmethod @@ -95,8 +50,8 @@ request_body_user = api_client.RequestBody( @dataclass class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_default = api_client.OpenApiResponse( @@ -131,7 +86,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py index 68115d6bd09..8b3413a282a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py @@ -19,52 +19,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.user import User @@ -74,7 +29,7 @@ from . import path class SchemaForRequestBodyApplicationJson( - ListSchema + schemas.ListSchema ): @classmethod @@ -95,8 +50,8 @@ request_body_user = api_client.RequestBody( @dataclass class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_default = api_client.OpenApiResponse( @@ -131,7 +86,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py index b1dec6982e7..873e92e3cb7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py @@ -19,58 +19,13 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # query params -UsernameSchema = StrSchema -PasswordSchema = StrSchema +UsernameSchema = schemas.StrSchema +PasswordSchema = schemas.StrSchema RequestRequiredQueryParams = typing.TypedDict( 'RequestRequiredQueryParams', { @@ -104,20 +59,20 @@ request_query_password = api_client.QueryParameter( required=True, explode=True, ) -XRateLimitSchema = Int32Schema +XRateLimitSchema = schemas.Int32Schema x_rate_limit_parameter = api_client.HeaderParameter( name="X-Rate-Limit", style=api_client.ParameterStyle.SIMPLE, schema=XRateLimitSchema, ) -XExpiresAfterSchema = DateTimeSchema +XExpiresAfterSchema = schemas.DateTimeSchema x_expires_after_parameter = api_client.HeaderParameter( name="X-Expires-After", style=api_client.ParameterStyle.SIMPLE, schema=XExpiresAfterSchema, ) -SchemaFor200ResponseBodyApplicationXml = StrSchema -SchemaFor200ResponseBodyApplicationJson = StrSchema +SchemaFor200ResponseBodyApplicationXml = schemas.StrSchema +SchemaFor200ResponseBodyApplicationJson = schemas.StrSchema ResponseHeadersFor200 = typing.TypedDict( 'ResponseHeadersFor200', { @@ -155,8 +110,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -199,8 +154,8 @@ class BaseApi(api_client.Api): request_query_username, request_query_password, ): - parameter_data = query_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = query_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue if prefix_separator_iterator is None: prefix_separator_iterator = parameter.get_prefix_separator_iterator() diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py index c8a52c77347..dc28da75c86 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py @@ -18,52 +18,7 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path @@ -72,8 +27,8 @@ from . import path @dataclass class ApiResponseForDefault(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_default = api_client.OpenApiResponse( diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py index e6f85bec740..25232ecb72b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py @@ -18,57 +18,12 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from . import path # path params -UsernameSchema = StrSchema +UsernameSchema = schemas.StrSchema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -98,8 +53,8 @@ request_path_username = api_client.PathParameter( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -110,8 +65,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -147,8 +102,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_username, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py index b3036a0e9c0..4f2d44f5451 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.user import User from . import path # path params -UsernameSchema = StrSchema +UsernameSchema = schemas.StrSchema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -107,7 +62,7 @@ class ApiResponseFor200(api_client.ApiResponse): SchemaFor200ResponseBodyApplicationXml, SchemaFor200ResponseBodyApplicationJson, ] - headers: Unset = unset + headers: schemas.Unset = schemas.unset _response_for_200 = api_client.OpenApiResponse( @@ -124,8 +79,8 @@ _response_for_200 = api_client.OpenApiResponse( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -136,8 +91,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -180,8 +135,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_username, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py index 78a9157488c..f453443d902 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py @@ -19,59 +19,14 @@ import decimal # noqa: F401 from datetime import date, datetime # noqa: F401 from frozendict import frozendict # noqa: F401 -from petstore_api.schemas import ( # noqa: F401 - AnyTypeSchema, - ComposedSchema, - DictSchema, - ListSchema, - StrSchema, - IntSchema, - Int32Schema, - Int64Schema, - Float32Schema, - Float64Schema, - NumberSchema, - UUIDSchema, - DateSchema, - DateTimeSchema, - DecimalSchema, - BoolSchema, - BinarySchema, - NoneSchema, - none_type, - Configuration, - Unset, - unset, - ComposedBase, - ListBase, - DictBase, - NoneBase, - StrBase, - IntBase, - Int32Base, - Int64Base, - Float32Base, - Float64Base, - NumberBase, - UUIDBase, - DateBase, - DateTimeBase, - BoolBase, - BinaryBase, - Schema, - NoneClass, - BoolClass, - _SchemaValidator, - _SchemaTypeChecker, - _SchemaEnumMaker -) +from petstore_api import schemas # noqa: F401 from petstore_api.model.user import User from . import path # path params -UsernameSchema = StrSchema +UsernameSchema = schemas.StrSchema RequestRequiredPathParams = typing.TypedDict( 'RequestRequiredPathParams', { @@ -112,8 +67,8 @@ request_body_user = api_client.RequestBody( @dataclass class ApiResponseFor400(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_400 = api_client.OpenApiResponse( @@ -124,8 +79,8 @@ _response_for_400 = api_client.OpenApiResponse( @dataclass class ApiResponseFor404(api_client.ApiResponse): response: urllib3.HTTPResponse - body: Unset = unset - headers: Unset = unset + body: schemas.Unset = schemas.unset + headers: schemas.Unset = schemas.unset _response_for_404 = api_client.OpenApiResponse( @@ -163,8 +118,8 @@ class BaseApi(api_client.Api): for parameter in ( request_path_username, ): - parameter_data = path_params.get(parameter.name, unset) - if parameter_data is unset: + parameter_data = path_params.get(parameter.name, schemas.unset) + if parameter_data is schemas.unset: continue serialized_data = parameter.serialize(parameter_data) _path_params.update(serialized_data) @@ -175,7 +130,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() # TODO add cookie handling - if body is unset: + if body is schemas.unset: raise exceptions.ApiValueError( 'The required body parameter has an invalid value of: unset. Set a valid value instead') _fields = None 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 4380d5eac3b..984bbf50aaf 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -14,9 +14,7 @@ from datetime import date, datetime, timedelta # noqa: F401 import functools import decimal import io -import os import re -import tempfile import typing import uuid @@ -446,7 +444,7 @@ class Validator(typing.Protocol): pass -def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: +def SchemaValidatorClsFactory(**validations: typing.Union[str, bool, None, int, float, list[dict[str, typing.Union[str, int, float]]]]) -> Validator: class SchemaValidator(ValidatorBase): @classmethod def _validate( @@ -464,7 +462,7 @@ def _SchemaValidator(**validations: typing.Union[str, bool, None, int, float, li return SchemaValidator -def _SchemaTypeChecker(union_type_cls: typing.Union[typing.Any]) -> Validator: +def SchemaTypeCheckerClsFactory(union_type_cls: typing.Union[typing.Any]) -> Validator: if typing.get_origin(union_type_cls) is typing.Union: union_classes = typing.get_args(union_type_cls) else: @@ -563,7 +561,7 @@ class EnumMakerInterface(Validator): pass -def _SchemaEnumMaker(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: +def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface: class SchemaEnumMaker(EnumMakerBase): @classmethod @property @@ -1733,7 +1731,7 @@ class ComposedBase(Discriminable): # DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase class ComposedSchema( - _SchemaTypeChecker(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), + SchemaTypeCheckerClsFactory(typing.Union[NoneClass, str, decimal.Decimal, BoolClass, tuple, frozendict]), ComposedBase, DictBase, ListBase, @@ -1757,7 +1755,7 @@ class ComposedSchema( class ListSchema( - _SchemaTypeChecker(typing.Union[tuple]), + SchemaTypeCheckerClsFactory(typing.Union[tuple]), ListBase, Schema ): @@ -1771,7 +1769,7 @@ class ListSchema( class NoneSchema( - _SchemaTypeChecker(typing.Union[NoneClass]), + SchemaTypeCheckerClsFactory(typing.Union[NoneClass]), NoneBase, Schema ): @@ -1785,7 +1783,7 @@ class NoneSchema( class NumberSchema( - _SchemaTypeChecker(typing.Union[decimal.Decimal]), + SchemaTypeCheckerClsFactory(typing.Union[decimal.Decimal]), NumberBase, Schema ): @@ -1846,7 +1844,7 @@ class IntSchema(IntBase, NumberSchema): class Int32Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-2147483648), inclusive_maximum=decimal.Decimal(2147483647) ), @@ -1862,7 +1860,7 @@ class Int32Schema( class Int64Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-9223372036854775808), inclusive_maximum=decimal.Decimal(9223372036854775807) ), @@ -1878,7 +1876,7 @@ class Int64Schema( class Float32Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-3.4028234663852886e+38), inclusive_maximum=decimal.Decimal(3.4028234663852886e+38) ), @@ -1898,7 +1896,7 @@ class Float32Schema( class Float64Base( - _SchemaValidator( + SchemaValidatorClsFactory( inclusive_minimum=decimal.Decimal(-1.7976931348623157E+308), inclusive_maximum=decimal.Decimal(1.7976931348623157E+308) ), @@ -1918,7 +1916,7 @@ class Float64Schema( class StrSchema( - _SchemaTypeChecker(typing.Union[str]), + SchemaTypeCheckerClsFactory(typing.Union[str]), StrBase, Schema ): @@ -1970,7 +1968,7 @@ class DecimalSchema(DecimalBase, StrSchema): class BytesSchema( - _SchemaTypeChecker(typing.Union[bytes]), + SchemaTypeCheckerClsFactory(typing.Union[bytes]), Schema, ): """ @@ -1981,7 +1979,7 @@ class BytesSchema( class FileSchema( - _SchemaTypeChecker(typing.Union[FileIO]), + SchemaTypeCheckerClsFactory(typing.Union[FileIO]), Schema, ): """ @@ -2010,7 +2008,7 @@ class BinaryBase: class BinarySchema( - _SchemaTypeChecker(typing.Union[bytes, FileIO]), + SchemaTypeCheckerClsFactory(typing.Union[bytes, FileIO]), ComposedBase, BinaryBase, Schema, @@ -2042,7 +2040,7 @@ class BinarySchema( class BoolSchema( - _SchemaTypeChecker(typing.Union[BoolClass]), + SchemaTypeCheckerClsFactory(typing.Union[BoolClass]), BoolBase, Schema ): @@ -2056,7 +2054,7 @@ class BoolSchema( class AnyTypeSchema( - _SchemaTypeChecker( + SchemaTypeCheckerClsFactory( typing.Union[frozendict, tuple, decimal.Decimal, str, BoolClass, NoneClass, bytes, FileIO] ), DictBase, @@ -2071,7 +2069,7 @@ class AnyTypeSchema( class DictSchema( - _SchemaTypeChecker(typing.Union[frozendict]), + SchemaTypeCheckerClsFactory(typing.Union[frozendict]), DictBase, Schema ):